Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Switch to pytest-pep8.#8001
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
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -43,7 +43,8 @@ env: | ||
- OPENBLAS_NUM_THREADS=1 | ||
- PANDAS= | ||
- NPROC=2 | ||
- INSTALL_PEP8= | ||
- RUN_PEP8= | ||
- NOSE_ARGS="-j $NPROC" | ||
- PYTEST_ARGS="-ra --maxfail=1 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC" | ||
- PYTHON_ARGS= | ||
@@ -61,9 +62,9 @@ matrix: | ||
- python: 3.5 | ||
env: BUILD_DOCS=true | ||
- python: 3.5 | ||
env: USE_PYTEST=true PANDAS=pandas DELETE_FONT_CACHE=1 | ||
- python: 3.6 | ||
env: USE_PYTEST=true DELETE_FONT_CACHE=1INSTALL_PEP8=pytest-pep8 RUN_PEP8=--pep8 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Can you run pep8 without installing it? The two options seem redundant. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I think the one option handles optionally installing it on builds that use it, the other handles adding the argument to running pytest. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. It be easier to have a boolean flag IMO There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Then you have to have bash code that checks the boolean and manually install. I like this style better because the environment variables are always defined--less branching. It actually simplifies | ||
- python: "nightly" | ||
env: PRE=--pre | ||
- os: osx | ||
@@ -113,14 +114,14 @@ install: | ||
pip install --upgrade setuptools | ||
- | | ||
# Install dependencies from pypi | ||
pip install $PRE python-dateutil $NUMPY pyparsing!=2.1.6 $PANDAS cycler coveralls coverage $MOCK | ||
pip install $PRE -r doc-requirements.txt | ||
# Install nose from a build which has partial | ||
# support for python36 and suport for coverage output suppressing | ||
pip install git+https://github.com/jenshnielsen/nose.git@matplotlibnose | ||
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124 | ||
pip install $PRE pytest 'pytest-cov>=2.3.1' pytest-timeout pytest-xdist pytest-faulthandler $INSTALL_PEP8 | ||
# We manually install humor sans using the package from Ubuntu 14.10. Unfortunatly humor sans is not | ||
# availible in the Ubuntu version used by Travis but we can manually install the deb from a later | ||
@@ -154,13 +155,12 @@ script: | ||
if [[ $DELETE_FONT_CACHE == 1 ]]; then | ||
rm -rf ~/.cache/matplotlib | ||
fi | ||
if [[ $USE_PYTEST == false ]]; then | ||
echo The following args are passed to nose $NOSE_ARGS $RUN_PEP8 | ||
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then | ||
python tests.py $NOSE_ARGS $RUN_PEP8 | ||
else | ||
gdb -return-child-result -batch -ex r -ex bt --args python $PYTHON_ARGS tests.py $NOSE_ARGS $RUN_PEP8 | ||
fi | ||
else | ||
# Workaround for pytest-xdist flaky colletion order | ||
@@ -169,8 +169,8 @@ script: | ||
export PYTHONHASHSEED=$(shuf -i 1-4294967295 -n 1) | ||
echo PYTHONHASHSEED=$PYTHONHASHSEED | ||
echo The following args are passed to pytest $PYTEST_ARGS $RUN_PEP8 | ||
py.test $PYTEST_ARGS $RUN_PEP8 | ||
fi | ||
else | ||
cd doc | ||
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.