- Create and activate a Python 3.10+ virtual environment.
- Install the package and dev dependencies:
pip install -e ".[dev]"
- Run the test suite to confirm a clean baseline:
python -m pytest -v
- Make focused, surgical changes.
- Run the CLI smoke checks:
code-normalizer-pro --help code-normalizer-pro . --dry-run -e .py
- Update
tests/andCHANGELOG.mdfor any behavior change. - Run tests again before opening a PR.
Large refactors follow the REFACTOR_LAW.txt workflow: snapshot first, work on a temp copy, verify, then patch the live file.
- Build artifacts:
python -m build --sdist --wheel python -m twine check dist/*
- Run the release readiness checker:
python scripts/release_prep.py