Skip to content

misc code fixes#50

Merged
hmenager merged 10 commits intomainfrom
ruff-fixes
Mar 2, 2026
Merged

misc code fixes#50
hmenager merged 10 commits intomainfrom
ruff-fixes

Conversation

@hmenager
Copy link
Copy Markdown
Contributor

in preparation to merge #40
includes:

  • ruff configuration
  • fixes for issues detected by ruff

ruff.toml Outdated
"*.ipynb" = [
"E501", # Allow longer lines in notebooks
"E402", # Allow imports not at top
"F401", # Allow unused imports
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is that really needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good question, I did this because in notebooks I tend to care a lot less about long lines, they are more draft work. But one could argue if they're worth a commit, maybe it would be nice for them to be clean.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I just removed all relax statements except for the one about imports at top. I'll revisit this with @albangaignard because it's failing on scripts/FAIRassessment/FAIRassessment-expe.ipynb

Copy link
Copy Markdown
Contributor

@bgruening bgruening left a comment

Choose a reason for hiding this comment

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

Cool!

@arash77
Copy link
Copy Markdown
Collaborator

arash77 commented Mar 2, 2026

Should we also apply ruff format too?

@hmenager
Copy link
Copy Markdown
Contributor Author

hmenager commented Mar 2, 2026

done @arash77 !

@hmenager
Copy link
Copy Markdown
Contributor Author

hmenager commented Mar 2, 2026

Thanks @bgruening @arash77

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