aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
AgeCommit message (Collapse)AuthorFilesLines
2026-04-28chore: remove dead cookiecutter regeneration infrastructurenatsuoto1-1/+1
The repo was bootstrapped from `cookiecutter-pylibrary`. The regeneration scaffolding has been sitting around since then — unused, out of date, and in some cases pointing at infrastructure (AppVeyor) that hasn't been part of CI for years. Knock it all down in one sweep so there's nothing dead-by-design in the tree after this PR. Removed - `.cookiecutterrc` — cookiecutter regen metadata. - `ci/bootstrap.py` — entry point for regenerating workflow files from the templates. - `ci/templates/` (whole directory): - `.appveyor.yml` template (AppVeyor isn't wired up). - `.github/workflows/github-actions.yml` Jinja template (the live workflow has evolved past it via #32, #35, #37). Coupled updates - `tox.ini`: dropped the `[testenv:bootstrap]` env (calls deleted `bootstrap.py`) and the `bootstrap` reference in the basepython selector. - `MANIFEST.in`: removed `include .cookiecutterrc`. - `setup.cfg`: removed `ci/templates` from the flake8 `exclude` and isort `skip` lists (dead exclusion paths). - `.pre-commit-config.yaml`: removed `ci/templates` from the top-level `exclude` regex. - `tests.local.sh`: replaced the per-version `if/elif` chain (which still listed Python 3.7 and missed 3.12-3.14) with a single programmatic `tox -e py$VERSION` lookup against `tox --listenvs-all`. Self-maintaining when the matrix changes. - `CHANGELOG.rst`: added a Housekeeping bullet for this PR. Live and untouched - `ci/requirements.txt` is still installed by every CI workflow (`pip install -r ci/requirements.txt`). Not regen-related. Closes #46
2026-04-28chore: modernize pre-commit hook configurationnatsuoto1-7/+7
The pre-commit config was broken on three fronts: - `rev: main` / `rev: master` is rejected by modern pre-commit, which requires immutable tags (or a SHA) so hook versions are reproducible. - `gitlab.com/pycqa/flake8` was archived years ago. flake8 now lives at `github.com/PyCQA/flake8`. - `timothycrosley/isort` was renamed to `PyCQA/isort` and the old path no longer resolves reliably. Pin every hook to its current latest release and replace `psf/black` with `psf/black-pre-commit-mirror`, the upstream-recommended mirror that ships without black's full dependency tree (faster hook installs). - pre-commit/pre-commit-hooks → v6.0.0 - PyCQA/isort → 8.0.1 - psf/black-pre-commit-mirror → 26.3.1 - PyCQA/flake8 → 7.3.0
2022-08-30Fix pre-commit hooks revsBobby1-2/+2
2022-08-30Add initial project skeleton.Bobby1-0/+24