diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 000000000..368ee93b7 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,41 @@ +[MESSAGES CONTROL] + +# Disable the message, report, category or checker with the given id(s). You +# can either give multiple identifiers 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). You can also use "--disable=all" to +# disable everything first and then re-enable specific checks. For example, if +# you want to run only the similarities checker, you can use "--disable=all +# --enable=similarities". If you want to run only the classes checker, but have +# no Warning level messages displayed, use "--disable=all --enable=classes +# --disable=W". +disable= + # Default generated + bad-inline-option, + deprecated-pragma, + file-ignored, + locally-disabled, + raw-checker-failed, + suppressed-message, + useless-suppression, + use-symbolic-message-instead, + # Disabled in pylint repo + attribute-defined-outside-init, + fixme, + invalid-name, + missing-docstring, + protected-access, + too-few-public-methods, + # Handled by black + format, + # Handled by isort + wrong-import-order, + # False positives + import-error, + # Unwanted + design, + duplicate-code, + metrics, + logging-fstring-interpolation, + too-many-nested-blocks, + useless-return diff --git a/pyproject.toml b/pyproject.toml index 93a8a535a..6444e3460 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,36 +44,3 @@ build-backend = "poetry.core.masonry.api" disallow_incomplete_defs = true disallow_untyped_defs = true ignore_missing_imports = true - -[tool.pylint.messages_control] -disable = [ - # Default - "bad-inline-option", - "deprecated-pragma", - "file-ignored", - "locally-disabled", - "raw-checker-failed", - "suppressed-message", - "useless-suppression", - "use-symbolic-message-instead", - # Disabled in pylint repo - "attribute-defined-outside-init", - "fixme", - "invalid-name", - "missing-docstring", - "protected-access", - "too-few-public-methods", - # Handled by black - "format", - # Handled by isort - "wrong-import-order", - # False positives - "import-error", - # Unwanted - "design", - "duplicate-code", - "metrics", - "logging-fstring-interpolation", - "too-many-nested-blocks", - "useless-return" -]