diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 84075ef4..f69e3767 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,17 +15,18 @@ repos: hooks: - id: debug-statements - id: trailing-whitespace + exclude: ^server/trials - id: check-added-large-files - id: detect-private-key - - repo: https://github.com/pycqa/isort - rev: 5.12.0 + - repo: https://github.com/charliermarsh/ruff-pre-commit + rev: v0.0.282 hooks: - - id: isort - args: ["--profile", "black"] + - id: ruff + files: ^server/(reflector|tests)/ - repo: https://github.com/psf/black rev: 23.1.0 hooks: - id: black - args: ["--line-length", "120"] + files: ^server/(reflector|tests)/