From 4b4f363a5b4f81d361276b90a2abf195a534b491 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Wed, 12 May 2021 18:38:09 +0200 Subject: [PATCH] [mod] #135: Move pylint rules from the Makefile to the pyproject.toml Join lines, '/' at the end is no longer necessary http://pylint.pycqa.org/en/latest/whatsnew/2.5.html?highlight=pyproject#other-changes Disable R0401 additionnaly for duniterpy and tests in addition to example folder --- Makefile | 4 +--- pyproject.toml | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6ec8da8..cf3dacb 100644 --- a/Makefile +++ b/Makefile @@ -23,9 +23,7 @@ isort: # check code errors pylint: - poetry run pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613,R0801 --enable=C0121,C0202,C0321 --jobs=0 duniterpy/ - poetry run pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613,R0801 --enable=C0121,C0202,C0321 --jobs=0 tests/ - poetry run pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613,E0401,R0801 --enable=C0121,C0202,C0321 --jobs=0 examples/ + poetry run pylint duniterpy tests examples # check format check-format: diff --git a/pyproject.toml b/pyproject.toml index 4936416..f88ed18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,3 +47,8 @@ sphinx_rtd_theme = "^0.5.0" [tool.isort] profile = "black" src_paths = ["duniterpy", "tests", "examples"] + +[tool.pylint.messages_control] +disable = "C,R0401,R0801,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613" +enable = "C0121,C0202,C0321" +jobs = 0 -- GitLab