Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@innerlee
Created November 16, 2020 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save innerlee/7a0c67d9296232f327cb5a70ce75d740 to your computer and use it in GitHub Desktop.
Save innerlee/7a0c67d9296232f327cb5a70ce75d740 to your computer and use it in GitHub Desktop.

good checks

  • :raise-missing-from (W0707): Consider explicitly re-raising using the 'from' keyword
  • :simplifiable-if-expression (R1719): The if expression can be replaced with %s
  • :chained-comparison (R1716): Simplify chained comparison between the operands
  • :cyclic-import (R0401): Cyclic import (%s)
  • :no-self-use (R0201): Method could be a function
  • :useless-super-delegation (W0235): Useless super delegation in method %r
  • :dangerous-default-value (W0102): Dangerous default value %s as argument
  • :unnecessary-pass (W0107): Unnecessary pass statement
  • :superfluous-parens (C0325): Unnecessary parens after %r keyword
  • :dangerous-default-value (W0102): Dangerous default value %s as argument
  • :unnecessary-pass (W0107): Unnecessary pass statement
  • :superfluous-parens (C0325): Unnecessary parens after %r keyword
  • :unused-variable (W0612): Unused variable %r
  • :consider-using-in (R1714): Consider merging these comparisons with ""in"" to %r
  • :no-else-return (R1705): Unnecessary ""%s"" after ""return""
  • :inconsistent-return-statements (R1710): Either all return statements in a function should return an expression, or none of them should.
  • :consider-using-enumerate (C0200): Consider using enumerate instead of iterating with range and len

ok checks

  • :abstract-method (W0223): Method %r is abstract in class %r but is not overridden
  • :useless-object-inheritance (R0205): Class %r inherits from object, can be safely removed from bases in python3
  • :pointless-string-statement (W0105): String statement has no effect
  • :consider-using-enumerate (C0200): Consider using enumerate instead of iterating with range and len
  • :attribute-defined-outside-init (W0201): Attribute %r defined outside init
  • :unused-argument (W0613): Unused argument %r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment