Skip to content

Commit 2868fe9

Browse files
authored
Lint: Update Ruff config (#3433)
1 parent 233cd5e commit 2868fe9

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ concurrency:
1414

1515
env:
1616
FORCE_COLOR: 1
17+
RUFF_FORMAT: github
1718

1819
jobs:
1920
pre-commit:

.pre-commit-config.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,6 @@ repos:
4242
- id: check-yaml
4343
name: "Check YAML"
4444

45-
- repo: https://github.com/astral-sh/ruff-pre-commit
46-
rev: v0.0.287
47-
hooks:
48-
- id: ruff
49-
name: "Lint with Ruff"
50-
args:
51-
- '--exit-non-zero-on-fix'
52-
- '--diff'
53-
- '--format=github'
54-
files: '^pep_sphinx_extensions/tests/'
55-
5645
- repo: https://github.com/psf/black
5746
rev: 23.7.0
5847
hooks:
@@ -63,6 +52,15 @@ repos:
6352
- '--target-version=py310'
6453
files: 'pep_sphinx_extensions/tests/.*'
6554

55+
- repo: https://github.com/astral-sh/ruff-pre-commit
56+
rev: v0.0.287
57+
hooks:
58+
- id: ruff
59+
name: "Lint with Ruff"
60+
args:
61+
- '--exit-non-zero-on-fix'
62+
files: '^pep_sphinx_extensions/tests/'
63+
6664
- repo: https://github.com/tox-dev/tox-ini-fmt
6765
rev: 1.3.1
6866
hooks:

0 commit comments

Comments
 (0)