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

Restore older Bandit version for predictive setup #134

Merged
merged 1 commit into from
Jan 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: '3.7'
- name: Install prerequisites
run: python -m pip install --upgrade setuptools pip wheel tox
- name: Run ${{ matrix.env }}
Expand Down
10 changes: 1 addition & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
[tool.bandit]
exclude = [
".git",
".idea",
".tox",
"build",
"dist",
"docs",
"tests",
]
# Exclude/ignore of files is currently broken in Bandit.

[tool.black]
color = true
Expand Down
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ commands =

[testenv:bandit]
description = PyCQA security linter
deps = bandit
commands = bandit {posargs:-r behave_django setup}
deps = bandit<1.6
commands = bandit --ini tox.ini {posargs:-r .}

[testenv:black]
description = Ensure consistent code style
Expand Down Expand Up @@ -85,6 +85,9 @@ paths = tests/acceptance
tests/test_app
show_skipped = no

[bandit]
exclude = .git,.github,.tox,py2clean.py,py3clean.py,pypyclean.py,tests

[flake8]
exclude = docs,.cache,.tox,*.egg-info,.ropeproject

Expand Down