From 3e9ce6f5f1c6b4b738b5eb32d1d1e03cca1c2e83 Mon Sep 17 00:00:00 2001 From: jo Date: Mon, 8 May 2023 12:52:46 +0200 Subject: [PATCH] test: add poetry check pre-commit hook Part-of: --- .pre-commit-config.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a449122a1..09e783a6b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: