Commit f863d05
Switch from black to ruff format (#1515)
* Switch from black to ruff format
Replace black formatter with ruff format across pyproject.toml, Makefile,
CI workflows, and CLAUDE.md. Reformat entire codebase with ruff (line-length=88).
No lint rules added — ruff is used for formatting only.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Exclude malformed notebook from ruff format check
The care-to-learn.ipynb has an invalid notebook schema that causes
ruff to exit with code 2, failing CI.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8b21661 commit f863d05
256 files changed
Lines changed: 670 additions & 1570 deletions
File tree
- .github
- workflows
- changelog.d
- docs/book
- programs/gov
- dcms/bbc
- dwp
- hmrc
- ofgem
- revenue_scotland
- wra
- validation
- policyengine_uk
- data
- dynamics
- parameters/gov
- dwp
- LHA
- state_pension/triple_lock
- economic_assumptions
- hmrc/fuel_duty
- reforms
- cps
- policyengine
- scotland
- scenarios
- tests
- microsimulation
- utils
- water
- variables
- contrib
- cec
- labour
- policyengine
- employer_ni
- ubi_center
- basic_income
- gov
- dcms/bbc/tv_licence
- dfe
- care_to_learn
- extended_childcare_entitlement
- conditions
- targeted_childcare_entitlement
- universal_childcare_entitlement
- dhsc/outpatient
- dwp
- housing_benefit
- applicable_income
- entitlement
- pension_credit
- guarantee_credit/minimum_guarantee/additional
- savings_credit
- universal_credit
- child_element
- disability/severe_disability
- childcare_element
- disability_element/limited_work_ability
- income
- income_floor
- standard_allowance
- work_allowance
- hmrc
- capital_gains_tax
- fuel_duty
- income_tax
- allowances
- received_allowances
- bases
- bracketized_liability
- bracketized_savings_income
- deductions
- liability
- national_insurance
- class_1
- class_4
- pensions
- student_loans
- tax_free_childcare
- conditions
- revenue_scotland
- simulation/labor_supply_response
- social_security_scotland
- treasury
- cost_of_living_support
- energy_bills_rebate
- price_cap_subsidy
- wra
- household
- consumption
- demographic
- income
- wealth
- input
- consumption
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 22 | + | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
| 131 | + | |
133 | 132 | | |
134 | 133 | | |
135 | | - | |
136 | | - | |
| 134 | + | |
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
| |||
334 | 332 | | |
335 | 333 | | |
336 | 334 | | |
337 | | - | |
338 | | - | |
339 | | - | |
| 335 | + | |
340 | 336 | | |
341 | 337 | | |
342 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 170 | + | |
| 171 | + | |
176 | 172 | | |
177 | 173 | | |
178 | 174 | | |
| |||
1506 | 1502 | | |
1507 | 1503 | | |
1508 | 1504 | | |
1509 | | - | |
1510 | | - | |
1511 | | - | |
1512 | | - | |
1513 | | - | |
1514 | | - | |
| 1505 | + | |
| 1506 | + | |
1515 | 1507 | | |
1516 | 1508 | | |
1517 | 1509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 197 | + | |
200 | 198 | | |
201 | 199 | | |
202 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
| 178 | + | |
181 | 179 | | |
182 | 180 | | |
183 | 181 | | |
| |||
189 | 187 | | |
190 | 188 | | |
191 | 189 | | |
192 | | - | |
193 | | - | |
194 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
195 | 193 | | |
196 | 194 | | |
197 | 195 | | |
| |||
302 | 300 | | |
303 | 301 | | |
304 | 302 | | |
305 | | - | |
306 | | - | |
307 | | - | |
| 303 | + | |
308 | 304 | | |
309 | 305 | | |
310 | 306 | | |
| |||
0 commit comments