Added tox config
This commit is contained in:
parent
d6531fdde8
commit
ccb16281fe
6 changed files with 12 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,3 +2,4 @@ __pycache__/
|
||||||
.venv/
|
.venv/
|
||||||
backup_tool
|
backup_tool
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
|
.tox/
|
||||||
|
|
|
||||||
4
Makefile
4
Makefile
|
|
@ -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
0
app/__init__.py
Normal file
1
setup.py
1
setup.py
|
|
@ -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
0
tests/__init__.py
Normal file
7
tox.ini
Normal file
7
tox.ini
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[tox]
|
||||||
|
envlist = py36,py37,py38,py39
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
deps = pytest
|
||||||
|
commands =
|
||||||
|
pytest
|
||||||
Reference in a new issue