-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (32 loc) · 1020 Bytes
/
.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
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.6.0"
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black-pre-commit-mirror
rev: "24.4.0"
hooks:
- id: black
args:
- --line-length=160
- --include='\.py'
stages: [commit, manual]
types: [python]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
stages: [commit, manual]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.4.1"
hooks:
- id: ruff
args:
- --line-length=160
- --select=PL,A,ARG,ASYNC,E,F,B003,B006,B007,C901,N,PLR1711,PLR2004,RUF100,INP001
- --ignore=N999 #F722,PLW0603,PLR0913,PLR0912,PLC1901,PLW2901,PLR0915,PLR5501,PLR0402,PLR0911,PLW0602,PLE1205,PLR1711,PLR0133
stages: [commit, manual]