123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563 |
- [flake8]
- jobs = 2
- 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 ':' (for black https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#e203)
- E203,
- # missing whitespace around arithmetic operator
- E226,
- # multiple spaces after ',' or tab after ','
- E24,
- # multiple statements on one line (for black https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#e701-e704)
- E701,
- E704,
- # line break before binary operator
- W503,
- # line break after binary operator
- W504,
- # astroid-error
- PLF002,
- # function-redefined
- PLE102,
- # bad-reversed-sequence
- PLE111,
- # method-hidden
- PLE202,
- # no-method-argument
- PLE211,
- # no-self-argument
- PLE213,
- # access-member-before-definition
- PLE203,
- # class-variable-slots-conflict
- PLE242,
- # invalid-str-returned
- PLE307,
- # invalid-hash-returned
- PLE309,
- # relative-beyond-top-level
- PLE402,
- # used-before-assignment
- PLE601,
- # undefined-variable
- PLE602,
- # undefined-all-variable
- PLE603,
- # invalid-all-object
- PLE604,
- # no-name-in-module
- PLE611,
- # raising-bad-type
- PLE702,
- # catching-non-exception
- PLE712,
- # bad-super-call
- PLE003,
- # bad-str-strip-call
- PLE310,
- # not-async-context-manager
- PLE701,
- # no-member
- PLE101,
- # not-callable
- PLE102,
- # assignment-from-no-return
- PLE111,
- # no-value-for-parameter
- PLE120,
- # too-many-function-args
- PLE121,
- # unexpected-keyword-arg
- PLE123,
- # redundant-keyword-arg
- PLE124,
- # missing-kwoa
- PLE125,
- # invalid-sequence-index
- PLE126,
- # invalid-slice-index
- PLE127,
- # assignment-from-none
- PLE128,
- # not-context-manager
- PLE129,
- # invalid-unary-operand-type
- PLE130,
- # unsupported-binary-operation
- PLE131,
- # repeated-keyword
- PLE132,
- # not-an-iterable
- PLE133,
- # not-a-mapping
- PLE134,
- # unsupported-membership-test
- PLE135,
- # unsubscriptable-object
- PLE136,
- # unsupported-assignment-operation
- PLE137,
- # unsupported-delete-operation
- PLE138,
- # invalid-metaclass
- PLE139,
- # dict-iter-missing-items
- PLE141,
- # await-outside-async
- PLE142,
- # unhashable-member
- PLE143,
- # invalid-unicode-codec
- PLE501,
- # bidirectional-unicode
- PLE502,
- # invalid-character-backspace
- PLE510,
- # invalid-character-carriage-return
- PLE511,
- # invalid-character-sub
- PLE512,
- # invalid-character-esc
- PLE513,
- # invalid-character-nul
- PLE514,
- # invalid-character-zero-width-space
- PLE515,
- # import-error
- PLE401,
- # possibly-used-before-assignment
- PLE606,
- # invalid-name
- PLC103,
- # disallowed-name
- PLC104,
- # typevar-name-incorrect-variance
- PLC105,
- # empty-docstring
- PLC112,
- # missing-module-docstring
- PLC114,
- # missing-class-docstring
- PLC115,
- # missing-function-docstring
- PLC116,
- # unnecessary-negation
- PLC117,
- # singleton-comparison
- PLC121,
- # unidiomatic-typecheck
- PLC123,
- # typevar-double-variance
- PLC131,
- # typevar-name-mismatch
- PLC132,
- # consider-using-enumerate
- PLC200,
- # consider-iterating-dictionary
- PLC201,
- # bad-classmethod-argument
- PLC202,
- # bad-mcs-classmethod-argument
- PLC204,
- # single-string-used-for-slots
- PLC205,
- # consider-using-dict-items
- PLC206,
- # use-maxsplit-arg
- PLC207,
- # use-sequence-for-iteration
- PLC208,
- # consider-using-f-string
- PLC209,
- # line-too-long
- PLC301,
- # too-many-lines
- PLC302,
- # trailing-whitespace
- PLC303,
- # missing-final-newline
- PLC304,
- # trailing-newlines
- PLC305,
- # superfluous-parens
- PLC325,
- # unexpected-line-ending-format
- PLC328,
- # wrong-spelling-in-comment
- PLC401,
- # wrong-spelling-in-docstring
- PLC402,
- # invalid-characters-in-docstring
- PLC403,
- # multiple-imports
- PLC410,
- # wrong-import-order
- PLC411,
- # ungrouped-imports
- PLC412,
- # wrong-import-position
- PLC413,
- # useless-import-alias
- PLC414,
- # import-outside-toplevel
- PLC415,
- # use-implicit-booleaness-not-len
- PLC802,
- # use-implicit-booleaness-not-comparison
- PLC803,
- # unnecessary-dunder-call
- PLC801,
- # unnecessary-lambda-assignment
- PLC001,
- # unnecessary-direct-lambda-call
- PLC002,
- # raw-checker-failed
- PLI001,
- # bad-inline-option
- PLI010,
- # locally-disabled
- PLI011,
- # file-ignored
- PLI013,
- # suppressed-message
- PLI020,
- # useless-suppression
- PLI021,
- # deprecated-pragma
- PLI022,
- # use-symbolic-message-instead
- PLI023,
- # c-extension-no-member
- PLI101,
- # useless-option-value
- PLR022,
- # comparison-with-itself
- PLR124,
- # comparison-of-constants
- PLR133,
- # useless-object-inheritance
- PLR205,
- # property-with-parameters
- PLR206,
- # cyclic-import
- PLR401,
- # consider-using-from-import
- PLR402,
- # duplicate-code
- PLR801,
- # too-many-ancestors
- PLR901,
- # too-many-instance-attributes
- PLR902,
- # too-few-public-methods
- PLR903,
- # too-many-public-methods
- PLR904,
- # too-many-return-statements
- PLR911,
- # too-many-branches
- PLR912,
- # too-many-arguments
- PLR913,
- # too-many-locals
- PLR914,
- # too-many-statements
- PLR915,
- # too-many-boolean-expressions
- PLR916,
- # consider-merging-isinstance
- PLR701,
- # too-many-nested-blocks
- PLR702,
- # simplifiable-if-statement
- PLR703,
- # redefined-argument-from-local
- PLR704,
- # no-else-return
- PLR705,
- # consider-using-ternary
- PLR706,
- # trailing-comma-tuple
- PLR707,
- # stop-iteration-return
- PLR708,
- # simplify-boolean-expression
- PLR709,
- # inconsistent-return-statements
- PLR710,
- # useless-return
- PLR711,
- # consider-using-join
- PLR713,
- # consider-using-in
- PLR714,
- # chained-comparison
- PLR716,
- # consider-using-dict-comprehension
- PLR717,
- # consider-using-set-comprehension
- PLR718,
- # simplifiable-if-expression
- PLR719,
- # no-else-raise
- PLR720,
- # unnecessary-comprehension
- PLR721,
- # consider-using-sys-exit
- PLR722,
- # no-else-break
- PLR723,
- # no-else-continue
- PLR724,
- # super-with-arguments
- PLR725,
- # consider-using-generator
- PLR728,
- # use-a-generator
- PLR729,
- # consider-using-min-builtin
- PLR730,
- # consider-using-max-builtin
- PLR731,
- # consider-using-with
- PLR732,
- # use-list-literal
- PLR734,
- # use-dict-literal
- PLR735,
- # use-yield-from
- PLR737,
- # unknown-option-value
- PLW012,
- # unreachable
- PLW101,
- # dangerous-default-value
- PLW102,
- # pointless-statement
- PLW104,
- # pointless-string-statement
- PLW105,
- # expression-not-assigned
- PLW106,
- # unnecessary-pass
- PLW107,
- # unnecessary-lambda
- PLW108,
- # useless-else-on-loop
- PLW120,
- # exec-used
- PLW122,
- # eval-used
- PLW123,
- # using-constant-test
- PLW125,
- # missing-parentheses-for-call-in-test
- PLW126,
- # self-assigning-variable
- PLW127,
- # assert-on-string-literal
- PLW129,
- # duplicate-value
- PLW130,
- # pointless-exception-statement
- PLW133,
- # return-in-finally
- PLW134,
- # contextmanager-generator-missing-cleanup
- PLW135,
- # comparison-with-callable
- PLW143,
- # lost-exception
- PLW150,
- # nan-comparison
- PLW177,
- # assert-on-tuple
- PLW199,
- # attribute-defined-outside-init
- PLW201,
- # protected-access
- PLW212,
- # arguments-differ
- PLW221,
- # abstract-method
- PLW223,
- # super-init-not-called
- PLW231,
- # non-parent-init-called
- PLW233,
- # invalid-overridden-method
- PLW236,
- # arguments-renamed
- PLW237,
- # unused-private-member
- PLW238,
- # overridden-final-method
- PLW239,
- # subclassed-final-class
- PLW240,
- # useless-parent-delegation
- PLW246,
- # unnecessary-semicolon
- PLW301,
- # f-string-without-interpolation
- PLW309,
- # format-string-without-interpolation
- PLW310,
- # wildcard-import
- PLW401,
- # reimported
- PLW404,
- # import-self
- PLW406,
- # preferred-module
- PLW407,
- # misplaced-future
- PLW410,
- # fixme
- PLW511,
- # global-variable-not-assigned
- PLW602,
- # global-statement
- PLW603,
- # global-at-module-level
- PLW604,
- # unused-import
- PLW611,
- # unused-variable
- PLW612,
- # unused-argument
- PLW613,
- # unused-wildcard-import
- PLW614,
- # redefined-outer-name
- PLW621,
- # redefined-builtin
- PLW622,
- # undefined-loop-variable
- PLW631,
- # unbalanced-tuple-unpacking
- PLW632,
- # cell-var-from-loop
- PLW640,
- # possibly-unused-variable
- PLW641,
- # bare-except
- PLW702,
- # broad-except
- PLW703,
- # try-except-raise
- PLW706,
- # raise-missing-from
- PLW707,
- # raising-format-tuple
- PLW715,
- # wrong-exception-operation
- PLW716,
- # keyword-arg-before-vararg
- PLW113,
- # arguments-out-of-order
- PLW114,
- # non-str-assignment-to-dunder-name
- PLW115,
- # isinstance-second-argument-not-valid-type
- PLW116,
- # logging-not-lazy
- PLW201,
- # logging-format-interpolation
- PLW202,
- # logging-fstring-interpolation
- PLW203,
- # bad-format-string-key
- PLW300,
- # unused-format-string-key
- PLW301,
- # bad-format-string
- PLW302,
- # missing-format-argument-key
- PLW303,
- # unused-format-string-argument
- PLW304,
- # format-combined-specification
- PLW305,
- # missing-format-attribute
- PLW306,
- # invalid-format-index
- PLW307,
- # duplicate-string-formatting-argument
- PLW308,
- # anomalous-backslash-in-string
- PLW401,
- # anomalous-unicode-escape-in-string
- PLW402,
- # implicit-str-concat
- PLW404,
- # inconsistent-quotes
- PLW405,
- # redundant-u-string-prefix
- PLW406,
- # bad-open-mode
- PLW501,
- # boolean-datetime
- PLW502,
- # redundant-unittest-assert
- PLW503,
- # bad-thread-instantiation
- PLW506,
- # shallow-copy-environ
- PLW507,
- # invalid-envvar-default
- PLW508,
- # subprocess-popen-preexec-fn
- PLW509,
- # subprocess-run-check
- PLW510,
- # unspecified-encoding
- PLW514,
- # forgotten-debug-statement
- PLW515,
- # method-cache-max-size-none
- PLW518,
- # useless-with-lock
- PLW101,
- # non-ascii-file-name
- PLW402,
- # using-f-string-in-unsupported-version
- PLW601,
- # using-final-decorator-in-unsupported-version
- PLW602,
- # broad-exception-caught
- PLW718,
- # broad-exception-raised
- PLW719,
- # missing-timeout
- PLW101,
- # deprecated-module
- PLW901,
- # deprecated-argument
- PLW903,
- # deprecated-class
- PLW904,
- # deprecated-decorator
- PLW905,
- max-line-length = 200
|