Skip to content

Commit 2847b8c

Browse files
authored
build(scripts): update mypy configuration and ignore errors in screenshot script (#1867)
Add scripts directory to mypy config and add type ignore for cli data parsing.
1 parent dd972c9 commit 2847b8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ known-first-party = ["commitizen", "tests"]
252252
convention = "google"
253253

254254
[tool.mypy]
255-
files = ["commitizen", "tests"]
255+
files = ["commitizen", "tests", "scripts"]
256256
disallow_untyped_decorators = true
257257
disallow_subclassing_any = true
258258
warn_return_any = true

scripts/gen_cli_help_screenshots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def gen_cli_help_screenshots() -> None:
1515

1616
cz_commands = (
1717
command["name"] if isinstance(command["name"], str) else command["name"][0]
18-
for command in data["subcommands"]["commands"]
18+
for command in data["subcommands"]["commands"] # type: ignore[index]
1919
)
2020
for cmd in chain(
2121
["cz --help"], (f"cz {cz_command} --help" for cz_command in cz_commands)

0 commit comments

Comments
 (0)