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

Setup initial ruff #496

Merged
merged 11 commits into from
Aug 31, 2024
Merged

Setup initial ruff #496

merged 11 commits into from
Aug 31, 2024

Conversation

CodyCBakerPhD
Copy link
Contributor

Motivation

This is also a general way, without relying on testing suite, to catch any potential issues like those in #494

Plan over next month was also to improve automatic linting and isorting in this manner, but easiest sometimes to add one selection at a time

@CodyCBakerPhD CodyCBakerPhD self-assigned this Aug 31, 2024
@@ -29,6 +29,7 @@
"Importance",
"Severity",
"InspectorMessage",
"validate_config",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This caught one more

@@ -1,9 +1,6 @@
"""Primary decorator used on a check function to add it to the registry and automatically parse its output."""

from collections.abc import Iterable
Copy link
Contributor Author

Choose a reason for hiding this comment

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

And cleaned up many others (unused imports)

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.06%. Comparing base (383e880) to head (b85871f).
Report is 1 commits behind head on dev.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #496      +/-   ##
==========================================
+ Coverage   81.99%   82.06%   +0.07%     
==========================================
  Files          47       47              
  Lines        1366     1355      -11     
==========================================
- Hits         1120     1112       -8     
+ Misses        246      243       -3     
Flag Coverage Δ
unittests 82.06% <100.00%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/nwbinspector/_configuration.py 96.22% <100.00%> (-0.14%) ⬇️
src/nwbinspector/_registration.py 98.24% <ø> (-0.09%) ⬇️
src/nwbinspector/_types.py 95.83% <ø> (-0.84%) ⬇️

... and 1 file with indirect coverage changes

@CodyCBakerPhD CodyCBakerPhD enabled auto-merge (squash) August 31, 2024 02:10
@CodyCBakerPhD CodyCBakerPhD merged commit 910ceba into dev Aug 31, 2024
35 of 36 checks passed
@CodyCBakerPhD CodyCBakerPhD deleted the setup_initial_ruff branch August 31, 2024 13:44
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