Skip to content

Use Ruff instead of other lint/formatting tools#59

Open
mwtoews wants to merge 1 commit intocsdms:masterfrom
mwtoews:use-ruff
Open

Use Ruff instead of other lint/formatting tools#59
mwtoews wants to merge 1 commit intocsdms:masterfrom
mwtoews:use-ruff

Conversation

@mwtoews
Copy link
Copy Markdown
Contributor

@mwtoews mwtoews commented Dec 2, 2024

This PR uses Ruff to replace several lint and formatting tools. Ruff is modern and very fast.

  • Replace Black with the Ruff Formatter, which incurs a minor change to whitespace.
  • Replace flake8 with several Ruff rules.
  • Replace pyupgrade with UP rule.
  • Replace reorder-python-imports with Ruff I (isort) and FA (flake8-future-annotations) rules. This change modified some of the code, combining imports from a single module into one line.
  • Replace pydocstyle with D rule.

Other changes:

  • Remove nb-ensure-clean pre-commit, since there are no *.ipynb files in this repo

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 78.319% (-0.2%) from 78.509%
when pulling 5939971 on mwtoews:use-ruff
into b0ef8b6 on csdms:master.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.25%. Comparing base (633e72c) to head (debdf22).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #59   +/-   ##
=======================================
  Coverage   96.25%   96.25%           
=======================================
  Files           8        8           
  Lines         267      267           
  Branches       11       11           
=======================================
  Hits          257      257           
  Misses          8        8           
  Partials        2        2           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mwtoews
Copy link
Copy Markdown
Contributor Author

mwtoews commented Mar 29, 2026

Re-synced to latest master branch changes.

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.

3 participants