add scripts to run tests and linter

This commit is contained in:
jbannon 2022-04-12 05:57:58 +00:00
parent 82e6c80933
commit 5969cd0268
2 changed files with 6 additions and 0 deletions

4
tools/run_linter Executable file
View file

@ -0,0 +1,4 @@
# Run within root directory. Runs isort, black, then pylint
isort .
black .
pylint ytdl_subscribe/

2
tools/run_tests Executable file
View file

@ -0,0 +1,2 @@
# Run within root folder. Runs tests with coverage, and reports it to html
coverage run -m pytest && coverage html