Skip to content

Use uv and pre-commit to run checks locally, and on GitHub Actions#19

Merged
danmilon merged 11 commits intoplatformsh:masterfrom
sruggier:pr/modernize
Apr 30, 2025
Merged

Use uv and pre-commit to run checks locally, and on GitHub Actions#19
danmilon merged 11 commits intoplatformsh:masterfrom
sruggier:pr/modernize

Conversation

@sruggier
Copy link
Contributor

This change uses pre-commit and uv together to enable running ruff, pyproject-fmt, prospector, basedpyright, py.test, and pre-commit-hooks. This allows the same configuration to be reused to run checks both locally, and on GitHub Actions. Tool installation is handled by uv, where possible, so the same tools can be conveniently run manually, and tool versions aren't duplicated between the project's dev dependencies and the pre-commit configuration.

sruggier added 11 commits April 29, 2025 17:43
These versions are already at EOL.
This is produced by setuptools during editable installs.
This is a library package, which doesn't need a lock file for packaging
purposes, but it's still useful for reproducible execution of
development and testing tools, both locally and in CI.
This change adds basedpyright as a dev dependency, configures a
pre-commit hook for it, and writes a baseline file to ignore all
existing warnings, so they can be fixed incrementally.
This replaces the existing ruff check workflow with one that reuses the
pre-commit configuration, checking everything included there.
@danmilon danmilon merged commit 57ffd87 into platformsh:master Apr 30, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants