Skip to content

Commit fc4619b

Browse files
authored
Fixup lints
Signed-off-by: GitHub <[email protected]>
1 parent 6a5b082 commit fc4619b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,16 @@ ignore = [
7373

7474
[tool.ruff.lint.pydocstyle]
7575
convention = "numpy"
76+
77+
[tool.mypy]
78+
plugins = ["pydantic.mypy"]
79+
80+
[[tool.mypy.overrides]]
81+
module = ["imsosorry"]
82+
ignore_missing_imports = true
83+
84+
[tool.coverage.run]
85+
source = ["api"]
86+
87+
[tool.pytest.ini_options]
88+
addopts = "--strict-markers"

src/api/modules/generators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def bulk_uuids(self, data: UUIDConfig) -> UUIDs:
6161
if data.uuid_type == 1:
6262
function = uuid.uuid1
6363
elif data.uuid_type == 4: # noqa: PLR2004 - comparing ints
64-
function = uuid.uuid4
64+
function = uuid.uuid4 # type: ignore[assignment]
6565
else:
6666
msg = f"unsupported UUID type: {data.uuid_type}"
6767
raise ValueError(msg)

0 commit comments

Comments
 (0)