Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint and format with ruff #1

Merged
merged 4 commits into from
Jan 13, 2025
Merged

Lint and format with ruff #1

merged 4 commits into from
Jan 13, 2025

Conversation

tlestang
Copy link
Contributor

@tlestang tlestang commented Jan 13, 2025

Ruff is a popular tool for both linting and formatting Python code. There are numerous quality alternatives (black, blue, pyflakes, flake8...) but ruff has a track record of being the fastest out there.

This applies ruff format on all files under the src directory, as well as multiple fixes required for ruff check to pass as well.

The ruff configuration is left close to the default, with the exception of the line-length set to 79 and allowing short variable names. Ruff is configured through the pyproject.toml file.

This also add a github workflo config to run ruff as part of CI checks.

@tlestang tlestang merged commit 8573a81 into main Jan 13, 2025
2 checks passed
@tlestang tlestang deleted the ruff branch January 13, 2025 11:02
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.

1 participant