From 5289a90cedf4c9b28392061ec3121baa6f374a16 Mon Sep 17 00:00:00 2001 From: Laetitia Getti Date: Thu, 30 Mar 2023 16:08:54 +0200 Subject: [PATCH] install flake8-black and move pytest config in pyproject.toml --- pyproject.toml | 3 +++ readMe.md | 1 + setup.cfg | 3 --- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 68763da..3a5c94b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,9 @@ isort_ignore = ["*migrations/*.py"] [tool.isort] skip_glob = ["*migrations/*.py"] +[tool.pytest.ini_options] +DJANGO_SETTINGS_MODULE = "la_chariotte.settings" + [tool.black] line-length = 88 exclude = ''' diff --git a/readMe.md b/readMe.md index b50408a..9acdec4 100644 --- a/readMe.md +++ b/readMe.md @@ -33,3 +33,4 @@ Si il y a des erreurs BLACK, on peut lancer black pour linter le code : ```bash black . ``` + diff --git a/setup.cfg b/setup.cfg index 1183a37..f0a1c3b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,3 @@ -[tool:pytest] -DJANGO_SETTINGS_MODULE = la_chariotte.settings - [flake8] exclude = migrations extend-ignore = E501 \ No newline at end of file