From 3e8d76da3854fda5d7205e50d9798c15ecc14538 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 26 Jan 2021 23:24:39 +0300 Subject: [PATCH] Add pylintrc config --- .pylintrc | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .pylintrc diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 000000000000..add9a2aa94b7 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,45 @@ +# vim: ft=config + +[BASIC] +max-module-lines=2000 +# due to SQL +max-line-length=200 +# Drop/decrease them one day: +max-branches=50 +max-nested-blocks=10 +max-statements=200 + +[FORMAT] +ignore-long-lines = (# )??$ + +[MESSAGES CONTROL] +disable = bad-continuation, + missing-docstring, + bad-whitespace, + too-few-public-methods, + invalid-name, + too-many-arguments, + keyword-arg-before-vararg, + too-many-locals, + too-many-instance-attributes, + cell-var-from-loop, + fixme, + too-many-public-methods, + wildcard-import, + unused-wildcard-import, + singleton-comparison, + # pytest.mark.parametrize is not callable (not-callable) + not-callable, + # https://github.com/PyCQA/pylint/issues/3882 + # [Python 3.9] Value 'Optional' is unsubscriptable (unsubscriptable-object) (also Union) + unsubscriptable-object, + # Drop them one day: + redefined-outer-name, + broad-except, + bare-except, + no-else-return, + global-statement + +[SIMILARITIES] +# due to SQL +min-similarity-lines=1000