Closed Josverl closed 1 year ago
I found the same issue and am using:
Hello @Josverl and @gsnidero! Thank you for reporting this issue.
We are restructuring how Sourcery works internally, and hopefully this issue will be sorted out naturally in a few weeks.
Until then, I submitted a quick-fix to sourcery-rules
to fix the bug you reported: https://github.com/sourcery-ai/sourcery-rules/pull/9.
Thanks for the quick fix,
Do I need to change my config in order to use this, if so; How ?
Hey @Josverl!
It depends on how you are using the GPSG rules:
google-python-style-guide.yaml
config file into a local .sourcery.yaml
file, then you will need to edit it to include the fix I submitted to that repository: adding the extra not arg.equals("*") and not arg.equals("/")
to the condition
field of require-parameter-annotation
;I will let you know once the PR is merged and also once we release the fix.
Hello @Josverl and @gsnidero!
The fix for this issue was just merged into the https://github.com/sourcery-ai/sourcery-rules repository. The next Sourcery release (probably v1.0.5) will ship with the fix.
Checklist
Description
sourcery should not require typehints for positional or keyword-only ( '*' or '/' ) parameters
Annotate parameter * in public function/method publish with a type
Note that there are a few other params that could use a type annotation, however '*' should not be annotated.
config:
Code snippet that reproduces issue
Debug Information
IDE Version: VScode
Sourcery Version: Sourcery 1.0.3
Operating system and Version: Windows 11