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

Move bandit to pre-commit #1488

Merged
merged 2 commits into from
Apr 11, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Move bandit from its own CI to pre-commit
alexrudd2 committed Apr 11, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 02c197bda0ac6cd7d0f0e86d8864ff9269d8f750
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -31,10 +31,7 @@ jobs:
- name: codespell
cmd: codespell
type: lint
- name: bandit
cmd: bandit -r -c bandit.yaml .
type: lint
- name: precommit (isort, black, and ruff)
- name: precommit (black, bandit, and ruff)
cmd: pre-commit run --all-files
type: lint
- name: docs
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -22,3 +22,8 @@ repos:
- id: black
args: [--safe, --quiet]
files: (examples|pymodbus|test)/
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
args: [-c, bandit.yaml]