Skip to content

Commit f91f9d1

Browse files
committed
test pre-commit
1 parent f6e3bad commit f91f9d1

File tree

3 files changed

+99
-5
lines changed

3 files changed

+99
-5
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: poetry-checks
5+
name: Run check_lint, check_mypy, and format via Poetry
6+
# The following command will run the three checks sequentially.
7+
entry: bash -c 'poetry run format && poetry run sort-imports && poetry run check-mypy'
8+
language: system
9+
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)