From fdef2f708cc3f2dd1afe8b78611b41c39a74324b Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Wed, 10 Jan 2024 10:55:37 -0500 Subject: [PATCH] add settings for pylint and flake8 --- pyproject.toml | 34 ++++++++++++++++++++++++++++++++++ setup.cfg | 7 +++++++ 2 files changed, 41 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 596d494..2c137b2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,37 @@ [build-system] requires = ["setuptools","wheel"] build-backend = 'setuptools.build_meta' + + +[tool.pylint.main] +jobs = 0 +persistent = true + + +[tool.pylint.design] +max-args = 10 +max-attributes = 100 + + +[tool.pylint.format] +indent-str = "\t" +indent-after-paren = 1 +max-line-length = 100 +single-line-if-stmt = true + + +[tool.pylint.messages_control] +disable = [ + "broad-exception-caught", + "cyclic-import", + "global-statement", + "invalid-name", + "missing-module-docstring", + "too-few-public-methods", + "too-many-public-methods", + "too-many-return-statements", + "wrong-import-order", + "wrong-import-position", + "missing-function-docstring", + "missing-class-docstring" +] diff --git a/setup.cfg b/setup.cfg index 28bf20d..8b807e3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -34,3 +34,10 @@ dev = [options.entry_points] console_scripts = activityrelay = relay.manage:main + + +[flake8] +extend-ignore = ANN101,ANN204,E128,E251,E261,E266,E301,E303,W191 +extend-exclude = docs, test*.py +max-line-length = 100 +indent-size = 4