-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.09 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
exclude: (^notebooks/)
repos:
- repo: https://github.com/pdm-project/pdm
rev: 2.9.3 # a PDM release exposing the hook
hooks:
- id: pdm-lock-check
- id: pdm-export
# command arguments, e.g.:
args: [ '-o', 'requirements.txt', '--without-hashes', '--prod' ]
files: ^pdm.lock$
- repo: local
hooks:
- 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: isort
name: isort
entry: isort
language: system
types: [ python ]
exclude: (^docs/)
- id: trailing-whitespace
name: trailing-whitespace
entry: trailing-whitespace-fixer
language: system
types: [ file, python ]
exclude: (^docs/)
- id: end-of-file-fixer
name: end-of-file-fixer
entry: end-of-file-fixer
language: system
types: [ file, python ]
exclude: (^docs/)