-
Notifications
You must be signed in to change notification settings - Fork 33
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
Flake fixes pt4 #127
Flake fixes pt4 #127
Conversation
@sbillinge Okay, I think that takes care of all the flake8 errors. My brain went numb towards the end so let me know if there's anything that I can fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now we are getting into things that can break the code, let's set up CI so we can see what tests are breaking on each PR.
So, before we do this flake8 work, let's move over the .github workflows and get CI passing on the PRs. On a separate PR, merge the .github directory from the cookiecutter (sorry I don't remember if you ran the cookiecutter yet). If you didn't run the cookiecutter yet becaus ewe are linting first, just coy the github workflows from diffpy.pdfmorph and edit them appropriately.
Nice work on the exceptions. It is a balance between being more precise (i.e. ValueError or whatever) rather than (Exception) but not changing the behavior.... If it was blank before, then for sure Exception
isn't making it worse, but if we can figure out what error might need to be handled it is better. I see that you did good digging on that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert the copyright statements in this PR (please see the comment in the other PR I closed.
Are these not reverted back on your end? I don't see the copyright edits appearing anymore on this PR. |
yes, they are reverted. Sorry, too much going on. Please can you merge cookie into your branch for this PR so we can see if tests are stlil passing. Also, please can you show me the flake8 errors that caused you to make the |
* pin numpy to 1.x for now * add environment.yml * test tests * trigger * try again with requirements * try again with requirements * now update test reqs * try and handle xwindow display issue * try using xfvb action * refactor xvfb action commands * source activate? * different tack, generate error and work on test? * again * again * chatgpt method * supress running qc of meta.yaml in conda-forge by renaming * try new pyproject.toml * again2 * forgot to install diffpy.pdfgui! * back to setup.py
unfortunately this is not passing the tests (please look in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may have to go more slowly with this.
let's try
- make a new PR from a syned
cookie
with just the copyright statements. This doesn't change any of the behavior so we can check that all the tests pass in ci. Then we can try and add in the code changes one at a time and make sure the tests pass locally. To run the tests locally typepython -m run_tests.py
in the top level directory. - For some reason it is exiting with an error, but the tests run ok because we see only dots in the tests and no E's or F's, so the exit erro (we would like to track this down and fix it but don't spend time on it now because we will change how we run the tests after cookiecuttering so want to make everything work then....for now we just need to know that we haven't done anything to break the code while flake8'ing) we can ignore for now.
- Do the code edits you did before (exceptions etc.) one at a time and rerun tests. This way we can see which edits are breaking the code.
- If the tests are passing, commit.
- Make periodic pushes of working code, which will run CI on GitHub, and make sure that you are getting the same behavior there as you got locally, i.e., no E's or F's
- I can merge anything that has only dots. If you are strugging with one or two last things, lets put them on a separate PR so we can merge the working-code changes.
@@ -54,7 +54,7 @@ test: | |||
# entry points work. | |||
|
|||
|
|||
# You can also put a file called run_test.py in the recipe that will be run | |||
# You can also put a file called dont_run.py in the recipe that will be run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not needed but these hacks will be removed later so don't worry...
@sbillinge heres a screenshot of the flake8 errors. Also, I am working on creating new PRs for the flake8 edits. Pt1, pt2, and pt3 of these PRs are open now. |
No description provided.