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 Issue 218: ignore-names globbing is not case-sensitive on Windows #219

Merged
merged 2 commits into from
Oct 21, 2023

Conversation

malsyned
Copy link
Contributor

I created this branch to fix issue #218. While I was updating the unit tests, I found a couple of tests for N807(--ignore-names) that would have passed regardless of whether that option was included, so this PR also includes a commit that fixes those tests.

The tests that I wrote as part of this fix would only fail on Windows without the fix -- I don't see an easy way to write tests that would fail on all platforms without the fix, but I'm open to suggestions.

@malsyned malsyned changed the title Issue 218 Fix Issue 218: ignore-names globbing is not case-sensitive on Windows Oct 17, 2023
Copy link
Member

@jparise jparise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Thanks for the fix and test improvements!

This resulting behavior is technically backwards-incompatible, but it seems unlike that people were relying on the previous case-insensitive behavior, and those folks can add more case variants to their ignored-names list after they upgrade to this change.

Still, I think it will be worth bumping the minor version for this change.

@jparise jparise merged commit 6be2f61 into PyCQA:main Oct 21, 2023
6 checks passed
@jparise jparise linked an issue Oct 21, 2023 that may be closed by this pull request
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.

ignore-names globbing is not case-sensitive on Windows
2 participants