aboutsummaryrefslogtreecommitdiffstats
path: root/build/config
diff options
context:
space:
mode:
authornkozlovskiy <nmk@ydb.tech>2023-09-29 12:24:06 +0300
committernkozlovskiy <nmk@ydb.tech>2023-09-29 12:41:34 +0300
commite0e3e1717e3d33762ce61950504f9637a6e669ed (patch)
treebca3ff6939b10ed60c3d5c12439963a1146b9711 /build/config
parent38f2c5852db84c7b4d83adfcb009eb61541d1ccd (diff)
downloadydb-e0e3e1717e3d33762ce61950504f9637a6e669ed.tar.gz
add ydb deps
Diffstat (limited to 'build/config')
-rw-r--r--build/config/tests/flake8/flake8.conf516
1 files changed, 516 insertions, 0 deletions
diff --git a/build/config/tests/flake8/flake8.conf b/build/config/tests/flake8/flake8.conf
new file mode 100644
index 0000000000..83f8c590d3
--- /dev/null
+++ b/build/config/tests/flake8/flake8.conf
@@ -0,0 +1,516 @@
+[flake8]
+select =
+ E, W, # pep8 errors and warnings
+ F, # pyflakes
+ C9, # McCabe
+ N8, # Naming Conventions
+ PL, # Flake8-Pylint
+ #B, S, # bandit
+ #C, # commas
+ #D, # docstrings
+ #P, # string-format
+ #Q, # quotes
+
+ignore =
+ # closing bracket does not match indentation of opening bracket's line
+ E123,
+ # whitespace before ':'
+ E203,
+ # missing whitespace around arithmetic operator
+ E226,
+ # multiple spaces after ',' or tab after ','
+ E24,
+
+ # line break before binary operator
+ W503,
+ # line break after binary operator
+ W504,
+
+ # astroid-error
+ PLF0002,
+ # function-redefined
+ PLE0102,
+ # bad-reversed-sequence
+ PLE0111,
+ # no-method-argument
+ PLE0211,
+ # no-self-argument
+ PLE0213,
+ # access-member-before-definition
+ PLE0203,
+ # class-variable-slots-conflict
+ PLE0242,
+ # invalid-str-returned
+ PLE0307,
+ # invalid-hash-returned
+ PLE0309,
+ # relative-beyond-top-level
+ PLE0402,
+ # used-before-assignment
+ PLE0601,
+ # undefined-variable
+ PLE0602,
+ # undefined-all-variable
+ PLE0603,
+ # invalid-all-object
+ PLE0604,
+ # no-name-in-module
+ PLE0611,
+ # raising-bad-type
+ PLE0702,
+ # bad-super-call
+ PLE1003,
+ # bad-str-strip-call
+ PLE1310,
+ # not-async-context-manager
+ PLE1701,
+
+ # no-member
+ PLE1101,
+ # not-callable
+ PLE1102,
+ # assignment-from-no-return
+ PLE1111,
+ # no-value-for-parameter
+ PLE1120,
+ # too-many-function-args
+ PLE1121,
+ # unexpected-keyword-arg
+ PLE1123,
+ # redundant-keyword-arg
+ PLE1124,
+ # missing-kwoa
+ PLE1125,
+ # invalid-sequence-index
+ PLE1126,
+ # invalid-slice-index
+ PLE1127,
+ # assignment-from-none
+ PLE1128,
+ # not-context-manager
+ PLE1129,
+ # invalid-unary-operand-type
+ PLE1130,
+ # unsupported-binary-operation
+ PLE1131,
+ # repeated-keyword
+ PLE1132,
+ # not-an-iterable
+ PLE1133,
+ # not-a-mapping
+ PLE1134,
+ # unsupported-membership-test
+ PLE1135,
+ # unsubscriptable-object
+ PLE1136,
+ # unsupported-assignment-operation
+ PLE1137,
+ # unsupported-delete-operation
+ PLE1138,
+ # invalid-metaclass
+ PLE1139,
+ # dict-iter-missing-items
+ PLE1141,
+ # await-outside-async
+ PLE1142,
+ # unhashable-member
+ PLE1143,
+
+ # invalid-unicode-codec
+ PLE2501,
+ # bidirectional-unicode
+ PLE2502,
+ # invalid-character-backspace
+ PLE2510,
+ # invalid-character-carriage-return
+ PLE2511,
+ # invalid-character-sub
+ PLE2512,
+ # invalid-character-esc
+ PLE2513,
+ # invalid-character-nul
+ PLE2514,
+ # invalid-character-zero-width-space
+ PLE2515,
+
+ # import-error
+ PLE0401,
+
+ # invalid-name
+ PLC0103,
+ # disallowed-name
+ PLC0104,
+ # typevar-name-incorrect-variance
+ PLC0105,
+ # missing-module-docstring
+ PLC0114,
+ # missing-class-docstring
+ PLC0115,
+ # missing-function-docstring
+ PLC0116,
+ # singleton-comparison
+ PLC0121,
+ # unidiomatic-typecheck
+ PLC0123,
+ # typevar-double-variance
+ PLC0131,
+ # typevar-name-mismatch
+ PLC0132,
+ # consider-using-enumerate
+ PLC0200,
+ # consider-iterating-dictionary
+ PLC0201,
+ # bad-classmethod-argument
+ PLC0202,
+ # bad-mcs-classmethod-argument
+ PLC0204,
+ # single-string-used-for-slots
+ PLC0205,
+ # consider-using-dict-items
+ PLC0206,
+ # use-maxsplit-arg
+ PLC0207,
+ # use-sequence-for-iteration
+ PLC0208,
+ # consider-using-f-string
+ PLC0209,
+ # line-too-long
+ PLC0301,
+ # too-many-lines
+ PLC0302,
+ # trailing-whitespace
+ PLC0303,
+ # missing-final-newline
+ PLC0304,
+ # trailing-newlines
+ PLC0305,
+ # superfluous-parens
+ PLC0325,
+ # unexpected-line-ending-format
+ PLC0328,
+ # wrong-spelling-in-comment
+ PLC0401,
+ # wrong-spelling-in-docstring
+ PLC0402,
+ # invalid-characters-in-docstring
+ PLC0403,
+ # multiple-imports
+ PLC0410,
+ # wrong-import-order
+ PLC0411,
+ # ungrouped-imports
+ PLC0412,
+ # wrong-import-position
+ PLC0413,
+ # useless-import-alias
+ PLC0414,
+ # import-outside-toplevel
+ PLC0415,
+ # use-implicit-booleaness-not-len
+ PLC1802,
+ # use-implicit-booleaness-not-comparison
+ PLC1803,
+ # unnecessary-dunder-call
+ PLC2801,
+ # unnecessary-lambda-assignment
+ PLC3001,
+ # unnecessary-direct-lambda-call
+ PLC3002,
+ # raw-checker-failed
+ PLI0001,
+ # bad-inline-option
+ PLI0010,
+ # locally-disabled
+ PLI0011,
+ # file-ignored
+ PLI0013,
+ # suppressed-message
+ PLI0020,
+ # useless-suppression
+ PLI0021,
+ # deprecated-pragma
+ PLI0022,
+ # use-symbolic-message-instead
+ PLI0023,
+ # c-extension-no-member
+ PLI1101,
+ # useless-option-value
+ PLR0022,
+ # comparison-with-itself
+ PLR0124,
+ # comparison-of-constants
+ PLR0133,
+ # useless-object-inheritance
+ PLR0205,
+ # cyclic-import
+ PLR0401,
+ # consider-using-from-import
+ PLR0402,
+ # duplicate-code
+ PLR0801,
+ # too-many-ancestors
+ PLR0901,
+ # too-many-instance-attributes
+ PLR0902,
+ # too-few-public-methods
+ PLR0903,
+ # too-many-public-methods
+ PLR0904,
+ # too-many-return-statements
+ PLR0911,
+ # too-many-branches
+ PLR0912,
+ # too-many-arguments
+ PLR0913,
+ # too-many-locals
+ PLR0914,
+ # too-many-statements
+ PLR0915,
+ # too-many-boolean-expressions
+ PLR0916,
+ # consider-merging-isinstance
+ PLR1701,
+ # too-many-nested-blocks
+ PLR1702,
+ # simplifiable-if-statement
+ PLR1703,
+ # redefined-argument-from-local
+ PLR1704,
+ # no-else-return
+ PLR1705,
+ # consider-using-ternary
+ PLR1706,
+ # trailing-comma-tuple
+ PLR1707,
+ # stop-iteration-return
+ PLR1708,
+ # simplify-boolean-expression
+ PLR1709,
+ # inconsistent-return-statements
+ PLR1710,
+ # useless-return
+ PLR1711,
+ # consider-using-in
+ PLR1714,
+ # chained-comparison
+ PLR1716,
+ # consider-using-dict-comprehension
+ PLR1717,
+ # consider-using-set-comprehension
+ PLR1718,
+ # simplifiable-if-expression
+ PLR1719,
+ # no-else-raise
+ PLR1720,
+ # unnecessary-comprehension
+ PLR1721,
+ # consider-using-sys-exit
+ PLR1722,
+ # no-else-break
+ PLR1723,
+ # no-else-continue
+ PLR1724,
+ # super-with-arguments
+ PLR1725,
+ # consider-using-generator
+ PLR1728,
+ # use-a-generator
+ PLR1729,
+ # use-list-literal
+ PLR1734,
+ # use-dict-literal
+ PLR1735,
+ # unknown-option-value
+ PLW0012,
+ # unreachable
+ PLW0101,
+ # dangerous-default-value
+ PLW0102,
+ # pointless-statement
+ PLW0104,
+ # pointless-string-statement
+ PLW0105,
+ # expression-not-assigned
+ PLW0106,
+ # unnecessary-pass
+ PLW0107,
+ # unnecessary-lambda
+ PLW0108,
+ # useless-else-on-loop
+ PLW0120,
+ # eval-used
+ PLW0123,
+ # using-constant-test
+ PLW0125,
+ # missing-parentheses-for-call-in-test
+ PLW0126,
+ # self-assigning-variable
+ PLW0127,
+ # duplicate-value
+ PLW0130,
+ # comparison-with-callable
+ PLW0143,
+ # nan-comparison
+ PLW0177,
+ # assert-on-tuple
+ PLW0199,
+ # attribute-defined-outside-init
+ PLW0201,
+ # protected-access
+ PLW0212,
+ # arguments-differ
+ PLW0221,
+ # abstract-method
+ PLW0223,
+ # super-init-not-called
+ PLW0231,
+ # non-parent-init-called
+ PLW0233,
+ # invalid-overridden-method
+ PLW0236,
+ # arguments-renamed
+ PLW0237,
+ # unused-private-member
+ PLW0238,
+ # overridden-final-method
+ PLW0239,
+ # subclassed-final-class
+ PLW0240,
+ # useless-parent-delegation
+ PLW0246,
+ # unnecessary-semicolon
+ PLW0301,
+ # wildcard-import
+ PLW0401,
+ # reimported
+ PLW0404,
+ # import-self
+ PLW0406,
+ # preferred-module
+ PLW0407,
+ # misplaced-future
+ PLW0410,
+ # fixme
+ PLW0511,
+ # global-variable-not-assigned
+ PLW0602,
+ # global-statement
+ PLW0603,
+ # global-at-module-level
+ PLW0604,
+ # unused-import
+ PLW0611,
+ # unused-variable
+ PLW0612,
+ # unused-argument
+ PLW0613,
+ # unused-wildcard-import
+ PLW0614,
+ # redefined-outer-name
+ PLW0621,
+ # redefined-builtin
+ PLW0622,
+ # undefined-loop-variable
+ PLW0631,
+ # unbalanced-tuple-unpacking
+ PLW0632,
+ # cell-var-from-loop
+ PLW0640,
+ # possibly-unused-variable
+ PLW0641,
+ # bare-except
+ PLW0702,
+ # broad-except
+ PLW0703,
+ # try-except-raise
+ PLW0706,
+ # raise-missing-from
+ PLW0707,
+ # raising-format-tuple
+ PLW0715,
+ # wrong-exception-operation
+ PLW0716,
+ # keyword-arg-before-vararg
+ PLW1113,
+ # arguments-out-of-order
+ PLW1114,
+ # non-str-assignment-to-dunder-name
+ PLW1115,
+ # isinstance-second-argument-not-valid-type
+ PLW1116,
+ # logging-not-lazy
+ PLW1201,
+ # logging-format-interpolation
+ PLW1202,
+ # logging-fstring-interpolation
+ PLW1203,
+ # bad-format-string-key
+ PLW1300,
+ # unused-format-string-key
+ PLW1301,
+ # bad-format-string
+ PLW1302,
+ # missing-format-argument-key
+ PLW1303,
+ # unused-format-string-argument
+ PLW1304,
+ # format-combined-specification
+ PLW1305,
+ # missing-format-attribute
+ PLW1306,
+ # invalid-format-index
+ PLW1307,
+ # duplicate-string-formatting-argument
+ PLW1308,
+ # anomalous-backslash-in-string
+ PLW1401,
+ # anomalous-unicode-escape-in-string
+ PLW1402,
+ # implicit-str-concat
+ PLW1404,
+ # inconsistent-quotes
+ PLW1405,
+ # redundant-u-string-prefix
+ PLW1406,
+ # bad-open-mode
+ PLW1501,
+ # boolean-datetime
+ PLW1502,
+ # redundant-unittest-assert
+ PLW1503,
+ # bad-thread-instantiation
+ PLW1506,
+ # shallow-copy-environ
+ PLW1507,
+ # invalid-envvar-default
+ PLW1508,
+ # subprocess-popen-preexec-fn
+ PLW1509,
+ # subprocess-run-check
+ PLW1510,
+ # unspecified-encoding
+ PLW1514,
+ # forgotten-debug-statement
+ PLW1515,
+ # method-cache-max-size-none
+ PLW1518,
+ # useless-with-lock
+ PLW2101,
+ # non-ascii-file-name
+ PLW2402,
+ # using-f-string-in-unsupported-version
+ PLW2601,
+ # using-final-decorator-in-unsupported-version
+ PLW2602,
+ # missing-timeout
+ PLW3101,
+ # deprecated-module
+ PLW4901,
+ # deprecated-argument
+ PLW4903,
+ # deprecated-class
+ PLW4904,
+ # deprecated-decorator
+ PLW4905,
+
+max-line-length = 200