Skip to content

Commit

Permalink
Add pre-commit configuration and hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
LifeAdventurer committed Aug 21, 2024
1 parent 18f2957 commit 3b3b282
Show file tree
Hide file tree
Showing 3 changed files with 122 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: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- id: check-yaml

- repo: https://github.com/python-poetry/poetry
rev: '1.8.3'
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export
args: ["--without-hashes","-f", "requirements.txt", "-o", "requirements.txt"]
- id: poetry-install
103 changes: 102 additions & 1 deletion poetry.lock

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

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ mkdocs-material = "^9.5.32"
mkdocs-glightbox = "^0.4.0"


[tool.poetry.group.dev.dependencies]
pre-commit = "^3.8.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 3b3b282

Please sign in to comment.