Linting#
Before submitting a PR, ensure you’ve run our linting tools and either fixed any violations or suppressed the warning. If you can’t run the linting workflows locally, you can enable and run the clp-lint and clp-artifact-build workflows in your fork.
Requirements#
We currently support running our linting tools on Linux and macOS. If you’re developing on another OS, you can submit a feature request, or use our clp-lint workflow in your fork.
To run the linting tools, besides commonly installed tools like tar
, you’ll need:
curl
md5sum
Python 3.9 or newer
python3-venv (for the version of Python installed)
Task 3.44.0
We pin the version to 3.44.0 due to y-scope/clp#1352.
uv >= 0.8
Running the linters#
To perform the linting checks:
task lint:check
To also apply any automatic fixes:
task lint:fix