Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and jugmac00 committed Apr 30, 2024
1 parent 9afc9cb commit e2f66b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tox/config/loader/ini/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def replacer(raw_: str, args_: ConfigLoadArgs) -> str:
else:
try:
replaced = replace(conf, self, raw_, args_) # do replacements
except Exception as exception: # noqa: BLE001
except Exception as exception:
if isinstance(exception, HandledError):
raise
name = self.core_section.key if args_.env_name is None else args_.env_name
Expand Down
2 changes: 1 addition & 1 deletion tests/config/loader/ini/replace/test_replace_tox_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_replace_within_section_chain_deep(caplog: LogCaptureFixture, tox_ini_co
"a0 = 1",
*(f"a{ix} = {{[vars]a{ix - 1}}}" for ix in range(1, depth + 1)),
"[testenv:a]",
"b = {[vars]a%s}" % depth,
f"b = {{[vars]a{depth}}}",
],
),
)
Expand Down

0 comments on commit e2f66b1

Please sign in to comment.