quix-streams
quix-streams copied to clipboard
Lint code with Ruff in pre-commit hooks and CI/CD
To improve the code quality, trigger Ruff linter from the pre-commit hooks and CI/CD.
What to do
- Add Ruff config to
pyproject.toml. - Extend the default Ruff rules with
SLFsubset. ruffshould check only code inquixstreamsandtestspackages- Run
ruff checkand fix the issues - Add a trigger to pre-commit hooks
- Trigger
ruff checkfrom CI/CD