Skip to content
Merged
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
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,25 @@ force-single-line = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.ty.rules]
unused-ignore-comment = "error"

[tool.ty.terminal]
error-on-warning = true

[[tool.ty.overrides]]
include = ["src/**/_version.py"]

[tool.ty.overrides.rules]
invalid-type-form = "ignore"

[[tool.ty.overrides]]
include = ["src/**/__init__.py"]

[tool.ty.overrides.rules]
unused-ignore-comment = "ignore"


[tool.pytest.ini_options]
# Do not add src since it messes with the loading of pytask-parallel as a plugin.
testpaths = ["tests"]
Expand Down
2 changes: 1 addition & 1 deletion src/pytask_stata/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

try:
from ._version import version as __version__
from ._version import version as __version__ # ty: ignore[unresolved-import]
except ImportError:
# broken installation, we don't even try unknown only works because we do poor mans
# version compare
Expand Down
2 changes: 1 addition & 1 deletion tests/test_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_pytask_execute_task_setup_raise_error(stata, platform, expectation):
task = Task(
base_name="task_example",
path=Path(),
function=lambda: None, # ty: ignore[invalid-argument-type]
function=lambda: None,
markers=[Mark("stata", (), {})],
)

Expand Down