Modernize pyproject metadata, lint test files in pre-commit - #26
Merged
Conversation
Three small dev-tooling fixes that were producing noise on every install or that had silently introduced format drift: - pyproject.toml: switch license metadata to PEP 639 form (`license = "MIT"` SPDX expression + `license-files = ["LICENSE"]`, drop the deprecated `License ::` classifier). Silences the warning uv printed on every install. - pyproject.toml: relax the `uv_build` build-system requirement from `<0.11` to `<0.12` so it accepts the current uv 0.11.x. Silences the second warning that was printed on every install. - Dockerfile: COPY the LICENSE file into the build stage so PEP 639 `license-files` resolution succeeds inside the container. - .githooks/pre-commit and Makefile: lint and format-check both `src/` and `tests/`, not just `src/`. Test files had drifted twice recently because the hook never looked at them.
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.
Summary
Three small dev-tooling fixes that were either producing noise on every install or had silently introduced format drift:
license = {text = "MIT"}+License :: OSI Approved :: MIT Licenseclassifier tolicense = "MIT"(SPDX expression) +license-files = ["LICENSE"]. Silences the deprecation warning uv printed on every install.uv_buildbuild-system requirement —>=0.10.9,<0.11→>=0.10.9,<0.12so it accepts the current uv 0.11.x. Silences the second warning that printed on every install.COPYthe LICENSE file into the build stage so PEP 639license-filesresolution succeeds inside the container. Without this the Docker integration tests fail withglob 'LICENSE' did not match any files.src/andtests/, not justsrc/. Test files had drifted twice recently because the hook never looked at them.Test plan
uv sync— no longer prints license-classifier or uv-build version warningsuv run ruff check src/ tests/— cleanuv run ruff format --check src/ tests/— clean (86 files vs. previous 44)uv run ty check— cleanuv run pytest— 779 passed (incl. 5 Docker tests now passing with LICENSE copied in)