-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
executable file
·45 lines (45 loc) · 1.24 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
exclude: (^notebooks/)
repos:
# export python requirements https://pdm.fming.dev/latest/usage/advanced/
- repo: https://github.com/pdm-project/pdm
rev: 2.9.3 # a PDM release exposing the hook
hooks:
- id: pdm-export
# command arguments, e.g.:
args: ["-o", "requirements.txt", "--without-hashes", "--prod"]
files: ^pdm.lock$
- repo: local
hooks:
- id: codespell
name: codespell
entry: codespell
language: system
types: [file, python]
- id: ruff
name: ruff
entry: ruff
language: system
args: [--fix, --exit-non-zero-on-fix]
types: [python]
- id: black
name: black
entry: black
language: system
types: [python]
- id: bandit
name: bandit
entry: bandit
language: system
types: [python]
require_serial: true
args: ["-c", "bandit.yml"]
- id: trailing-whitespace
name: trailing-whitespace
entry: trailing-whitespace-fixer
language: system
types: [file, python]
- id: end-of-file-fixer
name: end-of-file-fixer
entry: end-of-file-fixer
language: system
types: [file, python]