Lint: Update Ruff config (#3433)
This commit is contained in:
parent
233cd5e065
commit
2868fe9c84
|
@ -14,6 +14,7 @@ concurrency:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
FORCE_COLOR: 1
|
FORCE_COLOR: 1
|
||||||
|
RUFF_FORMAT: github
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre-commit:
|
pre-commit:
|
||||||
|
|
|
@ -42,17 +42,6 @@ repos:
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
name: "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
|
- repo: https://github.com/psf/black
|
||||||
rev: 23.7.0
|
rev: 23.7.0
|
||||||
hooks:
|
hooks:
|
||||||
|
@ -63,6 +52,15 @@ repos:
|
||||||
- '--target-version=py310'
|
- '--target-version=py310'
|
||||||
files: 'pep_sphinx_extensions/tests/.*'
|
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
|
- repo: https://github.com/tox-dev/tox-ini-fmt
|
||||||
rev: 1.3.1
|
rev: 1.3.1
|
||||||
hooks:
|
hooks:
|
||||||
|
|
Loading…
Reference in New Issue