diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 306ed80..1361286 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,3 +46,11 @@ repos: rev: v0.10.1 hooks: - id: validate-pyproject + + - repo: https://github.com/python-poetry/poetry + rev: '1.2.2' + hooks: + - id: poetry-check + - id: poetry-lock + #- id: poetry-export + # args: ["-f", "requirements.txt", "-o", "requirements.txt"] diff --git a/Makefile b/Makefile index c48bd06..fed3014 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ +pre-commit: + pre-commit run --all-files + test: unittest unittest: pytest --doctest-modules --last-failed --durations=3 - -format: - pre-commit run --all-files