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

Introduce pre-commit and ruff #80

Merged
merged 4 commits into from
Apr 24, 2024
Merged

Introduce pre-commit and ruff #80

merged 4 commits into from
Apr 24, 2024

Conversation

amureki
Copy link
Member

@amureki amureki commented Apr 23, 2024

I noticed quite some obsolete imports and other issues that went unnoticed by black+isort+pydocstyle.
Also, I made several PRs where CI failed with linting issues, which was annoying to get back to and fix by running linters manually.

I decided to replace it all with ruff and also introduce pre-commit to solve these issues.

This also reduced in half the amount of linting jobs running (later we also could get rid of black in favor of ruff formatter)

@amureki amureki added the enhancement New feature or request label Apr 23, 2024
@amureki amureki self-assigned this Apr 23, 2024
Copy link

codecov bot commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.63%. Comparing base (cde7b9e) to head (7aad8ab).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #80   +/-   ##
=======================================
  Coverage   95.62%   95.63%           
=======================================
  Files          17       17           
  Lines         572      573    +1     
=======================================
+ Hits          547      548    +1     
  Misses         25       25           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@amureki amureki requested a review from codingjoe April 23, 2024 13:32
.pre-commit-config.yaml Outdated Show resolved Hide resolved
amureki added 2 commits April 24, 2024 14:32
* origin/main:
  Refs #66 -- handle edited Slack message (#79)
@amureki amureki enabled auto-merge (squash) April 24, 2024 12:34
@amureki amureki merged commit c549967 into main Apr 24, 2024
7 checks passed
@amureki amureki deleted the ruff branch April 24, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants