- Notifications
You must be signed in to change notification settings - Fork269
RF: Cleanup Makefile to bring parity with CI, remove tox + nose references#1105
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…test target to re-use same script used in CI to orchestrate testing. Remove refererences to tox and nose
pep8speaks commentedMay 7, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hello@jacobdr, Thank you for updating! Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally, Comment last updated at 2022-05-07 19:05:52 UTC |
codecovbot commentedMay 7, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## master #1105 +/- ##======================================= Coverage 92.29% 92.29% ======================================= Files 100 100 Lines 12247 12247 Branches 2393 2393 ======================================= Hits 11303 11303 Misses 621 621 Partials 323 323 Continue to review full report at Codecov.
|
…ure flake8 (closer aligns to pep8speaks bot behavior)
| $(PYTHON) -c'from nisext.testers import bdist_egg_tests; bdist_egg_tests("nibabel", doctests=False, label="not script_test")' | ||
| sdist-venv: clean | ||
| rm -rf dist venv |
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.
I wasn't sure if this target is still being used anywhere -- so I kind of hacked it to install the dev dependencies to get it to pass on my local
| -r requirements.txt | ||
| sphinx<3 | ||
| numpydoc | ||
| jinja2<3 |
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.
I needed to pin these to get version compatibility to work. In the future might be better to use a tool like poetry so that we can generate a lockfile and not have to deal with this sort of not-fun dependency pinning
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.
I needed this to get my local to pass but it seems like CI might not like it.... I'll try reverting to see if if this is what is breaking the pre-release CI jobs
| *sphinx* | ||
| nibabel/externals/* | ||
| */__init__.py | ||
| # temporary -- should be removed in another PR |
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.
Need a follow-up PR to clean up the remaining issues. I added these as ignores so that local flake8 passes. These were being covered up by the configuration of pep8speaksonly looking at the diff
| sourcevirtenv/bin/activate | ||
| elif [-evirtenv/Scripts/activate ];then | ||
| sourcevirtenv/Scripts/activate | ||
| if [-evenv/bin/activate ];then |
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 change was made so that we are consistent in local dev and remote dev with the virtualenv
| test:test-styleunittest testmanual | ||
| ut-%: build |
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.
I removed this as I did not see it being used anywhere. I can revert this if a maintainer feels it should be brought back
@effigies all the pre-release tests failed for the same reason -- a string representation in a doctest for |
jacobdr commentedMay 8, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Trying to narrow differences... since As evidence, though, comparing against a prior (chose#1096 as the most recent unmerged green build I saw....) Python version comparison
Final note: the only pre-release job that passes is the one that does not have the PRE_PIP_FLAGS environment variable set.... |
| .PHONY: test-style | ||
| test-style: | ||
| export CHECK_TYPE=style; ./tools/ci/check.sh |
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.
I would rather putmake style incheck.sh than callcheck.sh from here. And likewise with other tests.
| .PHONY:test-style | |
| test-style: | |
| export CHECK_TYPE=style; ./tools/ci/check.sh | |
| .PHONY: style | |
| style: | |
| flake8 |
Uh oh!
There was an error while loading.Please reload this page.
Closes#1104