Skip to content

Commit 929cd8a

Browse files
committed
pylint and remaining mypy ignores
1 parent 61e460e commit 929cd8a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.mypy.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ explicit_package_bases = True
77

88
# Check explanations of error codes
99
# https://mypy.readthedocs.io/en/stable/error_code_list.html
10-
disable_error_code = attr-defined, index, import, call-arg, misc, dict-item, arg-type, operator, call-overload, assignment, list-item
10+
disable_error_code = attr-defined, index, import, call-arg, misc, dict-item, arg-type, operator, call-overload, assignment, list-item, var-annotated, valid-type

.pylintrc

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
[pylint]
2+
3+
# suggested by pylint docs for joint usage with other tools
4+
# http://pylint.pycqa.org/en/latest/faq.html?highlight=pylintrc#i-am-using-another-popular-linter-alongside-pylint-which-messages-should-i-disable-to-avoid-duplicates
5+
26
options = unneeded-not, line-too-long, unnecessary-semicolon, trailing-whitespace, missing-final-newline, bad-indentation, multiple-statements, bare-except
37
ignore = CVS .git conda env __pycache__ .pytest_cache .mypy_cache
48

5-
disable = no-member, redefined-outer-name, invalid-name, consider-using-f-string, wrong-import-order, missing-function-docstring, missing-method-docstring, missing-class-docstring, attribute-defined-outside-init, no-else-return, cell-var-from-loop, import-error, pointless-string-statement, unused-import, redefined-builtin, superfluous-parens, unused-variable, too-many-locals, consider-using-from-import, consider-using-enumerate, no-name-in-module, too-many-arguments, too-many-instance-attributes, import-outside-toplevel, too-few-public-methods, cyclic-import, missing-module-docstring, unidiomatic-typecheck, dangerous-default-value, unused-argument, use-dict-literal, exec-used, no-self-use, too-many-statements, ungrouped-imports, consider-using-sys-exit, too-many-statements, redundant-u-string-prefix, protected-access, consider-using-dict-comprehension, no-else-raise, too-many-nested-blocks, use-a-generator, reimported, undefined-variable, too-many-branches, raise-missing-from, trailing-comma-tuple, unspecified-encoding, consider-using-with, f-string-without-interpolation, broad-except, unnecessary-pass, global-statement, too-many-lines, consider-merging-isinstance, redefined-argument-from-local, global-variable-undefined, use-implicit-booleaness-not-len, inconsistent-return-statements, consider-using-in, inconsistent-return-statements, keyword-arg-before-vararg, consider-using-dict-items, import-self, fixme, c-extension-no-member, too-many-public-methods, consider-iterating-dictionary, consider-using-max-builtin, super-with-arguments, expression-not-assigned, unnecessary-comprehension, no-self-argument, chained-comparison, undefined-loop-variable, empty-docstring, use-maxsplit-arg, pointless-statement, wrong-import-position, redundant-unittest-assert, eval-used, not-callable, invalid-unary-operand-type, consider-using-generator, R0801
9+
disable = no-member, redefined-outer-name, invalid-name, consider-using-f-string, wrong-import-order, missing-function-docstring, missing-method-docstring, missing-class-docstring, attribute-defined-outside-init, no-else-return, cell-var-from-loop, import-error, pointless-string-statement, unused-import, redefined-builtin, superfluous-parens, unused-variable, too-many-locals, consider-using-from-import, consider-using-enumerate, no-name-in-module, too-many-arguments, too-many-instance-attributes, import-outside-toplevel, too-few-public-methods, cyclic-import, missing-module-docstring, unidiomatic-typecheck, dangerous-default-value, unused-argument, use-dict-literal, exec-used, no-self-use, too-many-statements, ungrouped-imports, consider-using-sys-exit, too-many-statements, redundant-u-string-prefix, protected-access, consider-using-dict-comprehension, no-else-raise, too-many-nested-blocks, use-a-generator, reimported, undefined-variable, too-many-branches, raise-missing-from, trailing-comma-tuple, unspecified-encoding, consider-using-with, f-string-without-interpolation, broad-except, unnecessary-pass, global-statement, too-many-lines, consider-merging-isinstance, redefined-argument-from-local, global-variable-undefined, use-implicit-booleaness-not-len, inconsistent-return-statements, consider-using-in, inconsistent-return-statements, keyword-arg-before-vararg, consider-using-dict-items, import-self, fixme, c-extension-no-member, too-many-public-methods, consider-iterating-dictionary, consider-using-max-builtin, super-with-arguments, expression-not-assigned, unnecessary-comprehension, no-self-argument, chained-comparison, undefined-loop-variable, empty-docstring, use-maxsplit-arg, pointless-statement, wrong-import-position, redundant-unittest-assert, eval-used, not-callable, invalid-unary-operand-type, consider-using-generator, R0801, unnecessary-dunder-call, logging-fstring-interpolation, consider-using-get, useless-object-inheritance
610

711
const-naming-style = snake_case
812
method-naming-style = PascalCase

tox.ini

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
[pytest]
22
addopts = --doctest-modules --cov --cov-report xml --cov-config=tox.ini --ignore=conda --ignore=env --ignore=.git --ignore=__pycache__ --ignore=plugins/gitolite/
33

4-
# as suggested by pylint docs for joint usage with other tools
5-
# http://pylint.pycqa.org/en/latest/faq.html?highlight=pylintrc#i-am-using-another-popular-linter-alongside-pylint-which-messages-should-i-disable-to-avoid-duplicates
6-
7-
[pylint]
8-
options = unneeded-not, line-too-long, unnecessary-semicolon, trailing-whitespace, missing-final-newline, bad-indentation, multiple-statements, bare-except, no-member, unnecessary-dunder-call, logging-fstring-interpolation, consider-using-get, useless-object-inheritance
9-
ignore = CVS .git conda env __pycache__ .pytest_cache .mypy_cache
4+
# [pylint]
5+
# this config has to go to .pylintrc at the moment
106

117
[autopep8]
128
max-line-length = 120

0 commit comments

Comments
 (0)