Skip to content

Commit

Permalink
add poetry-lock pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
xyb committed Nov 6, 2022
1 parent c47c20f commit 4e3ddb8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4e3ddb8

Please sign in to comment.