Skip to content

Commit 4a2204a

Browse files
Add bandit (#1043)
Co-authored-by: Alexander-Makaryev <alexander.makaryev@gmail.com>
1 parent c7e0b6d commit 4a2204a

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [master]
7+
8+
jobs:
9+
pre-commit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v2
14+
- uses: pre-commit/action@v2.0.0

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/PyCQA/bandit
5+
rev: '1.7.0'
6+
hooks:
7+
- id: bandit
8+
pass_filenames: false
9+
args: ["-r", "dpnp", "-lll"]

0 commit comments

Comments
 (0)