-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (70 loc) · 1.99 KB
/
.pre-commit-config.yaml
File metadata and controls
70 lines (70 loc) · 1.99 KB
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
ci:
autofix_commit_msg: "ci: pre-commit auto fixes"
autoupdate_commit_msg: "ci: pre-commit auto update"
default_stages: [commit]
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-check-blanket-noqa
name: Check Blanket "#noqa"
- id: python-check-blanket-type-ignore
name: 'Check Blanket "#type:ignore"'
- repo: https://github.com/asottile/pyupgrade
rev: v3.0.0
hooks:
- id: pyupgrade
name: Upgrade Python Syntax
- repo: https://github.com/crate-ci/typos
rev: v1.12.8
hooks:
- id: typos
name: Check Typos
args: []
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
name: Format Source Code
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: Sort Imports
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.982
hooks:
- id: mypy
name: Type Check
args: []
# As `mypy` runs in an isolated environment, it is necessary to manually specify
# some libraries of the current (poetry) environment for `mypy` to work properly.
additional_dependencies:
- httpx==0.23.0
- types-dataclasses==0.6.6
exclude: tests/files/
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
name: Lint
additional_dependencies:
- flake8-builtins==1.5.3
- flake8-docstrings==1.6.0
- flake8-eradicate==1.4.0
- flake8-print==5.0.0
- flake8-too-many==0.1.4
- pep8-naming==0.13.2
exclude: tests/files/
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.35.0
hooks:
- id: commitizen
name: Check Commit Message
stages: [commit-msg]