Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#9760)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Pierre-Sassoulas authored Jul 3, 2024
1 parent d281f2f commit c835139
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,20 @@ repos:
doc/data/messages/m/missing-final-newline/bad/crlf.py
)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.10"
rev: "v0.5.0"
hooks:
- id: ruff
args: ["--fix"]
exclude: &fixtures tests(/\w*)*/functional/|tests/input|doc/data/messages|tests(/\w*)*data/
- id: ruff
name: ruff-doc
files: doc/data/messages
exclude: |
(?x)^(
doc/data/messages/d/duplicate-argument-name/bad.py|
doc/data/messages/s/syntax-error/bad.py
)$
args: ["--config", "doc/data/ruff.toml"]
- repo: https://github.com/Pierre-Sassoulas/copyright_notice_precommit
rev: 0.1.2
Expand Down Expand Up @@ -123,7 +129,7 @@ repos:
files: ^(doc/(.*/)*.*\.rst)
additional_dependencies: [Sphinx==5.0.1]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.10.1
hooks:
- id: mypy
name: mypy
Expand Down
6 changes: 4 additions & 2 deletions doc/data/ruff.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
ignore = []
# Reading ease is drastically reduced on read the doc after 103 chars
# (Because of horizontal scrolling)
line-length = 103

[lint]
ignore = []
select = ["E501", "I"]


[per-file-ignores]
[lint.per-file-ignores]
"doc/data/messages/r/reimported/bad.py" = ["I"]
"doc/data/messages/w/wrong-import-order/bad.py" = ["I"]
"doc/data/messages/u/ungrouped-imports/bad.py" = ["I"]
Expand Down

0 comments on commit c835139

Please sign in to comment.