-
Notifications
You must be signed in to change notification settings - Fork 66
/
.pre-commit-config.yaml
64 lines (60 loc) · 1.68 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
repos:
- repo: local
hooks:
- id: unasync-rewrite
name: unasync-rewrite
entry: python .unasync-rewrite.py
language: python
types: [python]
files: ^(ahk/_async/.*\.py|\.unasync-rewrite\.py|tests/_async/.*\.py)
pass_filenames: false
additional_dependencies:
- git+https://github.com/spyoungtech/unasync.git@unasync-remove
- tokenize_rt
- black
- id: set-constants
name: set-constants
entry: python _set_constants.py
language: python
types: [python]
pass_filenames: false
files: ^(ahk/daemon\.ahk|ahk/_constants\.py)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: mixed-line-ending
args: ["-f", "lf"]
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: double-quote-string-fixer
- repo: https://github.com/psf/black
rev: '24.10.0'
hooks:
- id: black
args:
- "-S"
- "-l"
- "120"
exclude: ^(ahk/_sync/.*\.py)
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.14.0
hooks:
- id: reorder-python-imports
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.12.1'
hooks:
- id: mypy
args:
- "--strict"
exclude: ^(tests/.*|setup\.py|\.build\.py|\.unasync-rewrite\.py|_tests_setup\.py|buildunasync\.py)
additional_dependencies:
- jinja2
- repo: https://github.com/pycqa/flake8
rev: '7.1.1' # pick a git hash / tag to point to
hooks:
- id: flake8
args:
- "--ignore"
- "E501,E704,E301,W503,E701"
files: ahk\/(?!_sync).*