From 7b0fa823f8da72cdefe309b9b9636b9bdbba35f5 Mon Sep 17 00:00:00 2001 From: Jakob Edding <15202881+JakobEdding@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:38:32 +0100 Subject: [PATCH] Run pre-commit hooks inside Poetry env (#92) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 47bf7c4..5c2858a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: files: ^(.*/)?(pyproject\.toml|poetry\.lock)$ - id: ruff-lint name: ruff-lint - entry: ruff check + entry: poetry run ruff check args: [ --force-exclude, @@ -34,14 +34,14 @@ repos: require_serial: true # run once for all files - id: ruff-format name: ruff-format - entry: ruff format + entry: poetry run ruff format args: [--force-exclude, --config, pyproject.toml] language: system types_or: [python] require_serial: true # run once for all files - id: pyright name: pyright - entry: pyright + entry: poetry run pyright language: system types: [python] require_serial: true # run once for all files