From 3346a8d61c40e3f18b26c13df9dfafc2a0ad8e80 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 14 May 2020 23:11:24 -0700 Subject: working pytest settings --- Makefile | 2 +- pytest.ini | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 pytest.ini 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 -- cgit v1.2.3