##// END OF EJS Templates
Merge pull request #12647 from Carreau/darker-no-travis...
Matthias Bussonnier -
r26134:5da9f44f merge
parent child Browse files
Show More
@@ -43,7 +43,7 b' install:'
43 - pip install trio curio --upgrade --upgrade-strategy eager
43 - pip install trio curio --upgrade --upgrade-strategy eager
44 - pip install 'pytest<6' 'matplotlib !=3.2.0' mypy
44 - pip install 'pytest<6' 'matplotlib !=3.2.0' mypy
45 - pip install codecov check-manifest --upgrade
45 - pip install codecov check-manifest --upgrade
46 - pip install mypy darker
46 - pip install mypy
47 - |
47 - |
48 if [[ "$MASTER_DEPENDENCIES" == "True" ]]; then
48 if [[ "$MASTER_DEPENDENCIES" == "True" ]]; then
49 pip install git+https://github.com/ipython/traitlets#egg=traitlets --force
49 pip install git+https://github.com/ipython/traitlets#egg=traitlets --force
@@ -57,20 +57,6 b' script:'
57 # on nightly fake parso known the grammar
57 # on nightly fake parso known the grammar
58 cp /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/parso/python/grammar38.txt /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/parso/python/grammar39.txt
58 cp /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/parso/python/grammar38.txt /home/travis/virtualenv/python3.9-dev/lib/python3.9/site-packages/parso/python/grammar39.txt
59 fi
59 fi
60 - |
61 # check style on changes
62 # run `darker -r master` and commit changes to fix
63 if [[ "${TRAVIS_PULL_REQUEST:-false}" != "false" ]] \
64 && [[ "$TRAVIS_PYTHON_VERSION" == "3.8" ]] \
65 && [[ "$TRAVIS_OS_NAME" == "linux" ]];
66 then
67 darker -r ${TRAVIS_COMMIT_RANGE%%.*} --check --diff . || (
68 echo "Changes need auto-formatting. Run:"
69 echo " darker -r ${TRAVIS_COMMIT_RANGE%%.*}"
70 echo "then commit and push changes to fix."
71 exit 1
72 )
73 fi
74 - cd /tmp && iptest --coverage xml && cd -
60 - cd /tmp && iptest --coverage xml && cd -
75 - pytest IPython
61 - pytest IPython
76 - mypy IPython/terminal/ptutils.py
62 - mypy IPython/terminal/ptutils.py
General Comments 0
You need to be logged in to leave comments. Login now