Skip to content

Commit 1bb2119

Browse files
EliahKaganclaude
andcommitted
build(tox): let a mypy failure fail the tox run
The tox `mypy` environment has `ignore_outcome = true`, so a failure there is reported but does not fail the run. 4bea7cf (gitpython-developers#1667) added that to match CI, where the mypy step had `continue-on-error: true` because GitPython was not expected to pass mypy at the time. But 50762f1 (gitpython-developers#2087) removed `continue-on-error` from that step, so a mypy failure has failed CI since then, and mypy passes there on every Python version the `test` job covers. The tox environment was never updated to match. Now that tox also runs in the weekly `tox` workflow, this matters more: as things were, that workflow could not fail because of the `mypy` environment, even if the environment could not be set up at all. Remove `ignore_outcome`, so `mypy` failures fail tox as they fail CI. The `mypy` environment passed, with `ignore_outcome` false, on each of Python 3.9.6, 3.10.22, and 3.13.17, selected with `-x tool.tox.env.mypy.base_python=py39` and so on ("Success: no issues found in 40 source files"). 3.9 and 3.10 are in its `base_python` list, though CI only type-checks on 3.11 and later. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 851f47c commit 1bb2119

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎pyproject.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ description = "Typecheck with mypy"
244244
base_python = ["py39", "py310", "py311", "py312", "py313", "py314", "py315"]
245245
set_env = { MYPY_FORCE_COLOR = "1" }
246246
commands = [["mypy"]]
247-
ignore_outcome = true
248247

249248
[tool.tox.env.html]
250249
description = "Build HTML documentation"

0 commit comments

Comments
 (0)