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

Apply ruff formatter and ditch black #554

Merged
merged 3 commits into from
Feb 18, 2024
Merged

Apply ruff formatter and ditch black #554

merged 3 commits into from
Feb 18, 2024

Conversation

amrit110
Copy link
Member

@amrit110 amrit110 commented Feb 18, 2024

PR Type ([Feature | Fix | Documentation | Test])

Code formatting/style

Short Description

  • This PR removes black code formatter from the pre-commit config file, and uses ruff-format. Ruff is nearly compatible with black, and can be the single tool of use for formatting and linting
  • Also removes black as dependency from pyproject.toml test dependencies
  • The new formatter also formats docstring code examples

Tests Added

...

@amrit110 amrit110 added the code style Fixes to adhere to repo's coding style label Feb 18, 2024
@amrit110 amrit110 requested a review from hoxell February 18, 2024 16:10
cyclops/report/report.py Show resolved Hide resolved
cyclops/tasks/utils.py Show resolved Hide resolved
Signed-off-by: Amrit Krishnan <amrit110@gmail.com>
@amrit110 amrit110 merged commit 2c70772 into main Feb 18, 2024
5 checks passed
@amrit110 amrit110 deleted the use_ruff_formatter branch February 18, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code style Fixes to adhere to repo's coding style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants