Skip to content

Add pre-commit hook #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: local
hooks:
- id: poetry-checks
name: Run pre-commit checks (format, sort-imports, check-mypy)
entry: bash -c 'poetry run format && poetry run sort-imports && poetry run check-mypy'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did the action version of what are current lint does
image

language: system
pass_filenames: false
94 changes: 89 additions & 5 deletions 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 @@ -58,6 +58,7 @@ types-redis = "*"
types-pyyaml = "*"
types-tabulate = "*"
treon = "*"
pre-commit = "^4.1.0"

[tool.poetry.group.test.dependencies]
testcontainers = "^4.3.1"
Expand Down