This repository was archived by the owner on Oct 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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. |
flamingbear
pushed a commit
to flamingbear/rewritten-datatree
that referenced
this pull request
Jan 19, 2024
* 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 <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@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)