forked from vacanza/holidays
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
87 lines (79 loc) · 2.34 KB
/
.pre-commit-config.yaml
File metadata and controls
87 lines (79 loc) · 2.34 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-yaml
- id: end-of-file-fixer
- id: file-contents-sorter
args:
- --unique
files: CONTRIBUTORS
- id: mixed-line-ending
args:
- --fix=lf
exclude: make.cmd
- id: trailing-whitespace
exclude: \.md$
- repo: https://github.com/asottile/pyupgrade
rev: 75992aaa40730136014f34227e0135f63fc951b4 # v3.21.2
hooks:
- id: pyupgrade
args:
- --keep-runtime-typing
- --py310-plus
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: c60c980e561ed3e73101667fe8365c609d19a438 # v0.15.9
hooks:
- id: ruff-check
- id: ruff-format
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: e72a3ca1632f0b11a07d171449fe447a7ff6795e # v0.48.0
hooks:
- id: markdownlint
args:
- --fix
files: \.md$
- repo: https://github.com/lucas-c/pre-commit-hooks
rev: ad1b27d73581aa16cca06fc4a0761fc563ffe8e8 # v1.5.6
hooks:
- id: insert-license
name: check license headers
files: \.(po|py)$
args:
- --license-filepath
- docs/file_header.txt
- repo: https://github.com/pycqa/isort
rev: a333737ed43df02b18e6c95477ea1b285b3de15a # 8.0.1
hooks:
- id: isort
exclude: ^(docs)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 8e5c80792e2ec0c87804d8ef915bf35e2caea6da # v1.20.0
hooks:
- id: mypy
additional_dependencies:
- types-polib
- types-python-dateutil
- types-requests
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 6e10264313f53d6247a8b1b984f5b5ccf50ba539 # v2.21.0
hooks:
- id: pyproject-fmt
- repo: local
hooks:
- id: normalize-unicode
name: normalize unicode punctuation
entry: python scripts/normalize_text.py
language: system
types: [text]
exclude: ^(CHANGES\.md|scripts/normalize_text\.py)$
- id: tests
always_run: true
entry: make check
language: system
name: run `make check`
pass_filenames: false
stages:
- pre-push