-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
configurationRelated to settings and configurationRelated to settings and configurationneeds-decisionAwaiting a decision from a maintainerAwaiting a decision from a maintainerruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
Summary
I really want to be able to use the COM812 rule, but our codebase contains a ton of code like the following:
some_string = gettext(
'This is a long string which '
'is marked for internationalization'
)
another_function(
some_long +
expression +
gets_passed
)While trailing commas do make a lot of sense for function calls that contain multiple arguments, for functions that take a single argument, requiring them muddies the syntax. I'd love to have an option for the flake8-commas plugin (something like [lint.flake8-commas] allow-single-arg-function-calls = true)
I'm happy to do the implementation for this, but I wanted to check in first to see if this is something that would be accepted.
tales-aparecida
Metadata
Metadata
Assignees
Labels
configurationRelated to settings and configurationRelated to settings and configurationneeds-decisionAwaiting a decision from a maintainerAwaiting a decision from a maintainerruleImplementing or modifying a lint ruleImplementing or modifying a lint rule