aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-05-14 23:11:24 -0700
committerBryan Newbold <bnewbold@archive.org>2020-05-14 23:11:24 -0700
commit3346a8d61c40e3f18b26c13df9dfafc2a0ad8e80 (patch)
tree0047296f1933b86fb5e8c82ffeafdbee140a81ae
parentc4852afdec87712e09b9cdba5b5db7e1ad1a0701 (diff)
downloadfatcat-scholar-3346a8d61c40e3f18b26c13df9dfafc2a0ad8e80.tar.gz
fatcat-scholar-3346a8d61c40e3f18b26c13df9dfafc2a0ad8e80.zip
working pytest settings
-rw-r--r--Makefile2
-rw-r--r--pytest.ini13
2 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f5e93d9..08fd07d 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ help: ## Print info about all commands
.PHONY: test
test: ## Run all tests and lints
pipenv run pytest
- pipenv run mypy *.py chocula/*.py chocula/*/*.py --ignore-missing-imports
+ pipenv run mypy fatcat_scholar/*.py tests/ --ignore-missing-imports
.PHONY: dev
dev: ## Run web service locally, with reloading
diff --git a/pytest.ini b/pytest.ini
new file mode 100644
index 0000000..0d81a51
--- /dev/null
+++ b/pytest.ini
@@ -0,0 +1,13 @@
+[pytest]
+
+ignore = setup.py
+
+# search for 'test_*' functions in all python files, not just under tests
+python_files = test_*.py tests/*.py fatcat_scholar/*.py
+
+# TODO:
+#addopts = --pylint --pylint-rcfile=.pylintrc --pylint-error-types=EF --pylint-jobs=4
+
+filterwarnings =
+
+log_level = INFO