Skip to content

chore(ci): standardize workflows, sync maps, and meta-repo tests layout#37

Merged
buddingengineers12345 merged 7 commits intomainfrom
chore/standardize-workflows-and-locks
Apr 14, 2026
Merged

chore(ci): standardize workflows, sync maps, and meta-repo tests layout#37
buddingengineers12345 merged 7 commits intomainfrom
chore/standardize-workflows-and-locks

Conversation

@buddingengineers12345
Copy link
Copy Markdown
Owner

@buddingengineers12345 buddingengineers12345 commented Apr 13, 2026

Summary

  • Standardize GitHub workflow conventions across root and template workflow files (including PR policy alignment).
  • Lock workflow parity by extending root-template sync map/policy (e.g. labeler workflow).
  • Restructure meta-repo pytest layout: tests/integration/test_template.py for Copier, tests/scripts/ mirroring scripts/, shared tests/_paths.py, and pythonpath in pytest config.
  • Refresh freshness artifacts and documentation (CLAUDE.md, rules, hooks, README).

Validation

  • just lint
  • just test
  • just type

- standardize root/template workflow guardrails (permissions/concurrency/version pinning)

- add template labeler workflow counterpart

- lock labeler workflow in root-template sync policy/map

- add committed filepaths tracker csv

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions bot added documentation Improvements or additions to documentation ci template labels Apr 13, 2026
- Move Copier suite to tests/integration/test_template.py and mirror scripts/ under tests/scripts/
- Add tests/_paths.py, package __init__, and pytest pythonpath for nested imports
- Document layout in CLAUDE.md, rules, hooks, README; refresh freshness artifacts
- Include workflow policy template sync updates on this branch

Made-with: Cursor
@github-actions github-actions bot added dependencies Pull requests that update a dependency file scripts tests labels Apr 13, 2026
@buddingengineers12345 buddingengineers12345 changed the title chore(ci): standardize workflows and lock sync mappings chore(ci): standardize workflows, sync maps, and meta-repo tests layout Apr 13, 2026
claude and others added 3 commits April 14, 2026 01:36
- Remove tests/__init__.py and tests/scripts/ — switch to flat layout
- Add tests/constants.py (renamed from _paths.py) with REPO_ROOT, TEMPLATE_ROOT, COPIER_YAML
- Add tests/conftest.py as top-level pytest config entry point
- Move all unit tests from tests/scripts/ → tests/unit/
- Add tests/integration/ and tests/e2e/ tier directories
- Update pyproject.toml pythonpath to [".", "tests"] for flat imports
- Move template test files: {{ package_name }}/ → unit/ and unit/common/
- Add template conftest.py.jinja stubs for integration/ and e2e/ tiers
- Update all imports from 'tests.constants' → 'constants' (flat)
- Fix import sort order in 3 test files (ruff I001)
- Update CLAUDE.md, tests/CLAUDE.md, .claude/rules/python/testing.md

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Delete tests/constants.py — shared constants file pattern is discouraged
- Inline REPO_ROOT / TEMPLATE_ROOT / COPIER_YAML directly in each test file
  that needs them using Path(__file__).resolve().parent.parent.parent
- Remove 'tests' from pyproject.toml pythonpath (no longer needed)
- Fix PT018 compound assertion violations (new 'PT' ruleset in pyproject.toml)
- Fix PT011 pytest.raises too-broad (add match= to ValueError raises)
- Fix missing 'import sys' in test_sync_skip_if_exists.py
- Document 'no shared constants file' rule in tests/CLAUDE.md
- Update .claude/rules/python/testing.md layout tree (remove __init__.py,
  remove constants.py, document inline constants pattern)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- justfile / template/justfile.jinja: recipe updates
- template/pyproject.toml.jinja: enhancements
- scripts/bump_version.py, scripts/repo_file_freshness.py: refinements
- copier.yml: variable updates
- CLAUDE.md: documentation updates
- .pre-commit-config.yaml: hook config tweaks

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
claude and others added 2 commits April 14, 2026 02:12
…format

The error message uses 'X.Y.Z' as a placeholder, not digits.
Update match pattern from \d+\.\d+\.\d+ to X\.Y\.Z.

Also update CLAUDE.md to reflect expanded ruff rule set (TCH, PGH, PT, ARG).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@buddingengineers12345 buddingengineers12345 merged commit c199e9d into main Apr 14, 2026
6 of 8 checks passed
@buddingengineers12345 buddingengineers12345 deleted the chore/standardize-workflows-and-locks branch April 16, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build ci copier dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation scripts template tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants