-
Notifications
You must be signed in to change notification settings - Fork 41
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
pre-commit check compliant for github action #793
Conversation
This PR is a mass diff as @tomvothecoder predicted in his comment, but mostly for reformatting codes to follow style rules (flake8, black, isort, etc). Many thanks to @tomvothecoder for his comments which helped me learn a lot about setting up the github action workflow. There was a steep learning curve but I think I am getting better with it.
|
Awesome job picking up the QA tools quickly Jiwoo! It's definitely not an easy task.
Those files look good to me.
Yes, the results should be identical since it is simply code and import formatting. It would still be good to validate though. Note, one potential issue with using
That flake8 error On a side note, I noticed the GH Actions build job fails on the "Run Tests" step because there are no tests available to run.
https://github.com/PCMDI/pcmdi_metrics/runs/4100746374?check_suite_focus=true#step:5:120 I'm currently exploring a few possible workarounds for this. |
- Add `pre_commit` to `dev.yml` - Update `mypy` `python_version=3.9` in `setup.cfg` - Remove `mypy` from `.pre-commit-config.yaml` - Workaround flake8 errors related to F821 undefined name
I ran all the notebooks. The two issues I ran into are
I also did a cmec-driver run using the mean climate driver, which was successful. |
@acordonez Let's see what JL says about the vcs conflict. We know we need to move away from this but I'm not sure if he is ready for doing that with MJO, monsoon sperber, and variability. Are we missing some data for the ENSO demo? I thought we were successful in switching to the new style. |
@acordonez Thanks for checking this. While I am refactoring vcs plots (#786), I think it is okay to check output json files to see if there is any noticeable difference. Sorry, I should have clarified this in advance. By the way could you tell me little bit more what do you mean by no old style ENSO data? |
…-commit-hook-compliant Broken demo fix
I think this PR is ready for another round of review. I've fixed broken demo issues in this PR as well, which was triggered by multiple reasons such as (1) some demo input data was lost in web server so recovered, (2) old data (PCMDIobs2) was referred in mean climate and others than the new data (obs4MIPs). @acordonez would you be able to help running demos on your end when you back? I hope you can run it from scratch, starting from removing previously downloaded demo input data and re-downloading them. They were working okay on my end, but because it is a big PR with many changes, I wanted to double check. Thanks! |
…re-commit-hook-compliant New feature in parallel coordinate plot: split violin plot for two groups
I have double-checked all demos results are consistent to that in the current master. With that, I am merging this PR. Edited to add: Just in case, I made branch |
In adaption of pre-commit-hook in the workflow of pmp, codes need to be compliant to the given rules, as discussed in #788 and #788 (comment)