Skip to content

Commit b8cb5d9

Browse files
author
Cyril De Faria
committed
Add pre-commit hooks.
1 parent 3474740 commit b8cb5d9

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
default_language_version:
2+
python: python3.12
3+
repos:
4+
5+
- repo: https://github.com/psf/black
6+
rev: 23.9.1
7+
hooks:
8+
- id: black
9+
args: ['--line-length=120']
10+
11+
- repo: https://github.com/PyCQA/flake8
12+
rev: 6.1.0
13+
hooks:
14+
- id: flake8
15+
additional_dependencies: [flake8-print]
16+
args: ['--enable=T', '--max-line-length=120']
17+
exclude: init.py
18+
19+
- repo: https://github.com/pre-commit/pre-commit-hooks
20+
rev: v4.5.0
21+
hooks:
22+
- id: debug-statements
23+
24+
- repo: https://github.com/PyCQA/bandit
25+
rev: '1.7.5'
26+
hooks:
27+
- id: bandit
28+
exclude: ^uep_backend/tests/

0 commit comments

Comments
 (0)