15 Commits

Author SHA1 Message Date
Sigurd Spieckermann
1aff92f9f5
build: fix container-based linting in devtasks script 2025-04-25 08:58:14 +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
Peter Bittner
1a444b8500
build: recommend pyclean to reduce custom developer tooling (#1673) 2024-07-01 15:26:36 +01:00
danieleades
0c6b0b96fe
build(typing): enable 'strict' mypy linting (#1527)
---------

Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
2024-03-23 12:58:20 +01:00
danieleades
fa63677603
style: add ruff ARG lint group (#1525)
---------

Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
2024-02-23 08:57:02 +01:00
danieleades
74bba547c2
chore(ruff): add pygrep lint group (#1505)
* add 'pygrep' lint group

* fixup
2024-02-11 14:37:11 +01:00
Jairo Llopis
5b33f0ba60 build: fix linting issue
Make a bit beautier the devtasks code and fix https://github.com/copier-org/copier/issues/1241.
2023-08-28 17:41:32 +01:00
Jairo Llopis
6609f49f93 build(lint): use podman before docker
Folks that have both tend to prefer podman.
2023-04-17 12:56:45 +01:00
Jairo Llopis
c6b572876a build: easier containerized pre-commit execution for friends without nix
`poe lint` now uses nix if available. Otherwise, it will try to use docker or podman, by downloading the nix image and running pre-commit nix-based from there.

Fixes https://github.com/copier-org/copier/issues/931.
2023-02-20 19:47:16 +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
Sigurd Spieckermann
44d574763f
chore: organize deps with Poetry v1.2 groups (#823)
* chore: organize deps with Poetry v1.2 groups

* chore: update Read the Docs config to use Poetry

* chore: reorganize deps into 3 sections
2022-09-30 04:53:57 +01:00
Tim Gates
0f5257a0b0 docs: Fix a few typos
There are small typos in:
- copier/template.py
- copier/user_data.py
- devtasks.py

Fixes:
- Should read `multiline` rather than `mutliline`.
- Should read `descriptive` rather than `descripted`.
- Should read `artefacts` rather than `artefacrts`.
2022-07-07 06:08:29 +01:00
Yajo
bbdbeb86c3 build: better gitpod and vscode UX
These days, Gitpod supports VSCode workspaces instead of only Theia.

Theia understands settings under `.vscode` as well as under `.theia`, but VSCode only understands settings under `.vscode`. Thus, it seems reasonable to move settings to that new location and then provide a good UX on both local VSCode and Gitpod's.

I also install new tools such as commitizen.

The goal is that just clicking on Gitpod badge, you have a full dev environment ready to hack.
2021-04-15 17:46:24 +01:00
Nat Noordanus
d949d51ad3 Replace makefile with poe tasks & update CONTRIBUTING.md
The new `[tool.poe.tasks]` section and new poetry based workflow are a complete
replacement for the makefile which has also been removed. #129

Also:
- add devtasks for python functions to be referenced as poe tasks
- update CONTRIBUTING.MD #154 to keep things coherent
  - remove reference to tox
- update ci to work with more expressive toml syntax (upgrade pip)
  - and use poe tasks in ci
2020-08-21 14:02:49 +01:00