Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 674 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 674 Bytes

ruff-pre-commit

A pre-commit hook for Ruff.

Distributed as a standalone repository to enable installing Ruff via prebuilt wheels from PyPI.

For pre-commit: see https://github.com/pre-commit/pre-commit

For Ruff: see https://github.com/charliermarsh/ruff

Using ruff with pre-commit

Add this to your .pre-commit-config.yaml:

- repo: https://github.com/charliermarsh/ruff-pre-commit
  # Ruff version.
  rev: 'v0.0.191'
  hooks:
    - id: ruff
      # Respect `exclude` and `extend-exclude` settings.
      args: ["--force-exclude"]

License

MIT