Skip to content

MNT: blue/isort/flake8 → ruff - #1289

Merged
effigies merged 32 commits into
nipy:masterfrom
DimitriPapadopoulos:blue_ruff
Apr 14, 2024
Merged

effigies merged 32 commits into
nipy:masterfrom
DimitriPapadopoulos:blue_ruff

Conversation

@DimitriPapadopoulos

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Dec 26, 2023 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 83.33333% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 92.25%. Comparing base (c445edd) to head (066431d).

Files Patch % Lines
nibabel/cmdline/diff.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1289      +/-   ##
==========================================
- Coverage   92.26%   92.25%   -0.02%     
==========================================
  Files          99       99              
  Lines       12472    12453      -19     
  Branches     2566     2555      -11     
==========================================
- Hits        11507    11488      -19     
  Misses        642      642              
  Partials      323      323              

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

@effigies effigies left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need to update the tox environments:

nibabel/tox.ini

Lines 138 to 161 in 1436a6e

[testenv:style]
description = Check our style guide
labels = check
deps =
flake8
blue
# Broken extras, remove when fix is released
isort[colors]!=5.13.1
skip_install = true
commands =
blue --check --diff --color nibabel
isort --check --diff --color nibabel
flake8 nibabel
[testenv:style-fix]
description = Auto-apply style guide to the extent possible
labels = pre-release
deps =
blue
isort
skip_install = true
commands =
blue nibabel
isort nibabel

Comment thread pyproject.toml Resolved
@DimitriPapadopoulos
DimitriPapadopoulos force-pushed the blue_ruff branch 4 times, most recently from d5ddc8f to 136ff23 Compare December 26, 2023 13:22
@DimitriPapadopoulos

DimitriPapadopoulos commented Dec 26, 2023 •

Copy link
Copy Markdown
Contributor Author

Also need to update the tox environments:

Done.

@effigies It's now ready for reviewing.

@DimitriPapadopoulos
DimitriPapadopoulos force-pushed the blue_ruff branch 15 times, most recently from e251260 to 98f3db5 Compare December 26, 2023 23:09
@DimitriPapadopoulos
DimitriPapadopoulos marked this pull request as draft December 26, 2023 23:10
@DimitriPapadopoulos
DimitriPapadopoulos marked this pull request as ready for review December 31, 2023 15:25
@DimitriPapadopoulos
DimitriPapadopoulos force-pushed the blue_ruff branch 3 times, most recently from 1b32845 to 96846b0 Compare March 5, 2024 16:17
@DimitriPapadopoulos

Copy link
Copy Markdown
Contributor Author

Bumping ruff from 0.1.9 to 0.3.0 is unexpectedly intrusive - lots of change by ruff format.

DimitriPapadopoulos and others added 8 commits March 29, 2024 14:46
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
@DimitriPapadopoulos

Copy link
Copy Markdown
Contributor Author

I think I have addressed all of them. Note that I rebased to fix a merge conflict.

DimitriPapadopoulos and others added 13 commits March 29, 2024 14:53
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
@DimitriPapadopoulos

Copy link
Copy Markdown
Contributor Author

Or not 😄

The quantity of changes pushes the GitHub web interface to its limits. I have a hard time navigating the comments.

Still one to address, almost there.

@effigies effigies left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks!

@effigies
effigies merged commit a2e5dee into nipy:master Apr 14, 2024
@DimitriPapadopoulos
DimitriPapadopoulos deleted the blue_ruff branch April 15, 2024 07:31
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