Repository navigation
MAINT: Modernize repository tooling and CI - #281
Open
MartinThoma wants to merge 1 commit into
Open
MartinThoma wants to merge 1 commit into
MartinThoma wants to merge 1 commit into
Conversation
Packaging & release: * Publish to PyPI via Trusted Publishing (OIDC) with separate build and publish jobs, instead of `flit publish` with an API token * Fix release workflow triggers: tag pushes and manual runs were always skipped, and "Create git tag" runs without a REL commit were not * Pass commit messages via env vars to avoid shell injection * Remove the unused setup.py and the `flit` CLI (flit_core stays the backend) * Raise dependency lower bounds to versions that actually pass the tests: pypdf>=6.6.0, typer>=0.16.0, fpdf2>=2.8.2 Tooling: * Replace black, flake8, isort and pyupgrade with ruff (check + format) * Enable pyupgrade rules UP006/UP007, which only need Python 3.10 * Move mypy config into pyproject.toml; delete setup.cfg, mypy.ini, .isort.cfg and the dependabot configs (Renovate handles updates) * Regenerate pylock.toml CI: * Test the minimal dependency versions on Python 3.10 (the old check only ran on 3.8, which was no longer in the matrix) * Build the docs with warnings as errors * Define PYTHON_LATEST, cache pip, least-privilege permissions, persist-credentials: false, cancel superseded PR runs * Make the gitignored-files check actually detect committed ignored files Docs & misc: * Read the Docs: install the `docs` dependency group (it is not an extra) * Add extract-links to the toctree and fix Sphinx warnings * Stop test_extract_annotated_pages from writing into resources/ * Makefile: drop `upload`, make `clean` portable, use ruff in `lint` Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
|
||
| env: | ||
| PYTHON_LATEST: "3.14" |
There was a problem hiding this comment.
Isn't this already outdated? Python 3.15 has been released this month.
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.
Packaging & release:
flit publishwith an API tokenflitCLI (flit_core stays the backend)Tooling:
CI:
Docs & misc:
docsdependency group (it is not an extra)upload, makecleanportable, use ruff inlint