StyleΒΆ
Rules for code style and structure.
Enable with:
enable = ["style"]
Rule |
Message |
Python |
Autofix |
|---|---|---|---|
Do not annotate self in instance methods. |
Any |
Yes |
|
Inline exception message strings instead of assigning throwaway variables. |
Any |
Yes |
|
Do not translate exceptions by passing str(exc); use a stable message and chain the cause. |
Any |
No |
|
Class names must not start with an underscore prefix. |
Any |
No |
|
Define public methods before private helpers in behavior classes. |
Any |
No |