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

Switch linting/formatting to ruff #738

Merged
merged 13 commits into from
Jun 7, 2024
Merged

Switch linting/formatting to ruff #738

merged 13 commits into from
Jun 7, 2024

Conversation

ndevenish
Copy link
Collaborator

Away from flake8/black. This is much faster, allows us to drop setup.cfg, gives us many more options for linting, and enables pre-commit to autofix many of the standard issues (only safe fixes are applied by default, however).

Our version of black in pre-commit was quite old, so a good chunk of these changes were from upgrading and running black first.

Copy link

codecov bot commented Jun 7, 2024

Codecov Report

Attention: Patch coverage is 22.72727% with 34 lines in your changes missing coverage. Please review.

Project coverage is 41.76%. Comparing base (09de2a8) to head (a261b39).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #738   +/-   ##
=======================================
  Coverage   41.76%   41.76%           
=======================================
  Files         188      188           
  Lines       16877    16877           
  Branches     3233     3233           
=======================================
  Hits         7048     7048           
- Misses       9174     9179    +5     
+ Partials      655      650    -5     

@ndevenish ndevenish merged commit dbcc7a4 into cctbx:main Jun 7, 2024
12 of 13 checks passed
@ndevenish ndevenish deleted the ruff branch June 7, 2024 09:59
toastisme pushed a commit to toastisme/dxtbx that referenced this pull request Jul 18, 2024
* Move isort,black,flake8 to ruff
* Update formatting to latest black style before switch
* Lint fixes, both manually and automatic (including unsafe fixes, manually checked)
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.

2 participants