Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit suggestions (#339)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Borda authored Dec 3, 2024
1 parent f1f2fc7 commit c953abe
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
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"]

0 comments on commit c953abe

Please sign in to comment.