You can now configure Sourcery directly from VS Code. Just click the Sourcery button in the VS Code status bar at the bottom.
Then you can login, read the Getting Started instructions or select Sourcery rules to enable and disable
Sourcery now parses and understands Python 3.10 code including the all important
match
syntax.
You can now easily run the Google Python Style Guide.
Enable it directly from config with:
rule_settings:
enable:
- default # Continue to run the default rules
- google-python-style-guide # Add in the additional
Or run it directly from CLI with
sourcery review --enable google-python-style-guide PATH
rule_settings:
enable:
- default # Continue to run the default rules
- google-python-style-guide # Add in the additional
sourcery review --enable google-python-style-guide PATH
match
statements.with
statements containing multiple bracketed context
managers..sourcery.yaml
keys:
refactor
-> rule_settings
rule_settings.include
-> rule_settings.enable
rule_settings.skip
-> rule_settings.disable
^\[A-Za-z\]\[A-Za-z0-9-\_/:\]\*$
refactor
-> rule_settings
and other config keys when
adding disable
rule ids from IDEs