Skip to content

Commit

Permalink
Run pre-commit hooks inside Poetry env (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobEdding authored Nov 4, 2024
1 parent a85c3b1 commit 7b0fa82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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

0 comments on commit 7b0fa82

Please sign in to comment.