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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:
args: ["--in-place"]

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.18
rev: 0.7.19
hooks:
- id: mdformat
additional_dependencies:
Expand All @@ -55,7 +55,7 @@ repos:
args: ["--print-width=120"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.2
rev: v0.8.1
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -73,6 +73,6 @@ repos:
- id: pyproject-fmt
additional_dependencies: [tox]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.22
rev: v0.23
hooks:
- id: validate-pyproject
6 changes: 3 additions & 3 deletions src/lightning_utilities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@


__all__ = [
"apply_to_collection",
"StrEnum",
"module_available",
"WarningCache",
"apply_to_collection",
"compare_version",
"is_overridden",
"WarningCache",
"module_available",
]
6 changes: 3 additions & 3 deletions src/lightning_utilities/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
from lightning_utilities.core.rank_zero import WarningCache

__all__ = [
"apply_to_collection",
"StrEnum",
"module_available",
"WarningCache",
"apply_to_collection",
"compare_version",
"is_overridden",
"WarningCache",
"module_available",
]
2 changes: 1 addition & 1 deletion src/lightning_utilities/docs/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def find_source() -> Tuple[str, int, int]:
if domain != "py" or not info["module"]:
return ""
try:
filename = "%s#L%d-L%d" % find_source()
filename = "%s#L%d-L%d" % find_source() # noqa: UP031
except Exception:
filename = info["module"].replace(".", "/") + ".py"
# import subprocess
Expand Down
2 changes: 1 addition & 1 deletion src/lightning_utilities/install/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

from lightning_utilities.install.requirements import Requirement, load_requirements

__all__ = ["load_requirements", "Requirement"]
__all__ = ["Requirement", "load_requirements"]
Loading