Closed gsnidero closed 1 year ago
Hi @gsnidero, thanks for reaching out. The avoid-single-character-names-variables
rule is based on the Google Python Style Guide, which we're trying to follow closely, and as a result I think this trigger is correct, so I'm going to close this issue.
If you'd prefer different behaviour, you can disable this rule and instead write your own into your .sourcery.yaml
config file - the documentation here and the rule definition here should help get you started.
Description
A variable named
_
(underscore) sometimes triggers the "Avoid single character names (avoid-single-character-names-variables)" rule.Code snippet that reproduces issue
Debug Information
IDE Version: VSCode Version: 1.74.3 (Universal) Sourcery Version: v1.0.3 Operating system and Version: Apple M1 Pro, macOS 13.1 (22C65),