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

Start applying ruff rules to notebooks (ruff 0.6+) #2115

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented Aug 24, 2024

Jupyter notebooks are now linted and formatted by default

TODO:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/tutorial.rst
  • Changes documented in docs/release.rst
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as ready for review August 24, 2024 19:19
@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as draft September 2, 2024 14:06
@jhamman
Copy link
Member

jhamman commented Sep 13, 2024

I'm fine merging this in as is @DimitriPapadopoulos. We may also consider removing these notebooks from the repo as many of them are referencing data that we don't have access to.

@jhamman jhamman added this to the After 3.0.0 milestone Sep 13, 2024
@jhamman jhamman added the V3 Affects the v3 branch label Sep 13, 2024
@DimitriPapadopoulos
Copy link
Contributor Author

Let's remove the notebooks then.

@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as ready for review September 25, 2024 07:24
@jhamman jhamman changed the base branch from v3 to main October 14, 2024 20:54
F811 Redefinition of unused
W293 Blank line contains whitespace
I001 Import block is un-sorted or un-formatted
UP031 Use format specifiers instead of percent format
UP032 Use f-string instead of `format` call
UP033 Use `@functools.cache` instead of `@functools.lru_cache(maxsize=None)`
RUF010 Use explicit conversion flag
E402 Module level import not at top of cell
Many of them are referencing data that we don't have access to.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V3 Affects the v3 branch
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants