Skip to content

Commit 645b136

Browse files
authored
Add ty overrides for version module (#63)
* Add ty overrides for version module * Fix ty ignores
1 parent 941f99c commit 645b136

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

pixi.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,19 @@ unused-ignore-comment = "error"
8888
[tool.ty.terminal]
8989
error-on-warning = true
9090

91+
[[tool.ty.overrides]]
92+
include = ["src/**/_version.py"]
93+
94+
[tool.ty.overrides.rules]
95+
invalid-type-form = "ignore"
96+
97+
[[tool.ty.overrides]]
98+
include = ["src/**/__init__.py"]
99+
100+
[tool.ty.overrides.rules]
101+
unused-ignore-comment = "ignore"
102+
103+
91104
[tool.pytest.ini_options]
92105
testpaths = ["src", "tests"]
93106
markers = [

src/pytask_julia/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
try:
6-
from ._version import version as __version__
6+
from ._version import version as __version__ # ty: ignore[unresolved-import]
77
except ImportError: # pragma: no cover
88
# broken installation, we don't even try unknown only works because we do poor mans
99
# version compare

0 commit comments

Comments
 (0)