Skip to content

Commit 3df7c2e

Browse files
authored
Add bandit to pre-commit (#1334)
* Update ruff in .pre-commit-config.yaml * Add bandit to pre-commit * Bump bandit from 1.8.2 to 1.8.3 * Bump ruff from 0.9.4 to 0.9.9 * update dev tools * remove unecessary args in ruff commands * re-add pytest-cov
1 parent a842428 commit 3df7c2e

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/python-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
7575
- name: Run ruff format
7676
run: |
77-
ruff format --diff --target-version=py39 .
77+
ruff format --diff .
7878
7979
ruff-check:
8080
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.9.4
3+
rev: 'v0.9.10'
44
hooks:
5-
# Run the linter.
65
- id: ruff
7-
args: [ --fix ]
8-
# Run the formatter.
96
- id: ruff-format
7+
- repo: https://github.com/PyCQA/bandit
8+
rev: '1.8.3'
9+
hooks:
10+
- id: bandit

requirements-dev.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Testing Requirements
2-
bandit[toml]==1.8.2
2+
bandit[toml]==1.8.3
33
coverage==7.6.12
44
pytest-cov==6.0.0
55
pytest-datadir==1.6.1
66
pytest-mock==3.14.0
77
pytest-xdist==3.6.1
8-
pytest==8.3.4
8+
pytest==8.3.5
99
requests-mock==1.12.1
10-
ruff==0.9.4
11-
testfixtures==8.3.0
10+
ruff==0.9.10
11+
testfixtures==8.3.0

0 commit comments

Comments
 (0)