Skip to content

Commit 94f5c22

Browse files
hugovkBoboTiG
authored andcommitted
Extract flake8 to own Tox task
1 parent 5dd074a commit 94f5c22

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ dist: xenial
33

44
matrix:
55
include:
6+
- os: linux
7+
python: "3.7"
8+
env: TOXENV=lint
69
- os: osx
710
language: generic
811
env:

tox.ini

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
[tox]
2-
envlist = py{37,36,35,py3},docs
2+
envlist =
3+
lint
4+
py{37,36,35,py3}
5+
docs
36
skip_missing_interpreters = True
47

58
[testenv]
69
passenv = DISPLAY
710
alwayscopy = True
811
deps =
912
pytest>=4.0.2
10-
flake8>=3.6.0
1113
numpy==1.15.4
1214
py37: pillow>=5.4.0
1315
commands =
1416
python -m pytest {posargs}
15-
py3{7,6,5,}: python -m flake8 docs mss tests
17+
18+
[testenv:lint]
19+
deps =
20+
flake8>=3.6.0
21+
commands =
22+
python -m flake8 docs mss tests
1623

1724
[testenv:docs]
1825
description = build the documentation

0 commit comments

Comments
 (0)