From eb1a7eb7ed934c124945d596d72691864f53a6e5 Mon Sep 17 00:00:00 2001
From: Romain Deville <code@romaindeville.fr>
Date: Tue, 13 Apr 2021 19:02:49 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Remove=20pylint=20warning?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Disable pylint error for duplicate files and remove preview folder from
pylint test.
---
 pyproject.toml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index f527ad6..89c4b51 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -35,10 +35,12 @@ commands =
   # Lint python files using pylint
   bash -c '\
     pylint \
+      --disable=R0801 \
       $(find . -type f \\( \
         -name "*.py" \
         -not -path "./.*" \
         -not -path "./docs/theme/*" \
+        -not -path "./preview/*" \
         -not -path "./python_venv/*" \
         -not -path "./tmp/*" \
         -not -path "./site**/*"  \\) )'
@@ -67,7 +69,6 @@ commands =
         -not -path "./python_venv/*" \\) ) '
   bash -c 'DIRENV_ROOT="$(pwd)" ./tools/generate_source_docs.sh --dry-run'
 
-
 [testenv:build_doc]
 # Allow external commands
 allowlist_externals=
-- 
GitLab