The Python Analyzer now has complete Python 3.10 support, there are 7 new issues and 14 new Autofix available, and many issue descriptions have been improved.
Python 3.10 support
Python 3.10 added match
statements to the language, along with other small syntax updates. DeepSource now supports this syntax as well, so you can use it on your latest projects and ensure the highest code quality.
New Issues
-
PY-W0069 - Commented out code
-
PY-W0070 - Appending to a list immediately following definition
-
PY-W0071 - Adding to a set immediately following definition
-
PY-W0072 - Adding to a dictionary immediately following definition
-
PY-W0073 - Anomalous backslash in string
-
PY-W0074 - Loop can be refactored to
any()
call -
PY-W0075 - Loop can be refactored to
all()
call
New Autofix
-
PYL-C0412 - Group imoprts from same packages
-
PYL-R1714 - Replace multiple
==
checks within
-
PY-W0024 - Fix
type()
operand placement -
PY-W0058 - Remove unnecessary list usage during set building
-
PY-W0069 - Remove commented out code
-
PY-W0070 - Merge append items into list definition
-
PY-W0071 - Merge append items into set definition
-
PY-W0072 - Merge append items into dictionary definition
-
PY-W0073 - Escape anomalous backslash in string
-
PY-W0074 - Refactor loop to
any()
call -
PY-W0075 - Refactor loop to
all()
call -
PY-W0800 - Fix logical operators in sqlalchemy column expressions
-
FLK-W292 - Add missing newline at end of file
-
FLK-W293 - Remove whitespace on blank line
Issue description improvements
Over 100 Python issue descriptions have been added or improved with fixes or better examples in the past 3 months. Many good issues have also been added to the recommended issues list.
You can find all issues, and their descriptions in the Python section of DeepSource Directory.