initial commit

This commit is contained in:
2022-10-25 11:45:25 -05:00
commit 0a3759dbf3
9 changed files with 447 additions and 0 deletions

36
tox.ini Normal file
View 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