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

Devops: Migrate to ruff and cleanup pre-commit config #52

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

sphuber
Copy link
Owner

@sphuber sphuber commented Nov 1, 2023

The ruff tool is adopted in the pre-commit. This completely replaces the hooks pylint, yapf, pydocstyle and isort. The encoding pragma is removed since this project is Python 3 only and all files are utf-8 encoded, which is the default assumed by the Python interpreter.

For formatting, ruff implements the same style as black. The only configuration options that are changed are to set the line length to 120 and to keep single quotes, instead of double quotes.

The `ruff` tool is adopted in the pre-commit. This completely replaces
the hooks `pylint`, `yapf`, `pydocstyle` and `isort`. The encoding
pragma is removed since this project is Python 3 only and all files are
utf-8 encoded, which is the default assumed by the Python interpreter.

For formatting, `ruff` implements the same style as `black`. The only
configuration options that are changed are to set the line length to 120
and to keep single quotes, instead of double quotes.
@sphuber sphuber force-pushed the fix/migrate-to-ruff branch 3 times, most recently from a578470 to 90bb49d Compare November 1, 2023 21:17
@sphuber sphuber merged commit a591f2a into master Nov 1, 2023
11 checks passed
@sphuber sphuber deleted the fix/migrate-to-ruff branch November 1, 2023 21:20
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