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

Update code style, replace isort and black with ruff, modern numpy rng #319

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

mwtoews
Copy link
Member

@mwtoews mwtoews commented Jul 9, 2024

Update the Python code style (again!) using ruff lint tools, which replace isort and black. Also select pyupgrade and numpy-specific checks. The Python code changes are mostly style, and should not have any functional changes.

The updated pre-commit hooks are also integrated with pre-commit.ci

@hobu hobu merged commit bb9925a into Toblerity:master Jul 9, 2024
23 checks passed
@mwtoews mwtoews deleted the update-code-style branch July 9, 2024 17:58
@adamjstewart
Copy link
Collaborator

Big fan of ruff, I'm using it in TorchGeo too! Our settings for reference: https://github.com/microsoft/torchgeo/blob/main/pyproject.toml#L262

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