-
Notifications
You must be signed in to change notification settings - Fork 44
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
Linting #21
Linting #21
Conversation
@TomNicholas - try merging #22 into your |
@jhamman that works nicely, thanks! |
Nice! The remaining failure seems to be related to mypy. We could turn that off for now, or you can make those fixes here. |
Yes - I'm currently trying to fix the mypy failures, but I don't understand a lot of them. What I think we could do is turn off mypy for now in the CI and open a separate PR to discuss changes needed to make mypy pass locally. |
Great. Just comment out the my-py section in the pre-commit-config and you should be good to go. |
* black reformatting * add setup.cfg to configure flake8/black/isort/mypy * add setup.cfg to configure flake8/black/isort/mypy xarray-contrib/datatree#22 * passes flake8 * disabled mypy for now Co-authored-by: Joseph Hamman <jhamman@ucar.edu>
@jhamman I think there's a small problem with the pre-commit tools interacting with one another - my cmd line output is given below but no files are changed for me to commit. I've already run
pre-commit run --all-files
a few times to get to this point (those changes are what is committed in this PR), but now this happens every time. I think this means that black and isort are undoing each others changes todatatree/datatree.py
? If I delete isort from thepre-commit-config.yaml
then black passes.(there are more flake8 and mypy suggestions/warnings later but I'll try and deal with them afterwards)