Skip to content
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

Fix regression with line-based rules not being ignored per-file #2311

Merged
merged 1 commit into from
Jan 28, 2023

Conversation

sciyoshi
Copy link
Contributor

Apologies for the broken previous PR. I think there isn't much test coverage around per-file-ignores and I'm still getting used to the codebase!

@sciyoshi
Copy link
Contributor Author

I also haven't tested the interaction of having RUF100 ignored per-file, which seems unlikely to be a very common case. check_noqa does mutate diagnostics however, so maybe the more correct but less efficient approach would be to pass per_file_ignores as an argument and have it checked again there.

@charliermarsh
Copy link
Member

No prob -- I think you're right that this placement is correct.

@charliermarsh charliermarsh merged commit 1a32d87 into astral-sh:main Jan 28, 2023
@charliermarsh
Copy link
Member

Appreciate all your contributions!

@sciyoshi sciyoshi deleted the line-based-per-file branch January 28, 2023 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants