8000 MNT Adds skip lint to azure pipeline CI (#15904) · scikit-learn/scikit-learn@88b6322 · GitHub
[go: up one dir, main page]

Skip to content

Commit 88b6322

Browse files
thomasjpfanrth
authored andcommitted
MNT Adds skip lint to azure pipeline CI (#15904)
1 parent 2e90b89 commit 88b6322

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

azure-pipelines.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ jobs:
1212
- bash: conda create --name flake8_env --yes flake8
1313
displayName: Install flake8
1414
- bash: |
15-
source activate flake8_env
16-
./build_tools/circle/linting.sh
15+
if [[ $BUILD_SOURCEVERSIONMESSAGE =~ \[lint\ skip\] ]]; then
16+
# skip linting
17+
echo "Skipping linting"
18+
exit 0
19+
else
20+
source activate flake8_env
21+
./build_tools/circle/linting.sh
22+
fi
1723
displayName: Run linting
1824
1925

doc/developers/contributing.rst

+1
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ message, the following actions are taken.
437437
---------------------- -------------------
438438
[scipy-dev] Add a Travis build with our dependencies (numpy, scipy, etc ...) development builds
439439
[ci skip] CI is skipped completely
440+
[lint skip] Azure pipeline skips linting
440441
[doc skip] Docs are not built
441442
[doc quick] Docs built, but excludes example gallery plots
442443
[doc build] Docs built including example gallery plots

0 commit comments

Comments
 (0)
0