Skip to content

Commit

Permalink
Update readme config examples to work with pre-commit >= 3 (#99)
Browse files Browse the repository at this point in the history
Co-authored-by: Ruwen Frick <[email protected]>
  • Loading branch information
ruwfr and ruwfr-ost authored Sep 27, 2024
1 parent cc915bb commit 46cdcac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ To run Ruff's [linter](https://docs.astral.sh/ruff/linter) and [formatter](https
(available as of Ruff v0.0.289) via pre-commit, add the following to your `.pre-commit-config.yaml`:

```yaml
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.8
Expand All @@ -30,6 +31,7 @@ To run Ruff's [linter](https://docs.astral.sh/ruff/linter) and [formatter](https
To enable lint fixes, add the `--fix` argument to the lint hook:

```yaml
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.8
Expand All @@ -44,6 +46,7 @@ To enable lint fixes, add the `--fix` argument to the lint hook:
To avoid running on Jupyter Notebooks, remove `jupyter` from the list of allowed filetypes:

```yaml
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.8
Expand Down

0 comments on commit 46cdcac

Please sign in to comment.