forked from xonsh/xonsh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
80 lines (77 loc) · 2.13 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
default_language_version:
# force all unspecified python hooks to run python3
python: python3.10
ci:
autofix_prs: false
repos:
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
entry: black xonsh xontrib tests xompletions
pass_filenames: false
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
entry: isort xonsh xontrib tests xompletions
pass_filenames: false
name: isort (python)
- repo: https://github.com/pycqa/flake8
rev: '5.0.4' # pick a git hash / tag to point to
hooks:
- id: flake8
additional_dependencies:
- flake8-docstrings
- flake8-bugbear
# Check for debugger imports and py37+ breakpoint() calls in python source.
- flake8-debugger
exclude: |
(?x)^(
xonsh/ply/.+|
docs/.+
)$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.971' # Use the sha / tag you want to point at
hooks:
- id: mypy
name: mypy xonsh
pass_filenames: false
entry: mypy xonsh
additional_dependencies:
- types-ujson
- id: mypy
name: mypy xontrib
pass_filenames: false
entry: mypy xontrib --namespace-packages --explicit-package-bases
additional_dependencies:
- types-ujson
- id: mypy
name: mypy xompletions
pass_filenames: false
entry: mypy xompletions --namespace-packages --explicit-package-bases
additional_dependencies:
- types-ujson
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
exclude: |
(?x)^(
docs/_static/.+
)$
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.2
hooks:
- id: pyupgrade
args: [--py38-plus]
exclude: |
(?x)^(
xonsh/ply/.+|
tests/bin/.+
)$