Skip to content

Commit 48979d1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a3e4502 commit 48979d1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/tox/config/source/setup_cfg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ class SetupCfg(IniSource):
1818
def __init__(self, path: Path) -> None:
1919
super().__init__(path)
2020
if not self._parser.has_section(self.CORE_SECTION.key):
21-
raise ValueError(f"section {self.CORE_SECTION.key} not found")
21+
msg = f"section {self.CORE_SECTION.key} not found"
22+
raise ValueError(msg)
2223

2324

2425
__all__ = ("SetupCfg",)

tests/session/cmd/test_legacy.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ def test_legacy_list_env_with_no_tox_file(tox_project: ToxProjectCreator) -> Non
6565
project = tox_project({})
6666
outcome = project.run("le", "-l")
6767
outcome.assert_success()
68-
out = (
69-
f"ROOT: No loadable tox.ini or setup.cfg or pyproject.toml or tox.toml found, assuming empty tox.ini at {project.path}\n"
70-
)
68+
out = f"ROOT: No loadable tox.ini or setup.cfg or pyproject.toml or tox.toml found, assuming empty tox.ini at {project.path}\n"
7169
assert not outcome.err
7270
assert outcome.out == out
7371

0 commit comments

Comments
 (0)