diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 00000000..647162e2 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,10 @@ +{ + "plugins": { + "marketplaces": [ + "PolicyEngine/policyengine-claude" + ], + "auto_install": [ + "country-models@policyengine-claude" + ] + } +} diff --git a/changelog_entry.yaml b/changelog_entry.yaml index e69de29b..b4658486 100644 --- a/changelog_entry.yaml +++ b/changelog_entry.yaml @@ -0,0 +1,4 @@ +- bump: minor + changes: + changed: + - Added policyengine-claude plugin auto-install configuration. diff --git a/policyengine_core/charts/formatting.py b/policyengine_core/charts/formatting.py index 8fcf536a..182774c0 100644 --- a/policyengine_core/charts/formatting.py +++ b/policyengine_core/charts/formatting.py @@ -1,7 +1,6 @@ import plotly.graph_objects as go from IPython.display import HTML - GREEN = "#29d40f" LIGHT_GREEN = "#C5E1A5" DARK_GREEN = "#558B2F" diff --git a/policyengine_core/populations/population.py b/policyengine_core/populations/population.py index a3c9f5aa..7a64b1bd 100644 --- a/policyengine_core/populations/population.py +++ b/policyengine_core/populations/population.py @@ -72,17 +72,13 @@ def check_period_validity( if period is None: stack = traceback.extract_stack() filename, line_number, function_name, line_of_code = stack[-3] - raise ValueError( - """ + raise ValueError(""" You requested computation of variable "{}", but you did not specify on which period in "{}:{}": {} When you request the computation of a variable within a formula, you must always specify the period as the second parameter. The convention is to call this parameter "period". For example: computed_salary = person('salary', period). See more information at . -""".format( - variable_name, filename, line_number, line_of_code - ) - ) +""".format(variable_name, filename, line_number, line_of_code)) def __call__( self,