Skip to content

Commit d89dcb3

Browse files
Hironori Yamamotohiro-o918
Hironori Yamamoto
authored andcommitted
docs: add missing paramter
1 parent 85690ca commit d89dcb3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/mypy_plugin.rst

+14
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,17 @@ Mypy plugin checks TaskOnKart generic types.
6464
str_task=StrTask(), # mypy ok
6565
int_task=StrTask(), # mypy error: Argument "int_task" to "StrTask" has incompatible type "StrTask"; expected "TaskOnKart[int]
6666
)
67+
68+
Configurations (only pyproject.toml)
69+
-----------------------------------
70+
71+
You can configure the Mypy plugin using the ``pyproject.toml`` file.
72+
The following options are available:
73+
74+
.. code:: toml
75+
76+
[tool.gokart-mypy]
77+
# If true, Mypy will raise an error if a task is missing required parameters.
78+
# This configuration causes an error when the parameters set by `luigi.Config()`
79+
# Default: false
80+
disallow_missing_parameters = true

0 commit comments

Comments
 (0)