Skip to content

Commit dbd36ae

Browse files
authored
Use pre-commit (#195)
- Use pre-commit with useful options
1 parent 8e6534c commit dbd36ae

File tree

3 files changed

+207
-1
lines changed

3 files changed

+207
-1
lines changed

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: check-merge-conflict
6+
- id: debug-statements
7+
- id: detect-private-key
8+
- id: end-of-file-fixer
9+
- id: mixed-line-ending
10+
- id: trailing-whitespace
11+
12+
- repo: https://github.com/charliermarsh/ruff-pre-commit
13+
rev: v0.9.2
14+
hooks:
15+
- id: ruff
16+
args: [--fix]
17+
- id: ruff-format

poetry.lock

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

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ pytest-asyncio = "^0.25.2"
2020
pytest-cov = "^6.0.0"
2121
thefuzz = { extras = ["speedup"], version = "^0.22.1" }
2222
ruff = "^0.9.2"
23+
pre-commit = "^4.0.1"
2324

2425
[tool.poetry.group.ci.dependencies]
2526
pytest-rerunfailures = "^15.0"

0 commit comments

Comments
 (0)