Skip to content

Commit 7a53a3f

Browse files
committed
- run isort and black from pytest
- use python 3.8 for quality checks - run black in quality env
1 parent aed209b commit 7a53a3f

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ addons:
1313
install:
1414
- pip install codecov
1515
- pip install tox tox-travis
16-
- pip install isort black
1716
script:
1817
- codecov --version
1918
- tox
20-
- isort --check src tests
21-
- black --check src tests
2219
after_success:
2320
- codecov
2421
notifications:

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ envlist = py{36,37,38},quality
44
[testenv]
55
passenv = CI TRAVIS TRAVIS_*
66
commands =
7-
py.test --cov=cryptojwt tests/ {posargs}
7+
py.test --cov=cryptojwt --isort --black tests/ {posargs}
88
codecov
99
extras = testing
1010
deps =
@@ -22,10 +22,10 @@ addopts = --color=yes
2222
markers = network
2323

2424
[testenv:quality]
25-
# Black need python 3.6
26-
basepython = python3.6
25+
basepython = python3.8
2726
ignore_errors = True
2827
deps = twine
2928
extras = quality
3029
commands =
31-
isort --recursive --diff --check-only src/ tests/
30+
isort --check --diff src tests
31+
black --check src tests

0 commit comments

Comments
 (0)