Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
jacobdr wants to merge2 commits intonipy:master
base:master
Choose a base branch
Loading
fromjacobdr:1104-remove-nosetest-references

Conversation

@jacobdr
Copy link
Contributor

@jacobdrjacobdr commentedMay 7, 2022
edited
Loading

Closes#1104

  • Align on venv as virtual environment convention
  • Update makefile test target to re-use same script used in CI to orchestrate testing
  • Remove refererences to tox and nose
  • Fix dev-requirements.txt and doc-requirements.txt to pin to versions that are non-breaking

…test target to re-use same script used in CI to orchestrate testing. Remove refererences to tox and nose
@pep8speaks
Copy link

pep8speaks commentedMay 7, 2022
edited
Loading

Hello@jacobdr, Thank you for updating!

Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally,pip install flake8 and then runflake8 nibabel.

Comment last updated at 2022-05-07 19:05:52 UTC

@codecov
Copy link

codecovbot commentedMay 7, 2022
edited
Loading

Codecov Report

Merging#1105 (ad2cc68) intomaster (7cfaebf) willnot change coverage.
The diff coverage isn/a.

@@           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.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update7cfaebf...ad2cc68. Read thecomment docs.

…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
Copy link
ContributorAuthor

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
Copy link
ContributorAuthor

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

Copy link
ContributorAuthor

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
Copy link
ContributorAuthor

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
Copy link
ContributorAuthor

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
Copy link
ContributorAuthor

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

@jacobdr
Copy link
ContributorAuthor

@effigies all the pre-release tests failed for the same reason -- a string representation in a doctest fornetcdf_file. I don't immediately see how my changes would have introduced this. Looking at this now, but any thoughts as to root cause?

@jacobdr
Copy link
ContributorAuthor

jacobdr commentedMay 8, 2022
edited
Loading

Trying to narrow differences... sincemmap is coming from the standard lib I suspected a change in Python versions and howrepr(mmap_obj) orstr(mmap_obj) is displayed... Its possible, though still smells to me so needs a sanity check.

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....

Comment on lines +95 to +97
.PHONY: test-style
test-style:
export CHECK_TYPE=style; ./tools/ci/check.sh
Copy link
Member

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.

Suggested change
.PHONY:test-style
test-style:
export CHECK_TYPE=style; ./tools/ci/check.sh
.PHONY: style
style:
flake8

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@effigieseffigieseffigies left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Update Makefile to remove reference to nosetests

3 participants

@jacobdr@pep8speaks@effigies

[8]ページ先頭

©2009-2025 Movatter.jp