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

add precommit #84

Merged
merged 8 commits into from
Feb 16, 2024
Merged

add precommit #84

merged 8 commits into from
Feb 16, 2024

Conversation

callumrollo
Copy link
Contributor

This draft PR adds some basic pre-commit hooks. This pre-commit will, among other things, satisfy the pyopensci requirement for automated linting

The linting is picking up quite a few PEP8 and spelling errors atm. These will need to be fixed. This also should be added to CI.

@rcaneill are you working on something similar already, or should I complete this PR?

@rcaneill
Copy link
Owner

HI @callumrollo ,
I am not working on the linting for xnemogcm, so I'm happy to get your contributions!

@callumrollo callumrollo marked this pull request as ready for review February 15, 2024 14:55
@callumrollo
Copy link
Contributor Author

ok I think this is ready @rcaneill . Bit of a monster! Mostly spelling corrections and clearing out unused imports

Copy link
Owner

Choose a reason for hiding this comment

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

It seems incorrect here to replace nam by name as name is already used in the for loop (line 27).

xnemogcm/namelist.py Outdated Show resolved Hide resolved
Copy link
Owner

@rcaneill rcaneill left a comment

Choose a reason for hiding this comment

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

Thanks for the great work! See my comment in file namelist.py

@rcaneill rcaneill merged commit bc91e9e into rcaneill:main Feb 16, 2024
12 checks passed
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