Skip to content

Commit 95e93c3

Browse files
authored
Add pre-commit hook (#273)
1 parent f6e3bad commit 95e93c3

File tree

3 files changed

+98
-5
lines changed

3 files changed

+98
-5
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: poetry-checks
5+
name: Run pre-commit checks (format, sort-imports, check-mypy)
6+
entry: bash -c 'poetry run format && poetry run sort-imports && poetry run check-mypy'
7+
language: system
8+
pass_filenames: false

poetry.lock

Lines changed: 89 additions & 5 deletions
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
@@ -58,6 +58,7 @@ types-redis = "*"
5858
types-pyyaml = "*"
5959
types-tabulate = "*"
6060
treon = "*"
61+
pre-commit = "^4.1.0"
6162

6263
[tool.poetry.group.test.dependencies]
6364
testcontainers = "^4.3.1"

0 commit comments

Comments
 (0)