py-topdir.mk: Use ruff and yapf

- Use ruff and yapf for the targets py-check-syntax, py-format and py-check-format.
- Add a pyproject.toml for those. It also includes configuration for isort, albeit not being directly used in the linter targets.

- Make .gitignore igore that in newly created projects.

- Add ruff, yapf and isort to pkg.requires.release, anticipating their use by CI.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-05-31 14:30:26 +02:00
commit 36d854ce19
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61
4 changed files with 81 additions and 1 deletions

View file

@ -128,6 +128,7 @@ cat_gitignore()
*tmp*
__init__.py
__pycache__
pyproject.toml
EOT
}