Hello Pythonistas,
We’re delighted to announce that we now support analysis of the latest stable version of Python. This means that from the next release of SonarCloud and SonarLint, as well as from SonarQube 10.3, you can write Clean Code in Python 3.12’s new syntax.
We have also added 4 new rules supporting PEP 695 and PEP 701 syntax updates to f-strings (formatted strings), generic classes and generic functions:
- S6792: Generic classes should be defined using the type parameter syntax
- S6794: Type aliases should be declared with a
type
statement - S6796: Generic functions should be defined using the type parameter syntax
- S6799: f-strings should not be nested too deeply
See what’s coming up for Python in SonarLint, SonarQube and SonarCloud. We hope you enjoy these updates.
Jean