-
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
Bandit 1.7.3 addition of new positional argument fdata
causes TypeError
#21
Comments
I’m also experiencing this issue |
Fixes tylerwince#21 flake8-bandit 1.7.3 (PyCQA/bandit#496) introduced an `fdata` argument.
Fixes tylerwince#21 flake8-bandit 1.7.3 (PyCQA/bandit#496) introduced an `fdata` argument and this just passes a `None` to make things work with the latest version of bandit.
* bumpversion to 0.3.7 * temporarily pin bandit==1.7.2 (github.com/tylerwince/flake8-bandit/issues/21) Co-authored-by: Mark90 <mark_moes@live.nl>
Fixes: tylerwince#21 flake8-bandit 1.7.3 (PyCQA/bandit#496) introduced an `fdata` argument and this just passes a `None` to make things work with the latest version of bandit.
* Refactor global variables * Fix fstring * Refactor _geneplexus.py * Fix typo * Refactor get_geneid_conversion * Temporarily disable flake8-bandit due to tylerwince/flake8-bandit#21 * Minor edits * Remove redundant lines * Add upper option to get_geneid_conversion * Clean up initial_ID_convert * Clean up make_validation_df * Refactor loaders * Create a genearl _load_file method with file existence check * Merge loader into util, create pickle loaders * Type and doc pickle loader functions * Set up mypy
It would probably be good to pin the exact bandit version in the requirements of this plugin to avoid a similar situation in the future. Not sure how exactly right now but happy to provide a PR if @tylerwince agrees. |
This looks like a very low-activity project, so I'd suspect that will only work if someone sets up dependabot to automatically update the dependency and then automatically deploy a new release at the same time, if the tests pass successfully. |
Fixes tylerwince#21 flake8-bandit 1.7.3 (PyCQA/bandit#496) introduced an `fdata` argument and this just passes a `None` to make things work with the latest version of bandit.
cf. tylerwince/flake8-bandit#21 git-svn-id: https://svn.sosy-lab.org/software/cpachecker/trunk@39610 4712c6d2-40bb-43ae-aa4b-fec3f1bdfe4c
This is not a good idea for a library. In such a case user will not be able to install another library which requires some other If There is a way to protect from issues with future bandit releases - set up upper limit for bandit version, like Also there is no guarantee that |
Temporary measure until tylerwince/flake8-bandit#21 is resolved
Fixes tylerwince#21 flake8-bandit 1.7.3 (PyCQA/bandit#496) introduced an `fdata` argument and this just passes a `None` to make things work with the latest version of bandit.
Disagree as well, for the reasons you mentioned:
Compatibility can be broken at any time indeed. Upper bounds do not protect your library. And they prevent downstream users to get upgrades. Without upper bounds, sure, things can break more often, but users can exclude the problematic version themselves. Then upstream can either fix the compatibility issue or exclude the version as well. Upper bounds can still be used of course, but only if you know the excluded range broke or is going to break compatiblity. |
Fixes tylerwince#21 flake8-bandit 1.7.3 (PyCQA/bandit#496) introduced an `fdata` argument and this just passes a `None` to make things work with the latest version of bandit.
is @tylerwince still watching this repo? |
Hey all! I'm happy to update and add a dependabot and accept PRs on this. Let me take a look at the PR that was opened this morning and I'll try to work on it later today. |
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
## Motivation / Description See tylerwince/flake8-bandit#21 ## Changes introduced - pin bandit version
Sorry all! Been crazy the last week at work but this should be resolved! Let me know if you see anything that isn't working right! Cheers and thanks for being patient. |
Thank you for your time @tylerwince 🙂 |
Thank you very much for fixing this! :) Would it be also possible do a new flake8-bandit release to pypi? |
Thanks a lot! |
## Motivation / Description See tylerwince/flake8-bandit#21 ## Changes introduced - pin bandit version
@tylerwince thank you! I think that for this to propagate properly we need a new release on PyPI. Would appreciate it! |
- Relax a bunch of overly-zealous linter args - Ignore missing AssertionError in docstrings - Lock down bandit (see: tylerwince/flake8-bandit#21) - Disable strict optional - Ignore missing stubs from third-party libraries pandas,tqdm,sqlalchemy - Update lockfile - Remove unused module - Basic logging configuration (null handler) Notebooks: - Add formatting of notebooks - Add run-jupyter.sh convenience script (nosec) - Add PerfTestTemplate.ipynb
- Relax a bunch of overly-zealous linter args - Ignore missing AssertionError in docstrings - Lock down bandit (see: tylerwince/flake8-bandit#21) - Disable strict optional - Ignore missing stubs from third-party libraries pandas,tqdm,sqlalchemy - Update lockfile - Remove unused module - Basic logging configuration (null handler) Notebooks: - Add formatting of notebooks - Add run-jupyter.sh convenience script (nosec) - Add PerfTestTemplate.ipynb
Too much stuff to list here.. Partial changes: - Relax a bunch of overly-zealous linter args - Ignore missing AssertionError in docstrings - Lock down bandit (see: tylerwince/flake8-bandit#21) - Disable strict optional - Ignore missing stubs from third-party libraries pandas,tqdm,sqlalchemy - Update lockfile - Remove unused module - Basic logging configuration (null handler) - Use Poetry 1.2.0.a2 for builds Notebooks: - Add formatting of notebooks - Add run-jupyter.sh convenience script (nosec) - Add PerfTestTemplate.ipynb
Too much stuff to list here.. Partial changes: - Relax a bunch of overly-zealous linter args - Ignore missing AssertionError in docstrings - Lock down bandit (see: tylerwince/flake8-bandit#21) - Disable strict optional - Ignore missing stubs from third-party libraries pandas,tqdm,sqlalchemy - Update lockfile - Remove unused module - Basic logging configuration (null handler) - Use Poetry 1.2.0.a2 for builds Notebooks: - Add formatting of notebooks - Add run-jupyter.sh convenience script (nosec) - Add PerfTestTemplate.ipynb
Too much stuff to list here.. Partial changes: - Relax a bunch of overly-zealous linter args - Ignore missing AssertionError in docstrings - Lock down bandit (see: tylerwince/flake8-bandit#21) - Disable strict optional - Ignore missing stubs from third-party libraries pandas,tqdm,sqlalchemy - Update lockfile - Remove unused module - Basic logging configuration (null handler) - Use Poetry 1.2.0.a2 for builds Notebooks: - Add formatting of notebooks - Add run-jupyter.sh convenience script (nosec) - Add PerfTestTemplate.ipynb
Too much stuff to list here.. Partial changes: - Relax a bunch of overly-zealous linter args - Ignore missing AssertionError in docstrings - Lock down bandit (see: tylerwince/flake8-bandit#21) - Disable strict optional - Ignore missing stubs from third-party libraries pandas,tqdm,sqlalchemy - Update lockfile - Remove unused module - Basic logging configuration (null handler) - Use Poetry 1.2.0.a2 for builds Notebooks: - Add formatting of notebooks - Add run-jupyter.sh convenience script (nosec) - Add PerfTestTemplate.ipynb
Too much stuff to list here.. Partial changes: - Relax a bunch of overly-zealous linter args - Ignore missing AssertionError in docstrings - Lock down bandit (see: tylerwince/flake8-bandit#21) - Disable strict optional - Ignore missing stubs from third-party libraries pandas,tqdm,sqlalchemy - Update lockfile - Remove unused module - Basic logging configuration (null handler) - Use Poetry 1.2.0.a2 for builds Notebooks: - Add formatting of notebooks - Add run-jupyter.sh convenience script (nosec) - Add PerfTestTemplate.ipynb
Too much stuff to list here.. Partial changes: - Relax a bunch of overly-zealous linter args - Ignore missing AssertionError in docstrings - Lock down bandit (see: tylerwince/flake8-bandit#21) - Disable strict optional - Ignore missing stubs from third-party libraries pandas,tqdm,sqlalchemy - Update lockfile - Remove unused module - Basic logging configuration (null handler) - Use Poetry 1.2.0.a2 for builds Notebooks: - Add formatting of notebooks - Add run-jupyter.sh convenience script (nosec) - Add PerfTestTemplate.ipynb
Too much stuff to list here.. Partial changes: - Relax a bunch of overly-zealous linter args - Ignore missing AssertionError in docstrings - Lock down bandit (see: tylerwince/flake8-bandit#21) - Disable strict optional - Ignore missing stubs from third-party libraries pandas,tqdm,sqlalchemy - Update lockfile - Remove unused module - Basic logging configuration (null handler) - Use Poetry 1.2.0.a2 for builds Notebooks: - Add formatting of notebooks - Add run-jupyter.sh convenience script (nosec) - Add PerfTestTemplate.ipynb
I've been using the flake8-bandit plugin. But recently, a new positional argument
fdata
was recently added to theBanditNodeVisitor
function in version 1.7.3, causing aTypeError
as followsWould it be possible to make a patch for this?
The text was updated successfully, but these errors were encountered: