-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
85 lines (85 loc) · 2.22 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
81
82
83
84
85
repos:
- repo: https://github.com/pdm-project/pdm
rev: 2.20.0.post1 # a PDM release exposing the hook
hooks:
- id: pdm-lock-check
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
name: trailing-whitespace
- id: end-of-file-fixer
name: end-of-file-fixer
- id: check-yaml
name: check-yaml
- id: check-toml
name: check-toml
- id: check-added-large-files
name: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
hooks:
- id: ruff-format
- id: ruff
- repo: https://github.com/jendrikseipp/vulture
rev: 'v2.13'
hooks:
- id: vulture
- repo: https://github.com/fredrikaverpil/creosote
rev: v3.1.0
hooks:
- id: creosote
- repo: https://github.com/ikamensh/flynt/
rev: '1.0.1'
hooks:
- id: flynt
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: local
hooks:
- id: autotyping
name: autotyping
entry: python -m autotyping
args:
- --aggressive
- --only-without-imports
- --guess-common-names
- fastblocks
types_or: [ python, pyi ]
language: python
files: \.py$
additional_dependencies:
- autotyping>=24.3.0
- libcst>=1.1.0
- repo: https://github.com/dosisod/refurb
rev: v2.0.0
hooks:
- id: refurb
- repo: https://github.com/PyCQA/bandit
rev: '1.7.10'
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.388
hooks:
- id: pyright
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
hooks:
- id: ruff
- id: ruff-format
# - repo: https://github.com/pdoc3/pdoc
# rev: master
# hooks:
# - id: pdoc
# name: pdoc
# entry: pdoc --html -f -o docs module1 module2 module3
# language_version: python3.11
# require_serial: true
# types: [ python ]
# always_run: true