From 86e380510c43f16ef2d4a6c966d84443ab2f1309 Mon Sep 17 00:00:00 2001
From: Vincent Texier <vit@free.fr>
Date: Wed, 3 Mar 2021 12:07:17 +0100
Subject: [PATCH] [fix] fix check error with pylint 2.7.2

Skip R0801 Duplicate code fragment
---
 Makefile       | 6 +++---
 pyproject.toml | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 93506bf1..ce9b7165 100644
--- a/Makefile
+++ b/Makefile
@@ -20,9 +20,9 @@ mypy:
 
 # check code errors
 pylint:
-	poetry run pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613 --enable=C0121,C0202,C0321 --jobs=0 duniterpy/
-	poetry run pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613 --enable=C0121,C0202,C0321 --jobs=0 tests/
-	poetry run pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613,E0401 --enable=C0121,C0202,C0321 --jobs=0 examples/
+	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/
 
 # check format
 check-format:
diff --git a/pyproject.toml b/pyproject.toml
index afac0b42..52fbdb44 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -37,6 +37,6 @@ graphql-core = "^3.1.2"
 [tool.poetry.dev-dependencies]
 black = "^20.8b1"
 mypy = "^0.790"
-pylint = "^2.6.0"
+pylint = "^2.7.2"
 sphinx = "^3.2.1"
 sphinx_rtd_theme = "^0.5.0"
-- 
GitLab