Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
pipeline: enable pylint-import-requirements plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
fphammerle committed May 7, 2020
1 parent 44fdd37 commit fb0b0a9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,20 @@ matrix:
install:
- pip install pipenv
- pipenv sync --dev
# ModuleNotFoundError: No module named 'importlib_metadata'
# https://github.com/WanzenBug/pylint-import-requirements/issues/17
- if python3 -c 'import sys; sys.exit(sys.version_info < (3, 8))'; then
pipenv graph;
pipenv install --dev importlib-metadata;
fi
- if [ ! -z "$PANDAS_VERSION" ]; then
pipenv install --selective-upgrade "pandas==$PANDAS_VERSION";
fi
- pipenv graph

script:
- pipenv run pylint freesurfer_stats tests/*
- pipenv run pylint --load-plugins=pylint_import_requirements freesurfer_stats
- pipenv run pylint tests/*
- pipenv run pytest --cov=freesurfer_stats --cov-report=term-missing --cov-fail-under=100

after_success:
Expand Down
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ isort = "*"
# >=2.3.0 due to false+ assignment-from-no-return
# https://github.com/PyCQA/pylint/issues/2694
pylint = ">=2.3.0,<3"
pylint-import-requirements = "<3"
pytest = "<5"
# >=2 for --cov-fail-under
pytest-cov = "<3,>=2"
Expand Down
10 changes: 9 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fb0b0a9

Please sign in to comment.