[packaging/craftmaster] /: Readd black and flake8 as default tools
Ralf Habacker <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 972d56cf609b99838f31d481f62cfaedd660d8cb by Ralf Habacker. Committed on 22/07/2026 at 16:14. Pushed by habacker into branch 'master'. Readd black and flake8 as default tools Keep flake8 and black as default formatter to be in sync with the craft repository for now. Since linting tests reveal more issues with “ruff” than with “flake", it will remain as an additional tool. Fixup for commit 1f40d6f. M +21 -9 tox.ini https://invent.kde.org/packaging/craftmaster/-/commit/972d56cf609b99838f31d481f62cfaedd660d8cb diff --git a/tox.ini b/tox.ini index 837117a..cf228ce 100644 --- a/tox.ini +++ b/tox.ini @@ -4,25 +4,37 @@ [tox] minversion = 4.1.3 -envlist = check-imports,format,lint,reuse,sort-imports +envlist = check-imports,format,format_ruff,lint,lint_ruff,reuse,sort-imports + +[testenv:check-imports] +description = runs isort --check +skip_install = true +deps = isort==5.13.2 +commands = isort --check --profile black . [testenv:format] +description = runs black +skip_install = true +deps = black==23.11.0 +commands = black . + +[testenv:format_ruff] description = runs 'ruff format' skip_install = true -deps = ruff +deps = ruff==0.15.20 commands = ruff format [testenv:lint] -description = runs 'ruff check' +description = runs flake8 skip_install = true -deps = ruff -commands = ruff check --fix +deps = flake8==7.1.1 +commands = flake8 . -[testenv:check-imports] -description = runs isort --check +[testenv:lint_ruff] +description = runs 'ruff check' skip_install = true -deps = isort==5.13.2 -commands = isort --check --profile black . +deps = ruff==0.15.20 +commands = ruff check --fix [testenv:reuse] description = runs 'reuse lint'