Commit 7143dcc
Switch code formatter from Black to Ruff (#547)
* Switch code formatter from Black to Ruff
Replace black and linecheck with ruff for code formatting:
- Remove black[jupyter] and linecheck dependencies, add ruff>=0.9.0
- Update Makefile format target to use ruff format
- Replace lgeiger/black-action in CI with ruff format --check
- Add [tool.ruff] config with line-length=88 to pyproject.toml
- Add towncrier changelog fragment
- Reformat all files with ruff
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Reformat .github/bump_version.py with ruff
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent acdc685 commit 7143dcc
111 files changed
Lines changed: 179 additions & 410 deletions
File tree
- .github
- workflows
- changelog.d
- policyengine_canada
- data/datasets
- variables
- gov
- cra
- benefits
- ccb
- cwb
- disability_supplement
- old_age_security_pension
- deductions/child_care_expense
- tax/income
- credits
- climate_action
- dtc
- gst_credit
- provinces
- ab
- benefits/acfb
- tax/income/credits
- basic_personal_amount
- disability
- bc
- benefits/child_care
- tax/income
- credits
- basic_personal_amount
- bc_disability_credit
- bc_tax_reduction_credit
- bccatc
- pension_income_amount
- mb/tax/income
- benefits/child_benefit
- credits
- age_amount
- pension_amount
- nb
- benefits
- nbcb
- pension_benefit
- tax/income/credits/low_income_tax_reduction
- nl/tax/income/credit
- ns
- benefits/child_benefit
- tax/income
- credits
- age
- low_income_tax_reduction
- prc
- income_assistance
- eligibility/assets
- nu/tax/income
- benefits/nu_child_benefit
- credits
- on
- benefits/ocb
- subsidies/on_child_care_fee_subsidy
- tax
- grants/oshptg
- income
- credits
- lift
- noec
- oeptc
- ostc
- qc/tax/income/credits
- cce
- cost_of_living
- fa
- sa
- sk
- benefits/afb
- tax/income/credits/disability_amount
- yt
- benefits/yukon_child_benefit
- tax/income
- benefits/rebates/ygcpri
- credits
- childrens_arts_credit
- childrens_fitness_tax_credit
- household
- demographic/geographic/province
- income/individual
- person
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 | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 13 | + | |
18 | 14 | | |
19 | 15 | | |
20 | 16 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 23 | + | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 9 | + | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 9 | + | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 15 | + | |
20 | 16 | | |
0 commit comments