summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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