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

Ignore duplicate modules in ignore list #530

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

lleontop
Copy link
Contributor

Ignore duplicate modules passed in ignore_list. This could also be done with calling set on the final ignore list but sets are unordered which in terms of functionality I reckon should be ok but it was a pain in tests, so opted for a this dict.fromkeys way since supported python versions are >=3.7

fixes: #499

Ignore duplicate modules passed in ignore_list. This could also be done with calling `set` on the final ignore list but sets are unordered which in terms of functionality I reckon should be ok but it was a pain in tests, so opted for a this `dict.fromkeys` way since supported python versions are >=3.7
@lleontop lleontop force-pushed the fix_ignore_duplicates_modules branch from 84e6964 to b5a42db Compare January 21, 2024 20:46
@lleontop lleontop changed the title Ignore dullicate modules in ignore list Ignore duplicate modules in ignore list Jan 21, 2024
Copy link
Collaborator

@bblommers bblommers left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for the PR @lleontop!

@bblommers bblommers merged commit 4225fba into spulec:master Mar 2, 2024
@lleontop lleontop deleted the fix_ignore_duplicates_modules branch March 2, 2024 15:54
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.

extend_ignore_list should add ignore package only once
2 participants