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

Use pre-commit for linting and formatting #72

Merged
merged 9 commits into from
Aug 14, 2024
Merged

Conversation

mdpiper
Copy link
Member

@mdpiper mdpiper commented Aug 11, 2024

To help with finding problems in code before a push, this PR adds a set of pre-commit hooks that are called from a nox session, lint. The hooks are (mostly) poached from Landlab.

I also returned to using flake8 after a brief stint using ruff.

This fixes #70.

@mdpiper mdpiper marked this pull request as ready for review August 11, 2024 01:26
@mdpiper mdpiper merged commit d978a30 into main Aug 14, 2024
15 checks passed
@mdpiper mdpiper deleted the mdpiper/use-pre-commit branch August 14, 2024 18:33
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 pre-commit hooks for linting
1 participant