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

@ -21,6 +21,7 @@ devel = jw-pkg-run = VERSION-REVISION
run = bash, python3
build = make, time, xdg-utils, coreutils, cpio, xdg-utils, git-core
devel = sudo, gawk, pkg-config
release = python3-isort, python3-yapf, python3-ruff
[pkg.requires.centos]
run = hostname, python