Lint: Update Ruff config (#3433)

This commit is contained in:
Hugo van Kemenade 2023-09-10 09:04:40 -06:00 committed by GitHub
parent 233cd5e065
commit 2868fe9c84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 11 deletions

View File

@ -14,6 +14,7 @@ concurrency:
env:
FORCE_COLOR: 1
RUFF_FORMAT: github
jobs:
pre-commit:

View File

@ -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:
@ -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: