From bf71e1c17dddb5120ca3554b956e228b9a8da7b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Thu, 19 Sep 2024 19:55:44 +0200 Subject: [PATCH] feat(lint): add config for common linters --- pyproject.toml | 6 ++++++ tox.ini | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 9ff89e37cb..16e27955b2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,3 +38,9 @@ exclude =''' )/ ) ''' + +[tool.isort] +profile = "black" + +[tool.pylint.format] +max-line-length = "100" diff --git a/tox.ini b/tox.ini index 7a1822cfe0..1b1375c95b 100644 --- a/tox.ini +++ b/tox.ini @@ -22,3 +22,9 @@ deps = dev: -e git+file:{toxinidir}/backend/dependencies/Utils-Flask-SQLAlchemy-Geo#egg=utils-flask-sqlalchemy-geo commands = pytest -s --verbose {envsitepackagesdir}/geonature/tests + +# Sadly, pycodestyle does not support pyproject.toml, and the maintainer doesn't even respond… +# https://github.com/PyCQA/pycodestyle/issues/1226 +[pycodestyle] +max-line-length = 100 +ignore = E203,E701 # to complies with black