From ea8d47a94b6d6c88d6551936dc771fd568a1b2c9 Mon Sep 17 00:00:00 2001 From: Oliver Tseng Date: Wed, 30 Oct 2024 21:48:57 -0400 Subject: [PATCH] Cleanup lint and test actions (#300) * Ignore lint errors * Update access_google_drive.py * Ignore flake lint * Update test.py * Fix tests --- .gitignore | 7 +++++++ pytest.ini | 3 +++ tests/test.py | 1 - tests/test_uba.py | 2 ++ uniquebible/plugins/context/Strongs2csv/strong2csv.py | 1 + .../plugins/menu/GoogleDriveUtility/access_google_drive.py | 1 + uniquebible/util/ConfigUtil.py | 1 + uniquebible/util/LocalCliHandler.py | 1 + 8 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 pytest.ini delete mode 100644 tests/test.py create mode 100644 tests/test_uba.py diff --git a/.gitignore b/.gitignore index 758c3b5af..429003954 100644 --- a/.gitignore +++ b/.gitignore @@ -122,3 +122,10 @@ audio/*.json *.out audio/._.DS_Store audio/._Readme.md +uniquebible/audio/bibles/ +uniquebible.egg-info/ +uniquebible/htmlResources/images/exlbl_largeHD/ +uniquebible/venv*/ +uniquebible/marvelData/ +uniquebible/marvelData_*/ +uniquebible/macros/ \ No newline at end of file diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 000000000..e0087a24d --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +testpaths = tests/ +norecursedirs = .git venv* diff --git a/tests/test.py b/tests/test.py deleted file mode 100644 index e32d36a41..000000000 --- a/tests/test.py +++ /dev/null @@ -1 +0,0 @@ -print("testing") \ No newline at end of file diff --git a/tests/test_uba.py b/tests/test_uba.py new file mode 100644 index 000000000..560942e17 --- /dev/null +++ b/tests/test_uba.py @@ -0,0 +1,2 @@ +def test_uba(): + pass \ No newline at end of file diff --git a/uniquebible/plugins/context/Strongs2csv/strong2csv.py b/uniquebible/plugins/context/Strongs2csv/strong2csv.py index 229764d0e..90899f6ea 100644 --- a/uniquebible/plugins/context/Strongs2csv/strong2csv.py +++ b/uniquebible/plugins/context/Strongs2csv/strong2csv.py @@ -1,3 +1,4 @@ +# flake8: noqa ''' A utility to extract Strongs Numbers data into a CSV fi1e. Can enter one or more numbers, i.e. H25 or H356,G217,G875. Saved file will diff --git a/uniquebible/plugins/menu/GoogleDriveUtility/access_google_drive.py b/uniquebible/plugins/menu/GoogleDriveUtility/access_google_drive.py index 44e7c56b2..a871bf94e 100644 --- a/uniquebible/plugins/menu/GoogleDriveUtility/access_google_drive.py +++ b/uniquebible/plugins/menu/GoogleDriveUtility/access_google_drive.py @@ -1,3 +1,4 @@ +# flake8: noqa from __future__ import print_function import mimetypes diff --git a/uniquebible/util/ConfigUtil.py b/uniquebible/util/ConfigUtil.py index 9ce60f9b7..3c69552b8 100644 --- a/uniquebible/util/ConfigUtil.py +++ b/uniquebible/util/ConfigUtil.py @@ -1,3 +1,4 @@ +# flake8: noqa import codecs import logging import os, pprint, platform, sys diff --git a/uniquebible/util/LocalCliHandler.py b/uniquebible/util/LocalCliHandler.py index 51f99250d..4d053932c 100644 --- a/uniquebible/util/LocalCliHandler.py +++ b/uniquebible/util/LocalCliHandler.py @@ -1,3 +1,4 @@ +# flake8: noqa import re, pprint, os, requests, platform, pydoc, markdown, sys, subprocess, json, shutil, webbrowser, traceback, textwrap, wcwidth, unicodedata from uniquebible import config import threading, time