Autofix additions - Python #1

At the time of writing this, DeepSource can automatically fix 16 issues.
Here’s a comprehensive list of those issues:

  • PTC-W0027 - f-string used without any expression
  • PYL-W0611 - Module imported but unused
  • PTC-W0014 - Debugger activation detected
  • PTC-W0016 - Unnecessary comprehension
  • PTC-W0019 - Unnecessary call
  • PYL-W0102 - Dangerous default argument
  • PTC-W0023 - Bad comparison test
  • PTC-W0018 - Unnecessary literal
  • PTC-W0020 - Unnecessary typecast
  • PYL-C1801 - Built-in function len used as condition
  • FLK-F901 - raise NotImplemented should be raise NotImplementedError
  • PYL-W0613 - Function contains unused argument
  • BAN-B101 - Assert statement used outside of tests
  • PTC-W0013 - Debugger import detected
  • PYL-W0612 - Unused variable found
  • PYL-R0201 - No use of self
1 Like