##// END OF EJS Templates
Merge pull request #12545 from minrk/darker-feedback...
Matthias Bussonnier -
r26003:cccaab9a merge
parent child
Show More
Add another comment
@@ -57,14 +57,24 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
60 - cd /tmp && iptest --coverage xml && cd -
74 - cd /tmp && iptest --coverage xml && cd -
61 - pytest IPython
75 - pytest IPython
62 - mypy IPython/terminal/ptutils.py
76 - mypy IPython/terminal/ptutils.py
63 - mypy IPython/core/c*.py
77 - mypy IPython/core/c*.py
64 - |
65 if [[ "$TRAVIS_PYTHON_VERSION" == "3.8" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
66 darker -r 60625f241f298b5039cb2debc365db38aa7bb522 --check --diff .
67 fi
68 # On the latest Python (on Linux) only, make sure that the docs build.
78 # On the latest Python (on Linux) only, make sure that the docs build.
69 - |
79 - |
70 if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
80 if [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
General Comments 0
You need to be logged in to leave comments. Login now