-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate flake8 config to pyproject.toml #29
Comments
Issue for |
@drhagen reading through that with the broken links is quite a mess. Has any progress been made in the year+ since that issue was closed on supporting |
As a workaround, you can use pyproject-flake8. |
bpo-40059 is tracking the discussion about adding TOML parsing to the stdlib, which has historically been one of the blockers that the Also see: |
|
This comment was marked as outdated.
This comment was marked as outdated.
It's a crutch until flake8 itself gets TOML support. Now that TOML support is in stdlib, there shouldn't be any excuse left for them not to add pyproject.toml support. |
It appears that the recent acceptance of |
This comment was marked as off-topic.
This comment was marked as off-topic.
#91 uses |
The problems with
I’m very much a fan of having all development configuration in pyproject.toml and wonder how we can get every project to support it. |
Which is why it would be nice to get that support in upstream flake8 now that all of the blockers should be gone. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I think there’s two facets to this:
To fix the bad blood, the PyCQA people need to start respecting people filing issues and explicitly link the pip issues that point out that their blocker is still not resolved. To fix the underlying technical issue, pip would need to switch build isolation on or off based on a criterion other than |
Hm, I was under the impression that nowadays pip only does an isolated build if the |
You are! I checked the current
Therefore without specifying any of the mentioned CLI options and with setuptools installed, build isolation depends on the existence of |
Then it was at least discussed somewhere. Would seem like a good change to make in pip, yes? |
Seems like that’ll happen:
See here: pypa/pip#9175 (comment) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Hey all, happy to use this as a forum to track status and discuss technical productive ways to improve the situation, but please refrain from personal attacks of any kind. Thank you for your understanding. |
I am migrating to this Flake8
The main advantages being:
Disadvantages:
Edit, done in: |
I just came across https://github.com/charliermarsh/ruff, which seems like a great and fast alternative to flake8, isort, … |
Yes, I've been keeping my eye on Ruff as well. It looks very promising. |
I have decided to migrate from To look at how I choose to do the migration, see |
If/when the
flake8
developers decide to supportpyproject.toml
, should moveflake8
configuration to that to consolidate configurations.Current Status
This comment lists blockers the Flake8 developers have listed:
pyproject.toml (PEP 518) support PyCQA/flake8#234 (comment)
"pip to change its behaviour so mere presence of the file does not change functionality"
"neither toml nor the python implementations are even 1.0"
"python to consider adding a standard library toml implementation"
tomllib
has been added to Python 3.11This comment lists a non-technical reason a Flake8 developer has against TOML (against the creator of TOML himself):
Recent tweets:
The text was updated successfully, but these errors were encountered: