From 5969cd02686437fe4a94948651325d1b284a0e46 Mon Sep 17 00:00:00 2001 From: jbannon Date: Tue, 12 Apr 2022 05:57:58 +0000 Subject: [PATCH] add scripts to run tests and linter --- tools/run_linter | 4 ++++ tools/run_tests | 2 ++ 2 files changed, 6 insertions(+) create mode 100755 tools/run_linter create mode 100755 tools/run_tests diff --git a/tools/run_linter b/tools/run_linter new file mode 100755 index 00000000..22123e1c --- /dev/null +++ b/tools/run_linter @@ -0,0 +1,4 @@ +# Run within root directory. Runs isort, black, then pylint +isort . +black . +pylint ytdl_subscribe/ diff --git a/tools/run_tests b/tools/run_tests new file mode 100755 index 00000000..dd8711ae --- /dev/null +++ b/tools/run_tests @@ -0,0 +1,2 @@ +# Run within root folder. Runs tests with coverage, and reports it to html +coverage run -m pytest && coverage html