diff --git a/bin/test b/bin/test new file mode 100755 index 00000000..803ce2c9 --- /dev/null +++ b/bin/test @@ -0,0 +1,6 @@ +#!/usr/bin/env sh + +set -e # Abort on failure +set -x + +python3 -m pytest diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..a1469ad4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,18 @@ +[tool.black] +skip-string-normalization = true +line-length = 90 + +[tool.isort] +profile = "black" +force_sort_within_sections = true +line_length = 90 +sections = "FUTURE,STDLIB,THIRDPARTY,LOCALFOLDER,FIRSTPARTY" +no_lines_before = "FIRSTPARTY" + +[tool.pytest.ini_options] +DJANGO_SETTINGS_MODULE = 'conservancy.settings.dev' +python_files = ['test*.py'] +# pytest-django will default to running tests with DEBUG = False, regardless of +# the settings you provide it. This fails due to the +# `ManifestStaticFilesStorage` without explicitly running `collectstatic` first. +django_debug_mode = true \ No newline at end of file