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

Use ruff in place of black, flake8, reorder-python-imports, pyupgrade #1209

Draft
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

dairiki
Copy link
Contributor

@dairiki dairiki commented Nov 17, 2024

This replaces our use of the black, flake8, reorder-python-imports and pyupgrade pre-commit hooks with ruff.

Attempts are made here to minimize the number of code changes necessary to match ruff's rules while at the same time not adding blanket-ignores for rules.

Issue(s) Resolved

Fixes #1206

Related Issues / Links

Description of Changes

  • Wrote at least one-line docstrings (for any new functions)
  • Added unit test(s) covering the changes (if testable)

@dairiki dairiki force-pushed the feat.ruff branch 2 times, most recently from 351c0d2 to 0484141 Compare November 18, 2024 01:53
@webknjaz webknjaz mentioned this pull request Nov 18, 2024
@dairiki dairiki added testing ci related to Lektor's continous integration labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci related to Lektor's continous integration testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

black==2024 is incompatible with reorder-python-imports
2 participants