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

Added ruff to pre-commit #28

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Added ruff to pre-commit #28

merged 1 commit into from
Jun 25, 2024

Conversation

liudmylaru
Copy link
Member

Description

Ruff can be used to replace Flake8 (plus dozens of plugins), Black, isort, pydocstyle, and more, all while executing tens or hundreds of times faster than any individual tool.

Added ruff to run mainly default settings with little extra and exclude. While developing our code we will add/exclude more. Please check on rules and suggest what can be added to default (section 'select' in pyproject.toml) and what can be excluded (section 'ignore' in pyproject.toml)- https://docs.astral.sh/ruff/rules/.

What was done

  • added repo to .pre-commit-config.yaml
  • added rules to pyproject.toml
  • removed black, because ruff has drop-in parity with it

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 24, 2024
Copy link

📌 Overall coverage:

No success to gather report. 😿

Copy link

📌 Overall coverage:

Coverage-90.23%

Copy link

📌 Overall coverage:

No success to gather report. 😿

@liudmylaru liudmylaru merged commit 71d396f into main Jun 25, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants