diff --git a/lefthook.yml b/lefthook.yml index 98e9d18..374ba3d 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -10,11 +10,17 @@ pre-commit: - name: fix formatting run: poetry run ruff format - glob: "*.py" + glob: + - "*.py" + - poetry.lock + - pyproject.toml - name: fix lint run: poetry run ruff check --fix - glob: "*.py" + glob: + - "*.py" + - poetry.lock + - pyproject.toml - name: check diff - run: git diff --exit-code dist {staged_files} + run: git diff --exit-code {staged_files}