-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ICN001 and N817 don't play with each other #12916
Comments
Thanks. No, that's a bug. Rules should be compatible out of the box. I see two options here:
I prefer 1. because it involves less conditional logic (it ignores all the names rather than some). @charliermarsh what do you think? |
I also prefer 1. %
%
|
I also prefer 1. Not because of the implementation logic, but because it favors the specific rule |
(1) sounds good to me too |
Wow! You are so responsive in this repo. Hats off! |
@MichaReiser I still see |
I have never seen https://docs.python.org/3/library/xml.etree.elementtree.html#tutorial |
@hofbi / @cclauss: We are definitely not recommending The tests added in #12922 are specifically testing that the "conventional aliases" setting can be used to configure this rule. One fixture is being run with the "conventional aliases" setting being set to |
Ok makes sense for XET. Then do I have to configure anything so that both check play nicely together. Right now I still see the N817 error after the autofix adding ET. |
There's a separate fix for If the incompatibility that you're seeing isn't related to |
Oh I missed that one. My issue is definitely #12940. So just waiting for the next release to get this fixed, thanks. |
No worries. I missed that one too when implanting the fix 🥲 |
List of keywords searched
Minimal code snippets
test1.py
test2.py
Invoked commands
Current ruff settings
Current ruff version
ruff 0.6.0
Description
It seems like
N817
wants me to import it asEt
whileICN001
wants me to import it asET
. Perhaps it is ok that rules conflict in ruff. If so I guess this is not a bug.The text was updated successfully, but these errors were encountered: