Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
additional_dependencies: ["json5==0.15.0"]
- repo: https://github.com/astral-sh/ruff-pre-commit
# The Ruff version must match requirements-tests.txt.
rev: c59bba8fb259db0fec2bbb77ad8ba51ea7341b56 # frozen: v0.15.20
rev: 2eeb5678de71a00c0902cbda7105d328432f72cb # frozen: v0.16.8
hooks:
- id: ruff
name: Run ruff on stubs, tests and scripts
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ ignore = [
"PLR5501", # Use `elif` instead of `else` then `if`, to reduce indentation
# Often just leads to redundant more verbose code when needing an actual str
"PTH208", # Use `pathlib.Path.iterdir()` instead.
"RUF036", # `None` is not at the end of the union
# Allow FIXME
"TD001", # Invalid TODO tag: `{tag}`
# Git blame is sufficient
Expand Down
2 changes: 1 addition & 1 deletion requirements-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mypy-protobuf==5.1.0; python_version < "3.15"
packaging==26.2
pathspec>=1.1.1
pre-commit
ruff==0.15.20
ruff==0.16.8
# Required by create_baseline_stubs.py.
# stubdefaulter depends on libcst, which does not yet install cleanly on Python 3.15.
stubdefaulter==0.1.0; python_version < "3.15"
Expand Down
3 changes: 2 additions & 1 deletion stubs/reportlab/reportlab/lib/rltempfile.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
def get_rl_tempdir(*subdirs: str) -> str: ...
def get_rl_tempfile(fn: str | None = None) -> str: ...

__all__ = ("get_rl_tempdir", "get_rl_tempdir")
# The duplicate entry matches the runtime __all__.
__all__ = ("get_rl_tempdir", "get_rl_tempdir") # noqa: RUF068
3 changes: 2 additions & 1 deletion stubs/workalendar/workalendar/europe/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ __all__ = (
"Cantabria",
"ValencianCommunity",
# Switzerland
"Switzerland",
# The duplicate entry matches the runtime __all__.
"Switzerland", # noqa: RUF068
"Aargau",
"AppenzellInnerrhoden",
"AppenzellAusserrhoden",
Expand Down
Loading