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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.23.0
rev: v9.24.0
hooks:
- id: commitlint
stages:
- commit-msg
additional_dependencies: ['conventional-changelog-conventionalcommits']
- repo: https://github.com/pycqa/isort
rev: 7.0.0
rev: 8.0.1
hooks:
- id: isort
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.3.1
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
rev: v2.4.2
hooks:
- id: codespell
args: ["-x", ".codespellignorelines"]
Expand Down
1 change: 1 addition & 0 deletions luigi_tools/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

"""This module provides some specific luigi parameters."""

import collections.abc
import dataclasses
import typing
Expand Down
1 change: 1 addition & 0 deletions luigi_tools/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

"""This module provides some specific luigi targets."""

from pathlib import Path

import luigi
Expand Down
1 change: 1 addition & 0 deletions luigi_tools/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

"""This module provides some specific luigi tasks and associated tools."""

import logging
import types
from copy import deepcopy
Expand Down
1 change: 1 addition & 0 deletions luigi_tools/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

"""This module provides some functions to work with luigi tasks."""

import configparser
import logging
import os
Expand Down
20 changes: 4 additions & 16 deletions tests/test_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1135,33 +1135,21 @@ def output(self):
return luigi.LocalTarget("not_existing_file")

# Test with values from config
with set_luigi_config(
{
"TaskDataClassParameter": {
"a": """{
with set_luigi_config({"TaskDataClassParameter": {"a": """{
"a": {"a": 1, "b": "2"},
"b": {"c": 3.0, "d": 4},
"c": {"e": 5, "f": 6},
"d": {"7": 8.0, "9": 10.0}
}"""
}
}
):
}"""}}):
assert luigi.build([TaskDataClassParameter()], local_scheduler=True)

# Parsing fails with integer keys
with set_luigi_config(
{
"TaskDataClassParameter": {
"a": """{
with set_luigi_config({"TaskDataClassParameter": {"a": """{
"a": {"a": 1, "b": "2"},
"b": {"c": 3.0, "d": 4},
"c": {"e": 5, "f": 6},
"d": {7: 8.0, 9: 10.0}
}"""
}
}
):
}"""}}):
with pytest.raises(ValueError):
luigi.build([TaskDataClassParameter()], local_scheduler=True)

Expand Down
1 change: 1 addition & 0 deletions tests/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

"""A few helpers for luigi-tools test suite."""

from pathlib import Path


Expand Down
Loading