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

STY: Apply ruff/pyupgrade rules #3647

Merged
merged 5 commits into from
May 5, 2024
Merged

Conversation

DimitriPapadopoulos
Copy link
Contributor

Summary

Apply UP rules except UP031 (598 errors) and UP032 (86 errors)

List of changes proposed in this PR (pull-request)

  • Apply ruff/pyupgrade rule UP018
    UP018 Unnecessary float call (rewrite as a literal)
  • Apply ruff/pyupgrade rule UP024
    UP024 Replace aliased errors with OSError
  • Apply ruff/pyupgrade rule UP030
    UP030 Use implicit references for positional format fields
  • Apply ruff/pyupgrade rule UP036
    UP036 Version block is outdated for minimum Python version

Copy link

codecov bot commented May 5, 2024

Codecov Report

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

Project coverage is 70.90%. Comparing base (a17de8e) to head (dea4116).

Files Patch % Lines
nipype/interfaces/io.py 0.00% 1 Missing ⚠️
nipype/pipeline/engine/workflows.py 0.00% 1 Missing ⚠️
nipype/pipeline/plugins/sge.py 0.00% 1 Missing ⚠️
nipype/pipeline/plugins/sgegraph.py 0.00% 1 Missing ⚠️
nipype/pipeline/plugins/slurmgraph.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3647   +/-   ##
=======================================
  Coverage   70.90%   70.90%           
=======================================
  Files        1277     1277           
  Lines       59477    59477           
  Branches     9819     9819           
=======================================
  Hits        42172    42172           
  Misses      16134    16134           
  Partials     1171     1171           

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

	UP018 Unnecessary `float` call (rewrite as a literal)
	UP024 Replace aliased errors with `OSError`
	UP030 Use implicit references for positional format fields
	UP036 Version block is outdated for minimum Python version
@effigies effigies merged commit d52a62d into nipy:master May 5, 2024
20 checks passed
@DimitriPapadopoulos DimitriPapadopoulos deleted the UP branch May 5, 2024 16:55
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