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

Apply preview ruff rules #1942

Merged
merged 2 commits into from
Jun 2, 2024
Merged

Conversation

DimitriPapadopoulos
Copy link
Contributor

@DimitriPapadopoulos DimitriPapadopoulos commented Jun 2, 2024

Fix issues reported by ruff check --preview.

I have no experience using asyncio, so I am not confident in the RUF029 fixes.

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)

RUF022 `__all__` is not sorted
@DimitriPapadopoulos DimitriPapadopoulos force-pushed the preview branch 2 times, most recently from cc19b78 to c573bff Compare June 2, 2024 09:31
RUF029 Function is declared `async`, but doesn't `await` or use `async` features.
@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as ready for review June 2, 2024 14:23
Copy link
Member

@jhamman jhamman left a comment

Choose a reason for hiding this comment

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

These all look good to me. Thanks!

@jhamman jhamman merged commit bd20e46 into zarr-developers:v3 Jun 2, 2024
18 checks passed
@DimitriPapadopoulos DimitriPapadopoulos deleted the preview branch June 2, 2024 21:40
d-v-b pushed a commit to d-v-b/zarr-python that referenced this pull request Jun 4, 2024
* Apply  ruff rule RUF022

RUF022 `__all__` is not sorted

* Apply ruff rule RUF029

RUF029 Function is declared `async`, but doesn't `await` or use `async` features.
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