Added tox config

This commit is contained in:
Jef Roosens 2021-04-24 19:38:03 +02:00
parent d6531fdde8
commit ccb16281fe
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
6 changed files with 12 additions and 1 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ __pycache__/
.venv/ .venv/
backup_tool backup_tool
*.egg-info/ *.egg-info/
.tox/

View file

@ -35,3 +35,7 @@ app: backup_tool
install: app install: app
cp backup_tool /usr/local/bin cp backup_tool /usr/local/bin
.PHONY: install .PHONY: install
test: venv tox.ini
@ .venv/bin/tox
.PHONY: test

0
app/__init__.py Normal file
View file

View file

@ -13,7 +13,6 @@ setup(
"black==20.8b1", "black==20.8b1",
"flake8==3.8.4", "flake8==3.8.4",
"tox==3.21.1", "tox==3.21.1",
"pytest==6.2.1",
] ]
}, },
) )

0
tests/__init__.py Normal file
View file

7
tox.ini Normal file
View file

@ -0,0 +1,7 @@
[tox]
envlist = py36,py37,py38,py39
[testenv]
deps = pytest
commands =
pytest