Skip to content

🔧 build(lint): bump simplint to 0.10.1 - #258

Open
gaborbernat wants to merge 14 commits into
tox-dev:stack/windows-test-assumptionsfrom
gaborbernat:build/bump-simplint-0.10.0
Open

gaborbernat wants to merge 14 commits into
tox-dev:stack/windows-test-assumptionsfrom
gaborbernat:build/bump-simplint-0.10.0

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

The simplint pre-commit hook now uses v0.10.1, which checks private import paths. Windows registry discovery and proposal share one internal module, and tests mirror the modules they cover.

PEP 514 executable arguments pass through the existing public PythonInfo.from_exe method. The remaining private-import ignores cover Python's platform modules and synthetic Windows registry test data.

@gaborbernat gaborbernat added the skip news No user-facing changelog entry needed label Nov 10, 2026
@gaborbernat gaborbernat added the pre-commit.ci run Trigger pre-commit.ci rerun label Nov 10, 2026
@pre-commit-ci pre-commit-ci Bot removed the pre-commit.ci run Trigger pre-commit.ci rerun label Nov 10, 2026
@gaborbernat
gaborbernat changed the base branch from main to fix/expired-release-cutoff November 10, 2026 16:30
@gaborbernat
gaborbernat changed the base branch from fix/expired-release-cutoff to fix/windows-test-assumptions November 10, 2026 16:37
@gaborbernat
gaborbernat changed the base branch from fix/windows-test-assumptions to stack/windows-test-assumptions November 10, 2026 16:39
Windows registry discovery and proposal previously crossed two private module
boundaries. Keep them together and move tests alongside the modules they
cover. Pass PEP 514 arguments through PythonInfo.from_exe so the proposer no
longer calls a private method from another module.
Registry tests patched os.path.exists, forcing a module-wide Ruff exemption.
Use Path.exists in production and tests, and join registry paths as Windows
paths on every test host.
The test attached an undeclared attribute to candidate interpreters only to
identify the selected result. Compare its public traits instead and remove the
type-checker suppression.
The subprocess suppression said command formatting was only for logs, although
PEP 514 arguments use the formatted command line. State the actual reason for
interpreter interrogation and correct the probe's string-path rationale.
@gaborbernat gaborbernat removed the skip news No user-facing changelog entry needed label Nov 10, 2026
Long inline reasons obscured Windows registry code and prompted an expanded
subprocess import. Move explanations beside long statements and keep each
suppression tied to its platform or API constraint.
Python 3.9 setuptools reads sys.version_info.major while collecting interpreter
metadata. Use a local named tuple for mocked versions so tests keep the same
field access as the real value without importing a private module.
@gaborbernat
gaborbernat marked this pull request as ready for review November 10, 2026 17:26
@gaborbernat
gaborbernat marked this pull request as draft November 10, 2026 17:44
@gaborbernat
gaborbernat marked this pull request as ready for review November 10, 2026 17:47
@gaborbernat
gaborbernat marked this pull request as draft November 10, 2026 19:27
@gaborbernat gaborbernat changed the title 🔧 build(lint): bump simplint to 0.10.0 🔧 build(lint): bump simplint to 0.10.1 Nov 10, 2026
@gaborbernat
gaborbernat marked this pull request as ready for review November 10, 2026 20:20

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant