tox-dev/pyproject-fmt

Add `autopep8` to the tools

kytta opened this issue · 2 comments

kytta commented

I use autopep8 as formatter (don't judge), and it gets pushed at the very end of my pyproject.toml. I expect it to be a bit higher. My guess is that I need to adjust the fmt_tools() method and place it somewhere close to black.

Speaking of it, how do the tools get their sorting order. They're not alphabetical, but categorical? If so, why is Ruff (linter) above isort (formatter)?

order = [
"poetry",
"setuptools",
"setuptools_scm",
"hatch",
"black",
"ruff",
"isort",
"flake8",
"pytest",
"coverage",
"mypy",
]

PR welcome.

If so, why is Ruff (linter) above isort (formatter)?

ruff has auto-fixes that changes code. TO be fair I'd be ok to swap ruff and isort ordering.