19 Commits

Author SHA1 Message Date
Sigurd Spieckermann
2e34c2492f build: use uv-managed dev-dependencies in Nix-managed pre-commit hooks 2025-04-24 14:54:14 +02:00
Sigurd Spieckermann
ef5ea4b212 refactor: rename internal modules with a _ prefix 2025-04-22 13:52:51 +02:00
Sigurd Spieckermann
f374fd9baa build: migrate from Poetry to uv 2025-04-22 12:20:23 +02:00
Jairo Llopis
fd23923b5c
style(ruff-format): enable and reformat Python files
Until now, only linting was enabled. My failure.

I added this setting to widen the code style automation. I also enabled [keep-runtime-typing](https://docs.astral.sh/ruff/settings/#lint_pyupgrade_keep-runtime-typing) because we use Pydantic.

Finally, I executed the new formatting over all the project.
2024-12-03 13:59:00 +01:00
Mend Renovate
9394dbd76c
chore: Configure Renovate (#1823)
* Add renovate.json

* style: autoformat with pre-commit

* build(renovate): trick it to have flake updates

If renovate does not detect a very specific string, it won't update the lock file. Thus, here I add that string as a comment.

* chore(renovate): enable lock file maintenance

* chore(renovate): set PR labels

* chore(renovate): enable Nix manager

* chore(renovate): override `config:recommended` preset to use `build` instead of `chore`

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jairo Llopis <973709+yajo@users.noreply.github.com>
Co-authored-by: Sigurd Spieckermann <sigurd.spieckermann@gmail.com>
2024-10-21 19:36:31 +02:00
Jairo Llopis
8d8b78cc21 build(flake): update inputs 2024-06-26 07:18:52 +01:00
Jairo Llopis
19be0a1a74 build(lint): switch over to ruff; add taplo
Ruff is faster, better integrated, easier to configure... Cool!

Taplo also helps with toml maintenance.
2024-01-15 18:26:48 +00:00
Jairo Llopis
7ca70a2cd7 build(nix): update flake inputs
Includes https://github.com/nix-community/poetry2nix/pull/1428 and many other thousands of changes.
2023-11-27 09:36:57 +00:00
Romain Brault
1f2603d54f
fix(pydantic): compatible with 2.4+, solving FieldValidationInfo warning (#1342)
* Bump minimum version number for pydantic to 2.4.2

* build: update poetry.lock

* build: update flake.lock

* build(nix): lock compatible poetry-core and poetry-dynamic-versioning versions

Fix https://github.com/copier-org/copier/issues/1341.

Co-authored-by: Jairo Llopis <yajo.sk8@gmail.com>
2023-10-04 17:47:33 +00:00
Jairo Llopis
c13bcd9310
fix(nix): detect build version appropriately
Before this patch, nix builds of Copier always returned version "0.0.0".
2023-09-08 11:51:17 +01:00
Timothée Mazzucotelli
a42a3a702c
build: support Pydantic v2 (#1229)
Co-authored-by: Sigurd Spieckermann <sigurd.spieckermann@gmail.com>
Co-authored-by: Jairo Llopis <yajo.sk8@gmail.com>
2023-07-14 11:44:02 +02:00
Jairo Llopis
e04b74196d
feat: basic nixpkgs overlay 2023-05-21 21:38:51 +01:00
Jairo Llopis
b919a7b41f feat: include git in flake app
This way, we don't depend on it being available in the context. Makes nix build more resilient.
2023-04-07 17:13:39 +01:00
Jairo Llopis
beb174f646 build(flake): fix wrong spelling of substituters, and use nicer list syntax
Oops, I did it wrong in 62b5dc36b3818ef550d21932ee49dccae5f3f494. Fixing.
2023-03-02 17:17:37 +00:00
Jairo Llopis
62b5dc36b3 build(flake): more default cache sources
Until https://github.com/NixOS/nix/issues/6771 is fixed, it's better to declare devenv's cache, so we have to host less binaries ourselves.
2023-03-02 16:14:08 +00:00
Jairo Llopis
8e0ea4ea60 build(flake): remove obsolete override 2023-02-28 15:54:55 +00:00
Jairo Llopis
b7501dda28 build(flake): use python 3.11 2023-02-21 19:32:55 +00:00
Jairo Llopis
2201d0210a build(flake): provide default nixConfig
Default to leverage our public binary cache.
2023-02-09 13:39:41 +00:00
Jairo Llopis
67cc4ffde3
feat: nix support
- Provide a dev shell.
- Provide a nix package.
- Provide a nix flake.
- Development environment based on direnv.
- Docs.
- Configure Gitpod to use direnv and nix.
- Configure Cachix out of the box, and document how to use it.
- Add direnv and nix to CI.
- Satisfy some linters that came from Precommix, even when Precommix was later discarded.
- Mark some tests as impure.
- Run only pure tests when building Copier with Nix.
- Add poetry loader to direnv.
- Update contribution guide.
2023-01-18 09:40:08 +00:00