Skip to content

Commit

Permalink
add fmt commands to tox, add py37-fmt to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
1138-4EB committed Oct 13, 2019
1 parent 1c88c25 commit 8b80469
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ matrix:
- DOCKER_IMAGE=mcode


- env: BUILD_NAME=py37-fmt
python: '3.7'
script: tox -e $BUILD_NAME -- --check


- env: BUILD_NAME=py27-lint
python: '2.7'
- env: BUILD_NAME=py37-lint
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[tox]
envlist = py{27,34,35,36,37}-unit, py{27,34,35,36,37}-acceptance-{activehdl,ghdl,modelsim,rivierapro}, py{27,34,35,36,37}-vcomponents-{activehdl,ghdl,modelsim,rivierapro}, py{27,35,36,37}-lint, py{27,35,36,37}-docs
envlist = py{36,37}-fmt, py{27,34,35,36,37}-{unit}, py{27,35,36,37}-{lint,docs}, py{27,34,35,36,37}-{acceptance,vcomponents}-{activehdl,ghdl,modelsim,rivierapro}
skip_missing_interpreters = True

[testenv]
recreate=True
passenv=ALDEC_LICENSE_FILE

deps=
fmt: black
pytest
py27-unit: mock
lint: pycodestyle
Expand All @@ -23,6 +24,7 @@ setenv=
acceptance-rivierapro: VUNIT_SIMULATOR=rivierapro

commands=
fmt: {envpython} -m black ./ --exclude 'vunit\/vhdl\/JSON-for-VHDL|\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|_build|buck-out|build|dist' {posargs}
unit: {envpython} -m pytest -v vunit/test/unit
lint: {envpython} -m pytest -v vunit/test/lint
docs: {envpython} tools/build_docs.py {envtmpdir}/docsbuild
Expand Down

0 comments on commit 8b80469

Please sign in to comment.