-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
75 lines (69 loc) · 2.21 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
exclude: "venv|vendor|build"
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
exclude: ".vscode(.dist)?/.*"
- id: pretty-format-json
args: ["--autofix", "--indent", "4", "--no-ensure-ascii"]
exclude: ".vscode.dist/launch.json"
- id: check-yaml
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-shebang-scripts-are-executable
- id: mixed-line-ending
- id: detect-private-key
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: local
hooks:
- id: pylint
name: pylint
entry: python -m pylint src tests
language: system
types: [python]
- id: mypy
name: mypy
entry: python -m mypy
language: system
types: [python]
- id: pip-compile
name: pip-compile base
entry: python -m ankiscripts.update_deps --type base
language: system
files: ^(requirements/base\.(in|txt))$
pass_filenames: false
- id: pip-compile
name: pip-compile bundle
entry: python -m ankiscripts.update_deps --type bundle
language: system
files: ^(requirements/bundle\.(in|txt))$
pass_filenames: false
- id: pip-compile
name: pip-compile dev
entry: python -m ankiscripts.update_deps --type dev
language: system
files: ^(requirements/dev\.(in|txt))$
pass_filenames: false
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.1
hooks:
- id: prettier
args: ["--tab-width", "4", "--write"]
exclude: "ankiweb_page.html"
exclude_types: [python]
ci:
autoupdate_schedule: weekly
skip: []
submodules: false