diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e058803..4fa9fe9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook - rev: v9.10.0 + rev: v9.11.0 hooks: - id: commitlint stages: @@ -24,7 +24,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/codespell-project/codespell @@ -38,7 +38,7 @@ repos: - id: pydocstyle additional_dependencies: ["tomli"] - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 ci: diff --git a/docs/source/_ext/luigi_move.py b/docs/source/_ext/luigi_move.py index 44440eb..fc301da 100644 --- a/docs/source/_ext/luigi_move.py +++ b/docs/source/_ext/luigi_move.py @@ -1,4 +1,5 @@ """Extension to define a new Sphinx directive for objects moved to the `luigi` package.""" + from docutils import nodes from docutils.parsers.rst import directives from docutils.statemachine import StringList diff --git a/tests/test_parameter.py b/tests/test_parameter.py index c3c5b96..931d9bf 100644 --- a/tests/test_parameter.py +++ b/tests/test_parameter.py @@ -728,12 +728,12 @@ def output(self): with set_luigi_config( { "TaskPathParameter": { - "a": str(tmpdir / (default + "_from_config")) - if default is not None - else str(tmpdir), - "b": str(tmpdir / (default + "_from_config")) - if default is not None - else str(tmpdir), + "a": ( + str(tmpdir / (default + "_from_config")) if default is not None else str(tmpdir) + ), + "b": ( + str(tmpdir / (default + "_from_config")) if default is not None else str(tmpdir) + ), "d": "", } }