Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
fixed:
- Add 2026-27 Scottish income tax threshold freeze to baseline (higher, advanced, and top rates) per Scottish Budget 2025-26.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import yaml


# Years to calculate rates for
CALCULATION_YEARS = range(2026, 2031)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ brackets:
2023-04-06: 31_092
2024-04-06: 31_092
2025-04-06: 31_092
# Scottish Budget 2025-26 announced freeze through 2026-27
2026-04-06: 31_092
metadata:
uprating: gov.economic_assumptions.indices.obr.consumer_price_index
rate:
Expand All @@ -57,6 +59,8 @@ brackets:
2023-04-06: 125_140
2024-04-06: 62_430
2025-04-06: 62_430
# Scottish Budget 2025-26 announced freeze through 2026-27
2026-04-06: 62_430
metadata:
uprating: gov.economic_assumptions.indices.obr.consumer_price_index
rate:
Expand All @@ -69,6 +73,8 @@ brackets:
2017-04-06: null
2024-04-06: 125_140
2025-04-06: 125_140
# Scottish Budget 2025-26 announced freeze through 2026-27
2026-04-06: 125_140
metadata:
uprating: gov.economic_assumptions.indices.obr.consumer_price_index
rate:
Expand All @@ -81,3 +87,5 @@ metadata:
reference:
- title: GOV.UK
href: https://www.gov.uk/government/publications/rates-and-allowances-income-tax/income-tax-rates-and-allowances-current-and-past
- title: Scottish Budget 2025-26 - Higher rate threshold freeze
href: https://www.gov.scot/publications/scottish-budget-2025-26/
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from pathlib import Path
from policyengine_uk import Microsimulation


# Load configuration from YAML file
config_path = Path(__file__).parent / "reforms_config.yaml"
with open(config_path, "r") as f:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import pandas as pd
from policyengine_uk import Microsimulation


# Policy year when the salary sacrifice cap takes effect
POLICY_YEAR = 2030 # Use 2030 to ensure cap is active (cap starts 2029-04-06)

Expand Down
1 change: 0 additions & 1 deletion policyengine_uk/tests/test_behavioral_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from policyengine_uk import Microsimulation
from policyengine_uk.model_api import Scenario


# Check if HF token is available for data-dependent tests
HF_TOKEN_AVAILABLE = bool(os.environ.get("HUGGING_FACE_TOKEN"))
requires_hf_data = pytest.mark.skipif(
Expand Down
6 changes: 2 additions & 4 deletions policyengine_uk/utils/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,12 @@ def create_waterfall_change_chart(


def add_fonts():
fonts = HTML(
"""
fonts = HTML("""
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet">
"""
)
""")
return display_html(fonts)


Expand Down
1 change: 0 additions & 1 deletion policyengine_uk/variables/gov/hmrc/fuel_duty/fuel_duty.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from policyengine_uk.model_api import *


STATUTORY_CONSUMER_INCIDENCE = 0.5
ECONOMIC_CONSUMER_INCIDENCE = 1

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from policyengine_uk.model_api import *


"""
The section detailing some tax reliefs applicable is section 24 of the Act, but others are described in the 2003 and 2005 Acts as deductions from the respective components.
"""
Expand Down