Uh oh!
There was an error while loading. Please reload this page.
Linting - #21
Conversation
jhamman
commented
Aug 25, 2021
@TomNicholas - try merging #22 into your |
TomNicholas
commented
Aug 25, 2021
@jhamman that works nicely, thanks! |
jhamman
commented
Aug 25, 2021
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. |
jhamman
commented
Aug 25, 2021
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-filesa 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.yamlthen black passes.(there are more flake8 and mypy suggestions/warnings later but I'll try and deal with them afterwards)