-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
104 lines (94 loc) · 2.48 KB
/
.pre-commit-config.yaml
File metadata and controls
104 lines (94 loc) · 2.48 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
fail_fast: true
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
- id: check-yaml
- id: check-toml
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-case-conflict
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: destroyed-symlinks
- id: check-illegal-windows-names
- id: check-shebang-scripts-are-executable
- id: mixed-line-ending
- id: fix-byte-order-marker
- id: detect-private-key
- id: debug-statements
- id: forbid-submodules
- id: check-added-large-files
args: ["--maxkb=900", "--enforce-all"]
exclude: ""
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
name: Format code
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.11.11"
hooks:
- id: ruff
args: [ "--fix" ]
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.15.0
hooks:
- id: reorder-python-imports
args: [--py38-plus]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:
- id: mypy
name: mypy
entry: mypy .
pass_filenames: false
additional_dependencies:
- types-requests
- types-redis
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
hooks:
- id: pyupgrade
args: [ --py311-plus ]
name: Upgrade code
- repo: https://github.com/asottile/yesqa
rev: v1.5.0
hooks:
- id: yesqa
name: Unused noqa
additional_dependencies:
#- pep8-naming
- flake8-pytest-style
- flake8-bandit
- flake8-simplify
- flake8-return
- repo: https://github.com/asottile/blacken-docs
rev: 1.19.1
hooks:
- id: blacken-docs
args: [ --line-length=120 ]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.22
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm
#- mdformat-black
- mdformat_frontmatter
- repo: local
hooks:
- id: pytest
name: pytest
stages: [pre-commit]
types: [python]
entry: uv run pytest -x
language: system
pass_filenames: false