-
Notifications
You must be signed in to change notification settings - Fork 24
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
Issue with pre-commit or mypy #21
Comments
Thanks @NoraLoose for getting started on this!
I don't want to get stuck on this, so please just disable the mypy check for now by commenting out these lines gcm-filters/.pre-commit-config.yaml Lines 42 to 47 in 73baa9e
@jbusecke - just like in #20, pre-commit is complaining about errors in a file that the user has not touched. I don't understand how this can be possible. We need to figure this out or else just disable pre-commit, as it is making it harder for others to contribute (rather than easier, which was the intent). |
Thanks @rabernat for the quick response! I followed your recommendation, and disabled the mypy check. |
Since we are at it, I encountered a different issue with pre-commit on casper:
I checked the log file, but I'm still not sure what the issue is. I moved to my local machine and then pre-commit worked (except for the issues above). |
hmmm 🧐 ... This latter issue might be a network problem. Does the casper node where you are running have access to the internet? Pre-commit needs to access the internet to install itself the first time it is run. You could try doing all your git commits and pre-commit from a head node to work around this problem. |
Yeah this is not great. Let me disable mypy for now, I do not view it as essential and useful as e.g. black (which causes less issues in my experience). Does that sound good? |
It is commented out already in #22. Let's not do anything right now that would lead to a merge conflict. |
I am ready to submit a pull request, but I am having issues with pre-commit, specifically mypy.
This points me to 2 lines in filter.py, even though I did not touch that file.
gcm-filters/gcm_filters/filter.py
Lines 53 to 57 in 73baa9e
I continued and ignored the filter.py file, since I only want to commit changes in kernel.py:
Again, the error points me to lines that I haven't touched:
gcm-filters/gcm_filters/kernels.py
Lines 13 to 16 in 73baa9e
All my changes to be commited are further down in that file, in
CartesianLaplacianWithLandMask(BaseLaplacian)
.Any ideas how to fix these issues?
The text was updated successfully, but these errors were encountered: