Skip to content

Commit

Permalink
Merge pull request #70 from alandtse/tox
Browse files Browse the repository at this point in the history
build: streamline tox
  • Loading branch information
alandtse committed Mar 26, 2020
2 parents a0cf7e1 + 2966a47 commit 8ce336c
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 43 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
black:
pipenv run black teslajsonpy
coverage:
pipenv run pytest -s --verbose --cov-report term-missing --cov-report xml --cov=teslajsonpy tests
pipenv run pytest -s --verbose --cov-report term-missing --cov-report xml --cov=teslajsonpy tests -Wi -Wd:::teslajsonpy
clean:
rm -rf dist/ build/ .egg teslajsonpy.egg-info/
init:
Expand All @@ -22,6 +22,6 @@ publish:
pipenv run twine upload dist/*
rm -rf dist/ build/ .egg teslajsonpy.egg-info/
test:
pipenv run pytest
pipenv run pytest -s --verbose tests -Wi -Wd:::teslajsonpy
typing:
pipenv run mypy --ignore-missing-imports teslajsonpy
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pytest = "*"
pytest-asyncio = "*"
pytest-cov = "*"
tox = "*"
tox-pipenv = "*"
twine = "*"
python-semantic-release = "*"
black = "*"
Expand Down
117 changes: 81 additions & 36 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
[tox]
envlist = py36, py37, py38, cov, lint, typing
envlist = py37, py38, cov, lint, typing
skip_missing_interpreters = True

[testenv]
whitelist_externals = make
deps = pipenv
commands=
make init
make test

[testenv:cov]
whitelist_externals = make
deps = pipenv
commands=
make init
make coverage

[testenv:lint]
whitelist_externals = make
deps = pipenv
commands=
make init
make lint

[testenv:typing]
whitelist_externals = make
deps = pipenv
commands=
make init
make typing

[pytest]
junit_family=xunit1
filterwarnings =
ignore
default:::teslajsonpy

0 comments on commit 8ce336c

Please sign in to comment.