Skip to content

Commit

Permalink
Use pre-commit (#195)
Browse files Browse the repository at this point in the history
- Use pre-commit with useful options
  • Loading branch information
vsakkas authored Jan 17, 2025
1 parent 8e6534c commit dbd36ae
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.9.2
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
190 changes: 189 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pytest-asyncio = "^0.25.2"
pytest-cov = "^6.0.0"
thefuzz = { extras = ["speedup"], version = "^0.22.1" }
ruff = "^0.9.2"
pre-commit = "^4.0.1"

[tool.poetry.group.ci.dependencies]
pytest-rerunfailures = "^15.0"
Expand Down

0 comments on commit dbd36ae

Please sign in to comment.