initial commit
This commit is contained in:
36
tox.ini
Normal file
36
tox.ini
Normal file
@@ -0,0 +1,36 @@
|
||||
# tox (https://tox.readthedocs.io/) is a tool for running tests
|
||||
# in multiple virtualenvs. This configuration file will run the
|
||||
# test suite on all supported python versions. To use it, "pip install tox"
|
||||
# and then run "tox" from this directory.
|
||||
|
||||
[tox]
|
||||
envlist = py310,black,flake
|
||||
|
||||
[flake8]
|
||||
max-line-length = 160
|
||||
|
||||
[testenv]
|
||||
allowlist_externals = rm
|
||||
deps =
|
||||
|
||||
commands =
|
||||
;Generate pywikibot family file
|
||||
python -m pywikibot.scripts.generate_family_file "https://starwars.fandom.com/wiki/Main_Page" "wookieepedia" "n" "n"
|
||||
python -m unittest discover
|
||||
;remove pywikibot family file
|
||||
rm -rf ./families
|
||||
|
||||
[testenv:black]
|
||||
deps =
|
||||
black
|
||||
|
||||
commands =
|
||||
python -m black wookiee_dl
|
||||
python -m black tests
|
||||
|
||||
[testenv:flake]
|
||||
deps =
|
||||
flake8
|
||||
|
||||
commands =
|
||||
python -m flake8 wookiee_dl
|
||||
Reference in New Issue
Block a user