-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Use the indent-width setting for E111 and E114 #8705
Comments
Hm it looks like these intentionally do not use this setting since there are notes about conflict with the formatter and they explicitly mention using a width of "4" in the documentation. I'm not sure I have the context to approve changing this. cc @charliermarsh / @MichaReiser |
I believe this is intentional since the pycodestyle rules are definitionally intended to adhere to PEP 8. |
Interestingly though, pycodestyle lets you configure the size. |
Oh, it does? |
Interesting. |
Here's a start #8708 — let me know if you're interested in writing the tests. |
I thought I merged something related to this recently, but I can't find it... |
Oh, I was thinking of #9506. |
There is also a documentation bug at https://docs.astral.sh/ruff/rules/#pycodestyle-e-w . It says
However in settings the variable is called |
Ah, that's because it's the name of the variable used internally: ruff/crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/indentation.rs Lines 76 to 87 in c391c8b
I think we should just rename that to |
Yeah let's just rename that variable. |
E111 should probably use the indent-width setting?
The text was updated successfully, but these errors were encountered: