test: add poetry check pre-commit hook

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2418>
1976-update-documentation-links-in-readme-files
jo 2023-05-08 12:52:46 +02:00
rodzic 6057670105
commit 3e9ce6f5f1
1 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -24,6 +24,17 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/python-poetry/poetry
rev: 1.4.2
hooks:
- id: poetry-check
files: ^api/pyproject.toml$
args: [--directory=api]
- id: poetry-lock
files: ^api/pyproject.toml$
args: [--directory=api, --check]
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks: