Skip to content

Commit c835139

Browse files
[pre-commit.ci] pre-commit autoupdate (#9760)
updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.5.0](astral-sh/ruff-pre-commit@v0.4.10...v0.5.0) - [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.10.1](pre-commit/mirrors-mypy@v1.10.0...v1.10.1) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
1 parent d281f2f commit c835139

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,20 @@ repos:
1717
doc/data/messages/m/missing-final-newline/bad/crlf.py
1818
)$
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: "v0.4.10"
20+
rev: "v0.5.0"
2121
hooks:
2222
- id: ruff
2323
args: ["--fix"]
2424
exclude: &fixtures tests(/\w*)*/functional/|tests/input|doc/data/messages|tests(/\w*)*data/
2525
- id: ruff
2626
name: ruff-doc
2727
files: doc/data/messages
28+
exclude: |
29+
(?x)^(
30+
doc/data/messages/d/duplicate-argument-name/bad.py|
31+
doc/data/messages/s/syntax-error/bad.py
32+
)$
33+
2834
args: ["--config", "doc/data/ruff.toml"]
2935
- repo: https://github.com/Pierre-Sassoulas/copyright_notice_precommit
3036
rev: 0.1.2
@@ -123,7 +129,7 @@ repos:
123129
files: ^(doc/(.*/)*.*\.rst)
124130
additional_dependencies: [Sphinx==5.0.1]
125131
- repo: https://github.com/pre-commit/mirrors-mypy
126-
rev: v1.10.0
132+
rev: v1.10.1
127133
hooks:
128134
- id: mypy
129135
name: mypy

doc/data/ruff.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
ignore = []
21
# Reading ease is drastically reduced on read the doc after 103 chars
32
# (Because of horizontal scrolling)
43
line-length = 103
4+
5+
[lint]
6+
ignore = []
57
select = ["E501", "I"]
68

79

8-
[per-file-ignores]
10+
[lint.per-file-ignores]
911
"doc/data/messages/r/reimported/bad.py" = ["I"]
1012
"doc/data/messages/w/wrong-import-order/bad.py" = ["I"]
1113
"doc/data/messages/u/ungrouped-imports/bad.py" = ["I"]

0 commit comments

Comments
 (0)