Skip to content

Commit

Permalink
Lint: Update Ruff config (#3433)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Sep 10, 2023
1 parent 233cd5e commit 2868fe9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ concurrency:

env:
FORCE_COLOR: 1
RUFF_FORMAT: github

jobs:
pre-commit:
Expand Down
20 changes: 9 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,6 @@ repos:
- id: check-yaml
name: "Check YAML"

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.287
hooks:
- id: ruff
name: "Lint with Ruff"
args:
- '--exit-non-zero-on-fix'
- '--diff'
- '--format=github'
files: '^pep_sphinx_extensions/tests/'

- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
Expand All @@ -63,6 +52,15 @@ repos:
- '--target-version=py310'
files: 'pep_sphinx_extensions/tests/.*'

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.287
hooks:
- id: ruff
name: "Lint with Ruff"
args:
- '--exit-non-zero-on-fix'
files: '^pep_sphinx_extensions/tests/'

- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.3.1
hooks:
Expand Down

0 comments on commit 2868fe9

Please sign in to comment.