-
-
Notifications
You must be signed in to change notification settings - Fork 162
Description
@maxkossek, Remember that the Tax-Calculator Python coding style is to use single quotes.
Originally posted by @martinholmer in #2943 (comment)
Add the pylint-quotes
package to environment.yml
and then include it in the cstest
in Makefile
to enforce single quote Pythons style. This would also require a new .pylintrc
file that specifies the types of quotes we want for these types of Python strings: string-quote
, triple-quote
, and docstring-quote
.
@martinholmer noted that to pass the initial test would require a significant number of changes to enforce the style in existing files:
The cost of enforcing this would be non-trivial as shown by these results:
(taxcalc-dev) Tax-Calculator> grep -r --include="*py" \" . | grep -v \"\"\" | wc -l 1215
There are a few lines that use double quotes in a situation in which both type of quotes are necessary.
Originally posted by @martinholmer in #2943 (comment)
The enforcement costs may not be worth it if this rule would require manual logic and exceptions for many files.