-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
40 lines (39 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
language_version:
python: $(python3 --version | cut -d' ' -f2)
pyproject_toml: ./pyproject.toml
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
args: [--config=pyproject.toml]
- repo: https://github.com/pre-commit/mirrors-pylint
rev: v3.0.0a5
hooks:
- id: pylint
files: "up_esb/.*\\.py$"
args: [
--rcfile=pyproject.toml,
--fail-under=8.0,
--jobs=0,
--output-format=colorized,
--disable=import-error,
]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
files: "\\.(py)$"
args: [--settings-path=pyproject.toml]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.9.0" # Use the sha / tag you want to point at
hooks:
- id: mypy
files: "up_esb/.*\\.py$"
args: [--ignore-missing-imports]