Repository navigation
docs(policy): Add PR template and workaround gate - #213
Merged
Merged
Conversation
why: Give pull request authors an explicit owner, baseline, and verification checklist alongside a copy-pasteable production-only revert command for regression tests. what: - Add .github/PULL_REQUEST_TEMPLATE.md with owner, failure baseline, and verification prompts - Add production-only git restore and rm test-bite recipe to .github/CONTRIBUTING.md
why: Fail CI once a locked package version satisfies a declared workaround's removal condition or when a bare suppression comment lands. what: - Add scripts/check_workarounds.py and run it in the test workflow - Select PGH003 and PGH004 in pyproject.toml
35 of 38 tasks
3 of 4 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes # N/A
Summary
.github/PULL_REQUEST_TEMPLATE.mdwith owner, regression baseline, and tool-disclosure prompts..github/CONTRIBUTING.md.scripts/check_workarounds.pyand run it in CI against lockfiles.PGH003andPGH004inpyproject.tomlagainst bare suppression comments.1. Owner and boundary
.github/,scripts/check_workarounds.py, andpyproject.toml; existingREVIEW.mdstays unchanged.sync/async, CLI/API, single/batch, orN/A):N/A2. Failure before the fix (
N/Afor docs, lockfile bumps, or pure refactors)<base>commit, or<pre_fix_head>SHA if fixing a defect introduced in this PR):N/AN/A3. Verification and tool disclosure
N/A):uv run ruff check .,uv run ruff format --check .,uv run ty check,uv run ty check --python-version 3.12 --python-platform win32,PYTHONDONTWRITEBYTECODE=1 uv run python -B scripts/check_workarounds.py, doctests onscripts/check_workarounds.py, anduv run pytest -q README.md tests/test_parser.py..github/workarounds.tomlupdates (Noneif none):NoneTest plan
uv run ruff check .passes withPGH003andPGH004enableduv run ruff format --check .passesuv run ty checkanduv run ty check --python-version 3.12 --python-platform win32passPYTHONDONTWRITEBYTECODE=1 uv run python -B scripts/check_workarounds.pyandpython -B -m doctest scripts/check_workarounds.pypassuv run pytest -q README.md tests/test_parser.pypasses