From 540b30dd76dfcf1d716e7c4cac4642cc87d43c77 Mon Sep 17 00:00:00 2001 From: Apostolos Chalkis Date: Wed, 23 Oct 2024 14:55:20 +0300 Subject: [PATCH] update pyproject.toml file to add info about the pylinter --- pyproject.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index f9728a2be..fa5cf4f43 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,3 +5,26 @@ build-backend = "setuptools.build_meta" [tool.black] line-length = 100 target-version = ['py38', 'py39', 'py310', 'py311'] + +[tool.pylint.main] +extension-pkg-allow-list = [ + "numpy", + "rustworkx", +] +load-plugins = ["pylint.extensions.docparams", "pylint.extensions.docstyle"] +py-version = "3.8" # update it when bumping minimum supported python version + +[tool.pylint.basic] +good-names = ["a", "b", "i", "j", "k", "d", "n", "m", "ex", "v", "w", "x", "y", "z", "Run", "_", "logger", "q", "c", "r", "qr", "cr", "qc", "nd", "pi", "op", "b", "ar", "br", "p", "cp", "ax", "dt", "__unittest", "iSwapGate", "mu"] +method-rgx = "(([a-z_][a-z0-9_]{2,49})|(assert[A-Z][a-zA-Z0-9]{2,43})|(test_[_a-zA-Z0-9]{2,}))$" +variable-rgx = "[a-z_][a-z0-9_]{1,30}$" + +[tool.pylint."messages control"] +disable = [ +# intentionally disabled: + "unknown-option-value", +] + +[tool.pylint.spelling] +spelling-private-dict-file = ".pylintdict" +spelling-store-unknown-words = "n"