Skip to content

Commit

Permalink
Add ruff linter to pre-commit (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored May 28, 2024
1 parent 73e94c5 commit 6cfcc7a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
# Identify invalid files
- id: check-ast
Expand All @@ -17,7 +17,6 @@ repos:
- id: check-docstring-first
- id: debug-statements
- id: requirements-txt-fixer
- id: fix-encoding-pragma
- id: fix-byte-order-marker
# General quality checks
- id: mixed-line-ending
Expand All @@ -29,12 +28,20 @@ repos:
- id: check-executables-have-shebangs
- id: end-of-file-fixer
exclude: ^test/resources/.+

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.5
hooks:
- id: ruff
args: [--extend-ignore, "F401,F403"]

- repo: https://github.com/ambv/black
rev: 24.1.1
rev: 24.4.2
hooks:
- id: black
args: [--config=.black.toml]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.8.0'
rev: 'v1.10.0'
hooks:
- id: mypy

0 comments on commit 6cfcc7a

Please sign in to comment.