Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosmetic changes to Calculator.reform_documentation function #1600

Merged
merged 1 commit into from
Oct 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions taxcalc/calculate.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ def reform_documentation(params):
doc: String
the documentation for the policy reform specified in params
"""
# pylint: disable=too-many-statements
# pylint: disable=too-many-statements,too-many-branches

# nested function used only in reform_documentation
def param_doc(years, change, base):
"""
Expand All @@ -464,7 +465,7 @@ def param_doc(years, change, base):
-------
doc: String
"""
# pylint: disable=too-many-branches,too-many-nested-blocks

# nested function used only in param_doc
def lines(text, num_indent_spaces, max_line_length=77):
"""
Expand Down Expand Up @@ -493,7 +494,9 @@ def lines(text, num_indent_spaces, max_line_length=77):
line = line[:-1] + '\n'
line_list.append(line)
return line_list

# begin main logic of param_doc
# pylint: disable=too-many-nested-blocks
assert len(years) == len(change.keys())
basevals = getattr(base, '_vals', None)
assert isinstance(basevals, dict)
Expand Down Expand Up @@ -554,6 +557,7 @@ def lines(text, num_indent_spaces, max_line_length=77):
# all Growdiff parameters have zero as default value
doc += ' baseline_value: 0.0\n'
return doc

# begin main logic of reform_documentation
# create Policy object with pre-reform (i.e., baseline) values
# ... create gdiff_baseline object
Expand Down