Skip to content

Commit

Permalink
chore: fixes to ruff pre-commit instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahal committed Nov 15, 2023
1 parent 462f706 commit 3f4a384
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions STANDARD.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,22 +415,23 @@ select = [
"E", "W", # pycodestyle
"F", # pyflakes
"I", # isort
"PLC", "PLE", # pylint
"PLC", "PLE", # pylint
"UP", # pyupgrade
]
ignore = [
"E501", # let black handle line-length
]
target-version = "py37"
# change to your minimum supported Python version
target-version = "py38"
```

Additionally ruff should be configured to run in the `pre-commit` hook by adding
the following to the top-level `.pre-commit-config.yaml` file:

```yaml
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.272'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.5'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down

0 comments on commit 3f4a384

Please sign in to comment.