diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5f84a1ae94857..bf0cd41e1d366 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,8 +12,14 @@ jobs: - bash: conda create --name flake8_env --yes flake8 displayName: Install flake8 - bash: | - source activate flake8_env - ./build_tools/circle/linting.sh + if [[ $BUILD_SOURCEVERSIONMESSAGE =~ \[lint\ skip\] ]]; then + # skip linting + echo "Skipping linting" + exit 0 + else + source activate flake8_env + ./build_tools/circle/linting.sh + fi displayName: Run linting diff --git a/doc/developers/contributing.rst b/doc/developers/contributing.rst index 8d12187ade00b..6cca31e81813b 100644 --- a/doc/developers/contributing.rst +++ b/doc/developers/contributing.rst @@ -437,6 +437,7 @@ message, the following actions are taken. ---------------------- ------------------- [scipy-dev] Add a Travis build with our dependencies (numpy, scipy, etc ...) development builds [ci skip] CI is skipped completely + [lint skip] Azure pipeline skips linting [doc skip] Docs are not built [doc quick] Docs built, but excludes example gallery plots [doc build] Docs built including example gallery plots