-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (48 loc) · 1.51 KB
/
.pre-commit-config.yaml
File metadata and controls
55 lines (48 loc) · 1.51 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
default_install_hook_types: [pre-commit]
default_stages: [pre-commit]
default_language_version:
python: python3
node: "20.18.0" # cspell requires >=20.18; full version needed for nodeenv prebuilt download
repos:
- repo: https://github.com/pycqa/isort
rev: 7.0.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/psf/black
rev: 25.9.0
hooks:
- id: black
language_version: python3
args: [--line-length=88, --preview]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.14.2
hooks:
- id: ruff
# Ignoring unused imports within __init__.py files.
args: [--per-file-ignores, "*__init__.py:F401", --fix]
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
args: ["--convention=google"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.18.2"
hooks:
- id: mypy
args: ["--disallow-untyped-defs", "--ignore-missing-imports"]
additional_dependencies: [types-requests]
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.2.0
hooks:
- id: cspell # Spell check changed files
- id: cspell # Spell check the commit message
name: check commit message spelling
args:
- --no-must-find-files
- --no-progress
- --no-summary
- --files
- .git/COMMIT_EDITMSG
stages: [commit-msg]
always_run: true