-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (44 loc) · 959 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
37
38
39
40
41
42
43
44
45
46
exclude: |
(?x)(
tests/|
setup.py|
version.py|
site/|
docker/|
docs/
)
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.4
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: local
hooks:
- id: mypy
name: MyPy
entry: |
mypy
--ignore-missing-imports
--install-types
--non-interactive
--strict
--implicit-reexport
--warn-unused-ignores
--cache-fine-grained
--no-namespace-packages
files: \.py$
language: python
- id: pylint
name: Pylint
entry: |
bash -c 'PYTHONPATH=. pylint \
--max-line-length=99 \
--ignore-imports=yes \
"$@"' --
files: \.py$
language: python