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

Bump Ruff version and add formatting #98

Merged
merged 7 commits into from
May 7, 2024

Conversation

jbusecke
Copy link
Contributor

@jbusecke jbusecke commented May 6, 2024

I added some config options to pyproject.toml to make the linting more closely resemble black. Happy to change/revert those.

Copy link
Member

@TomNicholas TomNicholas left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks @jbusecke !

Comment on lines 2 to 11
from typing import (
List,
Literal,
Mapping,
Optional,
Union,
overload,
MutableMapping,
Iterable,
)
Copy link
Member

Choose a reason for hiding this comment

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

I think we're still not using isort, otherwise these would be in alphabetical order.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On it!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

2c72571 looks promising. Is this what you would like? There are also options to do this case sensitive?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just if anyone is curious. All I did was add the "I" class as active to the linter: 8c128b5

Copy link
Member

Choose a reason for hiding this comment

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

Cool! Thanks @jbusecke ❤️

@TomNicholas TomNicholas merged commit a3dab6c into zarr-developers:main May 7, 2024
5 checks passed
@jbusecke jbusecke deleted the patch-2 branch May 9, 2024 17:50
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.

Add isort / black to pre-commit?
2 participants