From ed0e62bff79c6bc59cc9dba84a60708039fe0afa Mon Sep 17 00:00:00 2001 From: Tuomas Haapala Date: Wed, 30 Oct 2024 09:20:34 +0200 Subject: [PATCH] chore: get rid of setup.cfg --- pyproject.toml | 9 +++++++++ setup.cfg | 8 -------- 2 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 0907e3ca..d2c55a3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,3 +21,12 @@ select = [ "T20", ] extend-per-file-ignores = { "*/migrations/*" = ["E501"], "*/tests/*" = ["E501"] } + +[tool.pytest.ini_options] +DJANGO_SETTINGS_MODULE = "open_city_profile.tests.settings" +norecursedirs = [".git", "venv*", ".venv*"] +doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL", "ALLOW_UNICODE"] + +[tool.coverage.run] +branch = true +omit = ["*migrations*", "*site-packages*", "*venv*", "*tests*"] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index e0d21b5a..00000000 --- a/setup.cfg +++ /dev/null @@ -1,8 +0,0 @@ -[tool:pytest] -DJANGO_SETTINGS_MODULE = open_city_profile.tests.settings -norecursedirs = .git venv* .venv* -doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ALLOW_UNICODE - -[coverage:run] -branch = True -omit = *migrations*,*site-packages*,*venv*,*tests*