From 0f39ba2198076c4c83efc4c262164e2a992d976c Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 14 Dec 2023 01:07:56 +0100 Subject: [PATCH] style(setup.cfg): add to repository --- .gitignore | 1 + setup.cfg | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 setup.cfg diff --git a/.gitignore b/.gitignore index 03bcc0c..91a18dd 100644 --- a/.gitignore +++ b/.gitignore @@ -86,3 +86,4 @@ pretalx.cfg .pytest_cache *.cfg +!setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..bcfbf11 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,40 @@ +[isort] +multi_line_output=3 +include_trailing_comma=True +force_grid_wrap=0 +use_parentheses=True +line_length=88 +known_first_party=pretalx_musicrate +known_third_party=pretalx +skip=setup.py +combine_as_imports=True +default_section = THIRDPARTY + +[tool:pytest] +DJANGO_SETTINGS_MODULE=pretalx.common.settings.test_settings + +[check-manifest] +ignore = + Makefile + LICENSE + README.rst + .gitkeep + +[flake8] +ignore = E203, E231, E266, E501, W503, W605 +max-line-length = 160 +exclude = migrations,static,_static,build,*settings.py,.tox/*,local + +[coverage:run] +branch = True +source = pretalx_musicrate +omit = */migrations/*,*/urls.py,*/tests/* + +[coverage:report] +exclude_lines = + pragma: no cover + def __str__ + der __repr__ + if settings.DEBUG + NOQA + NotImplementedError