Skip to content

Commit 4e40786

Browse files
committed
Allow failures only for flake8 and pep257 checks
1 parent 8d5ac37 commit 4e40786

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ matrix:
1818
- python: pypy
1919
# TODO: fix tests
2020
- python: pypy3
21-
- env: TOXENV=pre-commit
21+
- env: TOXENV=pre-commit-pep257
22+
- env: TOXENV=pre-commit-flake8
2223
include:
2324
- python: 3.6
2425
env: TOXENV=pre-commit
26+
- python: 3.6
27+
env: TOXENV=pre-commit-pep257
28+
- python: 3.6
29+
env: TOXENV=pre-commit-flake8
2530
- python: 3.6
2631
env: TOXENV=dist-check
2732

tox.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,18 @@ extras =
1414

1515
[testenv:pre-commit]
1616
deps = pre-commit
17+
setenv =
18+
SKIP=pep257,flake8
1719
commands = pre-commit run --all-files {posargs}
1820

21+
[testenv:pre-commit-pep257]
22+
deps = pre-commit
23+
commands = pre-commit run --all-files pep257 {posargs}
24+
25+
[testenv:pre-commit-flake8]
26+
deps = pre-commit
27+
commands = pre-commit run --all-files flake8 {posargs}
28+
1929
[testenv:dist-check]
2030
# ensure that package artifacts are installed as expected
2131
usedevelop = False

0 commit comments

Comments
 (0)