-
Notifications
You must be signed in to change notification settings - Fork 23
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: refactor from ConfigFileFinder to load_config #35
Conversation
This change now requires a Is this change intentional, or is there a way that this can be avoided? If this file is required, it might be worth updating the |
@calumy Apologies for the misleading output on stderr. A The message you're referring to was originally intended for when the |
@lsorber Thanks for sorting this! |
Another possible way of sorting this would be to update the if statement to ignore the file not found error along with the unable to parse config file error. This would still allow an error when the
|
@calumy Sure, that could be done, but OTOH I'm not sure it's this plugin's responsibility to verify the validity of the |
setup.py
Outdated
@@ -22,7 +22,7 @@ def get_version(fname="flake8_bandit.py"): | |||
VERSION = get_version() | |||
|
|||
# What packages are required for this module to be executed? | |||
REQUIRED = ["flake8", "bandit>=1.7.3", "flake8-polyfill", "pycodestyle"] | |||
REQUIRED = ["flake8>=5.0.0", "bandit>=1.7.3", "flake8-polyfill", "pycodestyle"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW neither flake8-polyfill nor pycodestyle are used anywhere in this repo; maybe we could remove the dependency at the same time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
@tylerwince would it be possible to merge this and make a new release? |
Attempt at fixing #33 by refactoring from flake8<5.0.0's
ConfigFileFinder
to flake8>=5.0.0,<6.0.0'sload_config
.