Skip to content

Commit c4d36e5

Browse files
authored
chore: pass sp-repo-review (#942)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 2af2c33 commit c4d36e5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ show_contexts = true
134134

135135
[tool.pytest.ini_options]
136136
minversion = "6.0"
137-
addopts = ["--strict-config", "--strict-markers"]
137+
addopts = ["-ra", "--strict-config", "--strict-markers"]
138138
log_cli_level = "info"
139139
testpaths = ["tests"]
140140
xfail_strict = true
@@ -159,8 +159,8 @@ filterwarnings = [
159159
files = "src"
160160
python_version = "3.9"
161161
strict = true
162-
show_error_codes = true
163162
enable_error_code = ["ignore-without-code", "truthy-bool", "redundant-expr"]
163+
warn_unreachable = true
164164

165165
[[tool.mypy.overrides]]
166166
module = [
@@ -206,6 +206,10 @@ ignore = [
206206
"W005", # We _are_ build
207207
]
208208

209+
[tool.repo-review]
210+
ignore = ["PC140"] # mypy in tox
211+
212+
209213
[tool.bumpversion]
210214
current_version = "1.0.0"
211215

src/build/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def _handle_build_error() -> Iterator[None]:
198198
)
199199
tb = ''.join(tb_lines)
200200
else: # pragma: no cover
201-
tb = traceback.format_exc(-1)
201+
tb = traceback.format_exc(-1) # type: ignore[unreachable]
202202
_cprint('\n{dim}{}{reset}\n', tb.strip('\n'))
203203
_error(str(e))
204204
except Exception as e: # pragma: no cover

0 commit comments

Comments
 (0)