Skip to content
Open
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 @@ -22,7 +22,7 @@ repos:
- id: detect-private-key

- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
rev: v2.4.2
hooks:
- id: codespell
additional_dependencies: [tomli]
Expand Down Expand Up @@ -57,7 +57,7 @@ repos:
args: ["--print-width=120"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.4
rev: v0.15.9
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -70,7 +70,7 @@ repos:
- id: sphinx-lint

- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.16.2
rev: v2.21.0
hooks:
- id: pyproject-fmt
additional_dependencies: [tox]
Expand Down
24 changes: 11 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ quiet-level = 3
# also adding links until they ignored by its: nature
# https://github.com/codespell-project/codespell/issues/2243#issuecomment-1732019960
# ignore-words-list = ""

[tool.docformatter]
recursive = true
# this need to be shorter as some docstings are r"""...
Expand All @@ -114,6 +113,17 @@ ignore = [
".github/*",
]

# [tool.coverage.run]
# parallel = true
# concurrency = ['thread']
# relative_files = true
[tool.mypy]
files = [
"src/lightning_utilities",
]
disallow_untyped_defs = true
ignore_missing_imports = true

[tool.pytest]
ini_options.norecursedirs = [
".git",
Expand Down Expand Up @@ -142,15 +152,3 @@ report.exclude_lines = [
"pass",
"pragma: no cover",
]

# [tool.coverage.run]
# parallel = true
# concurrency = ['thread']
# relative_files = true

[tool.mypy]
files = [
"src/lightning_utilities",
]
disallow_untyped_defs = true
ignore_missing_imports = true
2 changes: 1 addition & 1 deletion tests/unittests/cli/test_command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

def test_version():
"""Prints the help message for the requirements commands."""
return_code = subprocess.call([sys.executable, "-m", "lightning_utilities.cli", "version"]) # noqa: S603
return_code = subprocess.call([sys.executable, "-m", "lightning_utilities.cli", "version"])
assert return_code == 0


Expand Down
Loading