diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 6d060fa1cf7..3392926463f 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -13,6 +13,14 @@ language: python pass_filenames: false files: ^(.*/)?(poetry\.lock|pyproject\.toml)$ + +- id: poetry-lock-check + name: poetry-lock-check + description: check that poetry lock file is consistent with pyproject.toml + entry: poetry lock --check + language: python + pass_filenames: false + files: ^(.*/)?(poetry\.lock|pyproject\.toml)$ - id: poetry-export name: poetry-export