diff options
author | Mike Frysinger <vapier@gentoo.org> | 2024-01-10 02:43:19 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2024-01-10 02:43:19 -0500 |
commit | 756eda7dbce4261e2d5cd6e38bab49aa457e99c1 (patch) | |
tree | 8c5467bfba53e0ff8103bf8107964311db50b6c4 /pyproject.toml | |
parent | pyproject.toml: add black & isort & mypy settings (diff) | |
download | pax-utils-756eda7dbce4261e2d5cd6e38bab49aa457e99c1.tar.gz pax-utils-756eda7dbce4261e2d5cd6e38bab49aa457e99c1.tar.bz2 pax-utils-756eda7dbce4261e2d5cd6e38bab49aa457e99c1.zip |
pylintrc: merge into pyproject.toml
The same settings, but we have a single file for all our configs now.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'pyproject.toml')
-rw-r--r-- | pyproject.toml | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml index ab0fde0..e633a0a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,3 +40,72 @@ single_line_exclusions = [ # https://mypy.readthedocs.io/en/stable/config_file.html [tool.mypy] python_version = "3.8" + + +# https://pylint.pycqa.org/en/latest/user_guide/usage/run.html +[tool.pylint."MASTER"] +py-version = "3.8" + +# List of plugins (as comma separated values of python modules names) to load, +# usually to register additional checkers. +load-plugins = [ + "pylint.extensions.bad_builtin", + "pylint.extensions.check_elif", + "pylint.extensions.docstyle", + "pylint.extensions.overlapping_exceptions", + "pylint.extensions.redefined_variable_type", +] + +# Run everything in parallel. +jobs = 0 + +# https://pylint.pycqa.org/en/latest/user_guide/messages/index.html +[tool.pylint."MESSAGES CONTROL"] +# Disable the message, report, category or checker with the given id(s). You +# can either give multiple identifier separated by comma (,) or put this option +# multiple times (only on the command line, not in the configuration file where +# it should appear only once). +disable = [ + "too-many-lines", + "too-many-branches", + "too-many-statements", + "too-few-public-methods", + "too-many-instance-attributes", + "too-many-public-methods", + "too-many-locals", + "too-many-arguments", + "fixme", + "invalid-name", +] + +[tool.pylint."REPORTS"] +reports = false +score = false + +[tool.pylint."FORMAT"] +max-line-length = 100 +indent-string = " " + +[tool.pylint."BASIC"] +bad-functions = [ + "exit", + "filter", + "input", + "map", + "quit", +] + +[tool.pylint."SIMILARITIES"] +min-similarity-lines = 20 + +[tool.pylint."VARIABLES"] +dummy-variables-rgx = "_" + +[tool.pylint."DESIGN"] +max-parents = 10 + +[tool.pylint."IMPORTS"] +deprecated-modules = [ + "mox", + "optparse", +] |