From 04de98a7870234be6f143c1f6158c6094c1f5e1d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 1 Sep 2025 13:48:36 -0500 Subject: [PATCH] test: initial pylint support disabling all meaningful checks, will tackle each next... --- .pylintrc | 37 +++++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- tox.ini | 4 ++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .pylintrc diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 0000000..55fbabc --- /dev/null +++ b/.pylintrc @@ -0,0 +1,37 @@ +# -*- mode: conf; -*- + +[MESSAGES CONTROL] +disable=fixme, + duplicate-code, + abstract-method, + arguments-differ, + arguments-renamed, + attribute-defined-outside-init, + broad-exception-caught, + consider-using-dict-comprehension, + consider-using-f-string, + consider-using-set-comprehension, + empty-docstring, + implicit-str-concat, + inconsistent-return-statements, + invalid-name, + missing-class-docstring, + missing-function-docstring, + no-else-return, + no-member, + no-self-argument, + redefined-outer-name, + singleton-comparison, + too-few-public-methods, + too-many-arguments, + too-many-branches, + too-many-lines, + too-many-locals, + too-many-positional-arguments, + too-many-public-methods, + unnecessary-lambda-assignment, + unused-argument, + unused-import, + unused-variable, + unused-wildcard-import, + wildcard-import, diff --git a/pyproject.toml b/pyproject.toml index 1a2f14a..dfbc3a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ dependencies = [ postgres = ["psycopg2"] mysql = ["mysql-connector-python"] docs = ["Sphinx", "furo", "sphinxcontrib-programoutput", "enum-tools[sphinx]"] -tests = ["pytest-cov", "tox"] +tests = ["pylint", "pytest", "pytest-cov", "tox"] [project.scripts] diff --git a/tox.ini b/tox.ini index ac5e756..032ba23 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,10 @@ envlist = py38, py39, py310, py311 extras = tests commands = pytest {posargs} +[testenv:pylint] +basepython = python3.11 +commands = pylint sideshow + [testenv:coverage] basepython = python3.11 commands = pytest --cov=sideshow --cov-report=html --cov-fail-under=100