File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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", "dpctl", "-lll"]
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ Run before each commit: `clang-format -style=file -i dpctl-capi/include/*.h dpct
15
15
16
16
### Python code style
17
17
18
-
19
18
We use [ black] ( https://black.readthedocs.io/en/stable/ ) code formatter.
20
19
21
20
- Revision: ` 20.8b1 ` or branch ` stable ` .
@@ -88,6 +87,18 @@ Every Python and Cython file should only include the following license header:
88
87
```
89
88
The copyright year should be updated every calendar year.
90
89
90
+ ## Security
91
+
92
+ ### Bandit
93
+
94
+ We use [ Bandit] ( https://github.com/PyCQA/bandit ) to find common security issues in Python code.
95
+
96
+ Install: ` pip install bandit `
97
+
98
+ - Revision: ` 1.7.0 `
99
+
100
+ Run before each commit: ` bandit -r dpctl -lll `
101
+
91
102
## Code Coverage
92
103
93
104
Implement python, cython and c++ file coverage using ` coverage ` and ` llvm-cov ` packages on Linux.
You can’t perform that action at this time.
0 commit comments