-
Notifications
You must be signed in to change notification settings - Fork 18
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
Ensure that dev dependencies are not used in production #13
Comments
Im not as such familiar with flake8 usage, but is there any way to determine "production" check? Maybe some other plug-in already has such flake8 option, so flake8-requirements could check it as well? |
I am not aware of any existing solutions in this field. |
Maybe some way to specify allowed directories or similar. For example, in my projects, dev dependencies typically only get used under the So, maybe if you could do something in the config along the lines of:
Meaning that tests/ and _localdev/ will be checked against requirements-dev.txt, while the rest of the code would be checked against requirements.txt. |
poetry
hasdependencies
anddev-dependencies
. In development we can import packages from both sections. But, in production we cannot use packages indev-dependencies
.I think that
dev-dependencies
should be checked to be blacklisted if we are running a production check.The text was updated successfully, but these errors were encountered: