From 1f150d4c42feddb4087945cf3b2fd90959c5548b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 18:31:16 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/alessandrojcm/commitlint-pre-commit-hook: v9.10.0 → v9.11.0](https://github.com/alessandrojcm/commitlint-pre-commit-hook/compare/v9.10.0...v9.11.0) - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: From 0dc7fa7164e4060739c6317fa4e65bb11a5dbef9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 18:31:47 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/source/_ext/luigi_move.py | 1 + tests/test_parameter.py | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) 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": "", } }