Skip to content

Commit 69ba583

Browse files
Add .pre-commit
1 parent d3d68f5 commit 69ba583

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
exclude: (test_files|_static)
2+
3+
ci:
4+
autoupdate_schedule: "monthly"
5+
6+
repos:
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v6.0.0
9+
hooks:
10+
- id: check-added-large-files
11+
- id: check-case-conflict
12+
- id: check-merge-conflict
13+
- id: check-symlinks
14+
- id: check-yaml
15+
- id: debug-statements
16+
- id: end-of-file-fixer
17+
- id: mixed-line-ending
18+
- id: trailing-whitespace
19+
- repo: https://github.com/codespell-project/codespell
20+
rev: v2.4.2
21+
hooks:
22+
- id: codespell
23+
- repo: https://github.com/astral-sh/ruff-pre-commit
24+
rev: v0.15.5
25+
hooks:
26+
- id: ruff-check
27+
files: src
28+
args: ["--fix", "--show-fixes"]
29+
- repo: https://github.com/psf/black-pre-commit-mirror
30+
rev: 26.3.0
31+
hooks:
32+
- id: black
33+
- repo: https://github.com/pre-commit/mirrors-mypy
34+
rev: v1.19.1
35+
hooks:
36+
- id: mypy
37+
files: src
38+
args: []
39+
additional_dependencies: ["types-requests"]

0 commit comments

Comments
 (0)