Skip to content

Commit a29e932

Browse files
committed
add pre-commit
1 parent ac5bc03 commit a29e932

File tree

3 files changed

+118
-2
lines changed

3 files changed

+118
-2
lines changed

.pre-commit-config.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: check-case-conflict
6+
- id: check-executables-have-shebangs
7+
- id: check-merge-conflict
8+
- id: check-symlinks
9+
- id: end-of-file-fixer
10+
- id: trailing-whitespace
11+
- id: check-added-large-files
12+
args: ["--maxkb=1024"]
13+
- id: check-yaml
14+
args: ["--allow-multiple-documents"]
15+
- id: check-toml
16+
- id: detect-private-key
17+
- repo: local
18+
hooks:
19+
- id: black
20+
name: black
21+
entry: .venv/bin/black
22+
language: system
23+
types_or: [python, pyi]
24+
require_serial: true
25+
- id: isort
26+
name: isort
27+
entry: .venv/bin/isort
28+
language: system
29+
types: [python]
30+
- id: flake8
31+
name: flake8
32+
entry: .venv/bin/flake8
33+
language: system
34+
types: [python]
35+
require_serial: true
36+
- id: mypy
37+
name: mypy
38+
entry: .venv/bin/mypy
39+
language: system
40+
types: [python]
41+
require_serial: true

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ members = [
1313
]
1414

1515
[dependency-groups]
16-
dev = ["devservices>=1.2.2"]
16+
dev = [
17+
"devservices>=1.2.2",
18+
"pre-commit>=4.2.0",
19+
]

uv.lock

Lines changed: 73 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)