Skip to content

Commit 0123251

Browse files
committed
refactor: leave access private
Signed-off-by: Henry Schreiner <[email protected]>
1 parent b2c3c50 commit 0123251

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,3 @@ overrides = [
253253
"virtualenv.*",
254254
], ignore_missing_imports = true },
255255
]
256-
257-
[tool.uv]
258-
environments = [ "python_version >= '3.10'" ]

src/tox/config/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@ def core(self) -> CoreConfigSet:
123123
self._core_set = core
124124
return core
125125

126-
def all_section_configs(self) -> Iterator[tuple[tuple[str, str, str], ConfigSet]]:
127-
yield from self._key_to_conf_set.items()
128-
129126
def get_section_config(
130127
self,
131128
section: Section,

src/tox/session/cmd/schema.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,12 @@ def gen_schema(state: State) -> int:
9999

100100
properties = _get_schema(core, path="#/properties")
101101

102+
# This accesses plugins that register new sections (like tox-gh)
103+
# Accessing a private member since this is not exposed yet and the
104+
# interface includes the internal storage tuple
102105
sections = {
103106
key: conf
104-
for s, conf in state.conf.all_section_configs()
107+
for s, conf in state.conf._key_to_conf_set.items() # noqa: SLF001
105108
if (key := s[0].split(".")[0]) not in {"env_run_base", "env_pkg_base", "env"}
106109
}
107110
for key, conf in sections.items():

0 commit comments

Comments
 (0)