Home What is Linting? PyLint Messages About

Pylint Online

Check your python code with Pylint or Flake8. PEP8 requirements.

Also autoformatting with BLACK.

Pythons Pylint online checker and Flake8 online checker. Tools For Style Guide Enforcement. Check your code for PEP8 requirements using pylint. Plus auto formats with black. Black is the uncompromising Python code formatter.



you can disable by message type or/and message id
e.g. pylint filename --disable=W0601,C0102,C,R

Message Type
[R]efactor for a "good practice" metric violation
[C]onvention for coding standard violation
[W]arning for stylistic problems, or minor programming issues
[E]rror for important programming issues (i.e. most probably bug)
[F]atal for errors which prevented further processing

Error Codes *updated for pylint version 2.2.0
e.g. pylint --list-msgs

msg_id message
(C0102) blacklisted-name
(C0103) invalid-name
(C0111) missing-docstring
(C0112) empty-docstring
(C0113) unneeded-not
(C0121) singleton-comparison
(C0122) misplaced-comparison-constant
(C0123) unidiomatic-typecheck
(C0200) consider-using-enumerate
(C0201) consider-iterating-dictionary
(C0202) bad-classmethod-argument
(C0203) bad-mcs-method-argument
(C0204) bad-mcs-classmethod-argument
(C0205) single-string-used-for-slots
(C0301) line-too-long
(C0302) too-many-lines
(C0303) trailing-whitespace
(C0304) missing-final-newline
(C0305) trailing-newlines
(C0321) multiple-statements
(C0325) superfluous-parens
(C0326) bad-whitespace
(C0327) mixed-line-endings
(C0328) unexpected-line-ending-format
(C0330) bad-continuation
(C0401) wrong-spelling-in-comment
(C0402) wrong-spelling-in-docstring
(C0403) invalid-characters-in-docstring
(C0410) multiple-imports
(C0411) wrong-import-order
(C0412) ungrouped-imports
(C0413) wrong-import-position
(C0414) useless-import-alias
(C1801) len-as-condition
(E0001) syntax-error
(E0011) unrecognized-inline-option
(E0012) bad-option-value
(E0100) init-is-generator
(E0101) return-in-init
(E0102) function-redefined
(E0103) not-in-loop
(E0104) return-outside-function
(E0105) yield-outside-function
(E0107) nonexistent-operator
(E0108) duplicate-argument-name
(E0110) abstract-class-instantiated
(E0111) bad-reversed-sequence
(E0112) too-many-star-expressions
(E0113) invalid-star-assignment-target
(E0114) star-needs-assignment-target
(E0115) nonlocal-and-global
(E0116) continue-in-finally
(E0117) nonlocal-without-binding
(E0118) used-prior-global-declaration
(E0119) misplaced-format-function
(E0202) method-hidden
(E0203) access-member-before-definition
(E0211) no-method-argument
(E0213) no-self-argument
(E0236) invalid-slots-object
(E0237) assigning-non-slot
(E0238) invalid-slots
(E0239) inherit-non-class
(E0240) inconsistent-mro
(E0241) duplicate-bases
(E0301) non-iterator-returned
(E0302) unexpected-special-method-signature
(E0303) invalid-length-returned
(E0401) import-error
(E0402) relative-beyond-top-level
(E0601) used-before-assignment
(E0602) undefined-variable
(E0603) undefined-all-variable
(E0604) invalid-all-object
(E0611) no-name-in-module
(E0632) unbalanced-tuple-unpacking
(E0633) unpacking-non-sequence
(E0701) bad-except-order
(E0702) raising-bad-type
(E0703) bad-exception-context
(E0704) misplaced-bare-raise
(E0710) raising-non-exception
(E0711) notimplemented-raised
(E0712) catching-non-exception
(E1003) bad-super-call
(E1101) no-member
(E1102) not-callable
(E1111) assignment-from-no-return
(E1120) no-value-for-parameter
(E1121) too-many-function-args
(E1123) unexpected-keyword-arg
(E1124) redundant-keyword-arg
(E1125) missing-kwoa
(E1126) invalid-sequence-index
(E1127) invalid-slice-index
(E1128) assignment-from-none
(E1129) not-context-manager
(E1130) invalid-unary-operand-type
(E1131) unsupported-binary-operation
(E1132) repeated-keyword
(E1133) not-an-iterable
(E1134) not-a-mapping
(E1135) unsupported-membership-test
(E1136) unsubscriptable-object
(E1137) unsupported-assignment-operation
(E1138) unsupported-delete-operation
(E1139) invalid-metaclass
(E1140) unhashable-dict-key
(E1200) logging-unsupported-format
(E1201) logging-format-truncated
(E1205) logging-too-many-args
(E1206) logging-too-few-args
(E1300) bad-format-character
(E1301) truncated-format-string
(E1302) mixed-format-string
(E1303) format-needs-mapping
(E1304) missing-format-string-key
(E1305) too-many-format-args
(E1306) too-few-format-args
(E1310) bad-str-strip-call
(E1507) invalid-envvar-value
(E1601) print-statement
(E1602) parameter-unpacking
(E1603) unpacking-in-except
(E1604) old-raise-syntax
(E1605) backtick
(E1700) yield-inside-async-function
(E1701) not-async-context-manager
(F0001) fatal
(F0002) astroid-error
(F0010) parse-error
(F0202) method-check-failed
(I0001) raw-checker-failed
(I0010) bad-inline-option
(I0011) locally-disabled
(I0012) locally-enabled
(I0013) file-ignored
(I0020) suppressed-message
(I0021) useless-suppression
(I0022) deprecated-pragma
(I0023) use-symbolic-message-instead
(I1101) c-extension-no-member
(R0123) literal-comparison
(R0124) comparison-with-itself
(R0201) no-self-use
(R0202) no-classmethod-decorator
(R0203) no-staticmethod-decorator
(R0205) useless-object-inheritance
(R0401) cyclic-import
(R0801) duplicate-code
(R0901) too-many-ancestors
(R0902) too-many-instance-attributes
(R0903) too-few-public-methods
(R0904) too-many-public-methods
(R0911) too-many-return-statements
(R0912) too-many-branches
(R0913) too-many-arguments
(R0914) too-many-locals
(R0915) too-many-statements
(R0916) too-many-boolean-expressions
(R1701) consider-merging-isinstance
(R1702) too-many-nested-blocks
(R1703) simplifiable-if-statement
(R1704) redefined-argument-from-local
(R1705) no-else-return
(R1706) consider-using-ternary
(R1707) trailing-comma-tuple
(R1708) stop-iteration-return
(R1709) simplify-boolean-expression
(R1710) inconsistent-return-statements
(R1711) useless-return
(R1712) consider-swap-variables
(R1713) consider-using-join
(R1714) consider-using-in
(R1715) consider-using-get
(R1716) chained-comparison
(R1717) consider-using-dict-comprehension
(R1718) consider-using-set-comprehension
(W0101) unreachable
(W0102) dangerous-default-value
(W0104) pointless-statement
(W0105) pointless-string-statement
(W0106) expression-not-assigned
(W0107) unnecessary-pass
(W0108) unnecessary-lambda
(W0109) duplicate-key
(W0111) assign-to-new-keyword
(W0120) useless-else-on-loop
(W0122) exec-used
(W0123) eval-used
(W0124) confusing-with-statement
(W0125) using-constant-test
(W0143) comparison-with-callable
(W0150) lost-exception
(W0199) assert-on-tuple
(W0201) attribute-defined-outside-init
(W0211) bad-staticmethod-argument
(W0212) protected-access
(W0221) arguments-differ
(W0222) signature-differs
(W0223) abstract-method
(W0231) super-init-not-called
(W0232) no-init
(W0233) non-parent-init-called
(W0235) useless-super-delegation
(W0301) unnecessary-semicolon
(W0311) bad-indentation
(W0312) mixed-indentation
(W0401) wildcard-import
(W0402) deprecated-module
(W0404) reimported
(W0406) import-self
(W0410) misplaced-future
(W0511) fixme
(W0601) global-variable-undefined
(W0602) global-variable-not-assigned
(W0603) global-statement
(W0604) global-at-module-level
(W0611) unused-import
(W0612) unused-variable
(W0613) unused-argument
(W0614) unused-wildcard-import
(W0621) redefined-outer-name
(W0622) redefined-builtin
(W0623) redefine-in-handler
(W0631) undefined-loop-variable
(W0640) cell-var-from-loop
(W0641) possibly-unused-variable
(W0642) self-cls-assignment
(W0702) bare-except
(W0703) broad-except
(W0705) duplicate-except
(W0706) try-except-raise
(W0711) binary-op-exception
(W0715) raising-format-tuple
(W1113) keyword-arg-before-vararg
(W1201) logging-not-lazy
(W1202) logging-format-interpolation
(W1203) logging-fstring-interpolation
(W1300) bad-format-string-key
(W1301) unused-format-string-key
(W1302) bad-format-string
(W1303) missing-format-argument-key
(W1304) unused-format-string-argument
(W1305) format-combined-specification
(W1306) missing-format-attribute
(W1307) invalid-format-index
(W1401) anomalous-backslash-in-string
(W1402) anomalous-unicode-escape-in-string
(W1501) bad-open-mode
(W1503) redundant-unittest-assert
(W1505) deprecated-method
(W1506) bad-thread-instantiation
(W1507) shallow-copy-environ
(W1508) invalid-envvar-default
(W1509) subprocess-popen-preexec-fn
(W1601) apply-builtin
(W1602) basestring-builtin
(W1603) buffer-builtin
(W1604) cmp-builtin
(W1605) coerce-builtin
(W1606) execfile-builtin
(W1607) file-builtin
(W1608) long-builtin
(W1609) raw_input-builtin
(W1610) reduce-builtin
(W1611) standarderror-builtin
(W1612) unicode-builtin
(W1613) xrange-builtin
(W1614) coerce-method
(W1615) delslice-method
(W1616) getslice-method
(W1617) setslice-method
(W1618) no-absolute-import
(W1619) old-division
(W1620) dict-iter-method
(W1621) dict-view-method
(W1622) next-method-called
(W1623) metaclass-assignment
(W1624) indexing-exception
(W1625) raising-string
(W1626) reload-builtin
(W1627) oct-method
(W1628) hex-method
(W1629) nonzero-method
(W1630) cmp-method
(W1632) input-builtin
(W1633) round-builtin
(W1634) intern-builtin
(W1635) unichr-builtin
(W1636) map-builtin-not-iterating
(W1637) zip-builtin-not-iterating
(W1638) range-builtin-not-iterating
(W1639) filter-builtin-not-iterating
(W1640) using-cmp-argument
(W1641) eq-without-hash
(W1642) div-method
(W1643) idiv-method
(W1644) rdiv-method
(W1645) exception-message-attribute
(W1646) invalid-str-codec
(W1647) sys-max-int
(W1648) bad-python3-import
(W1649) deprecated-string-function
(W1650) deprecated-str-translate-call
(W1651) deprecated-itertools-function
(W1652) deprecated-types-field
(W1653) next-method-defined
(W1654) dict-items-not-iterating
(W1655) dict-keys-not-iterating
(W1656) dict-values-not-iterating
(W1657) deprecated-operator-function
(W1658) deprecated-urllib-function
(W1659) xreadlines-attribute
(W1660) deprecated-sys-function
(W1661) exception-escape
(W1662) comprehension-escape