install flake8-black and move pytest config in pyproject.toml

This commit is contained in:
Laetitia Getti 2023-03-30 16:08:54 +02:00
parent d650ec2913
commit 5289a90ced
3 changed files with 4 additions and 3 deletions

View file

@ -35,6 +35,9 @@ isort_ignore = ["*migrations/*.py"]
[tool.isort] [tool.isort]
skip_glob = ["*migrations/*.py"] skip_glob = ["*migrations/*.py"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "la_chariotte.settings"
[tool.black] [tool.black]
line-length = 88 line-length = 88
exclude = ''' exclude = '''

View file

@ -33,3 +33,4 @@ Si il y a des erreurs BLACK, on peut lancer black pour linter le code :
```bash ```bash
black . black .
``` ```

View file

@ -1,6 +1,3 @@
[tool:pytest]
DJANGO_SETTINGS_MODULE = la_chariotte.settings
[flake8] [flake8]
exclude = migrations exclude = migrations
extend-ignore = E501 extend-ignore = E501