Open webknjaz opened 7 months ago
Yes, I plan to switch to ruff
for this kind of checks soon! 👍
Apparently, there's a fork https://pypi.org/project/flake8-commas-x/ that supports Python 3.12. And the fork's author was given maintenance privileges on the original thing last month: https://github.com/PyCQA/meta/issues/59. So maybe it'll get resurrected at some point.
Meanwhile, the dependency could be made conditional depending on the Python version and that should fix the incompatibility short-term.
What's wrong
pre-commit.ci updated their default runtime to Python 3.12 yesterday and here's how this plugin crashes there:
(https://results.pre-commit.ci/run/github/16620627/1713926290.3FtxdzwlRJKVVhqJTxjy7Q)
So this hinted me to go check that plugin's upstream only to find out that it was archived on Oct 14, 2021, with the "No Maintenance Intended" badge and a recommendation to use a formatter: https://github.com/PyCQA/flake8-commas#flake8-extension-to-enforce-better-comma-placement.
I use the suggested pre-commit fixer which already ensures that I have commas in all the right places so the plugin is redundant. However, it does not seem like there is a way to tell flake8 to skip loading it and WPS pulls it in unconditionally which results in a stalemate :man_shrugging:
Hence the $sbj.
How it should be
It shouldn't crash the entire flake8 run and be disablable.
Flake8 version and plugins
It's a bump from flake8 v4.0.1 to v7.0.0 combined with bumping WPS. See https://github.com/cherrypy/cheroot/commit/6f1e5b5eb32a0f923db9f532853952a5760517b2#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9R146-R159.
pip information
N/A, it's only reproducible @ pre-commit.ci so far.
OS information
https://results.pre-commit.ci/run/github/16620627/1713926290.3FtxdzwlRJKVVhqJTxjy7Q says it's
image ghcr.io/pre-commit-ci/runner-image:2024-04-23-b71d47a => 5754bdbf0070e1758fa1e47f7b043cd04c7f8bda1d93703ff17e704ffb89a09d
andpython@python3
in it.