Skip to content

Commit

Permalink
Ruff: Run on pyi files
Browse files Browse the repository at this point in the history
Ensure ruff is actually run on `.pyi` files.
They have a separate type `pyi` but we can just use the defaults, too
  • Loading branch information
ax3l committed Aug 14, 2024
1 parent 81357be commit cc282f5
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,14 @@ repos:
# Python: Ruff linter & formatter
# https://docs.astral.sh/ruff/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.6
rev: v0.5.7
hooks:
# Run the linter
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
types_or: [python, jupyter]
# Run the formatter
- id: ruff-format

# Sorts Python imports according to PEP8
# https://www.python.org/dev/peps/pep-0008/#imports
# Needed until https://github.com/astral-sh/ruff/issues/12872 is fixed
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black", "--filter-files"]

# Jupyter Notebooks: clean up all cell outputs
- repo: https://github.com/roy-ht/pre-commit-jupyter
rev: v1.2.1
Expand Down

0 comments on commit cc282f5

Please sign in to comment.