From 506a08bc38ca059950ed311d337ec74ab89bfd91 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Tue, 27 Aug 2019 13:55:20 +0530 Subject: [PATCH] Rename `tox lint-py3` to `tox lint` Also update references to it, in Travis CI config and in documentation. --- .travis.yml | 2 +- docs/html/development/getting-started.rst | 4 ++-- tools/travis/run.sh | 4 ++-- tox.ini | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index c0aac7a4903..48c99a2208c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,9 +16,9 @@ jobs: # Basic Checks - stage: primary env: TOXENV=docs + - env: TOXENV=lint - env: TOXENV=lint-py2 python: 2.7 - - env: TOXENV=lint-py3 - env: TOXENV=mypy - env: TOXENV=packaging # Latest CPython diff --git a/docs/html/development/getting-started.rst b/docs/html/development/getting-started.rst index 3cf23e8be1d..3fbd11de4d7 100644 --- a/docs/html/development/getting-started.rst +++ b/docs/html/development/getting-started.rst @@ -75,10 +75,10 @@ To use linters locally, run: .. code-block:: console + $ tox -e lint $ tox -e lint-py2 - $ tox -e lint-py3 -The above commands run the linters on Python 2 followed by Python 3. +The above commands run the linters on Python 3 followed by Python 2. .. note:: diff --git a/tools/travis/run.sh b/tools/travis/run.sh index 2e418d699e7..a7b15d0822a 100755 --- a/tools/travis/run.sh +++ b/tools/travis/run.sh @@ -2,8 +2,8 @@ set -e # Short circuit tests and linting jobs if there are no code changes involved. -if [[ $TOXENV != docs ]] && [[ $TOXENV != lint-py2 ]] && [[ $TOXENV != lint-py3 ]]; then - # Keep lint-py2 & lint-py3 for docs/conf.py +if [[ $TOXENV != docs ]] && [[ $TOXENV != lint-py2 ]] && [[ $TOXENV != lint ]]; then + # Keep lint and lint-py2, for docs/conf.py if [[ "$TRAVIS_PULL_REQUEST" == "false" ]] then echo "This is not a PR -- will do a complete build." diff --git a/tox.ini b/tox.ini index 608d491e3fe..0abf0b061bc 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] minversion = 3.4.0 envlist = - docs, packaging, lint-py2, lint-py3, mypy, + docs, packaging, mypy, lint, lint-py2, py27, py35, py36, py37, py38, pypy, pypy3 [helpers] @@ -63,7 +63,7 @@ commands = flake8 src tests isort --check-only --diff -[testenv:lint-py3] +[testenv:lint] skip_install = True basepython = python3 deps = {[lint]deps}