-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add huurtoeslag 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
08dbc7c
commit b4f4ac6
Showing
67 changed files
with
3,152 additions
and
1,821 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Machine Law Codebase Guidelines | ||
|
||
## Commands | ||
- Run all tests: `uv run behave features --no-capture -v --define log_level=DEBUG` | ||
- Run specific feature: `uv run behave features/zorgtoeslag.feature` | ||
- Lint code: `ruff check` and `ruff format` | ||
- Run pre-commit hooks: `pre-commit run --all-files` | ||
- Validate schemas: `./script/validate` | ||
- Run web interface: `uv run web/main.py` (available at http://0.0.0.0:8000) | ||
- Run simulations: `uv run simulate.py` | ||
|
||
## Code Style | ||
- Python 3.12+ | ||
- Indentation: 4 spaces (Python), 2 spaces (YAML) | ||
- Line length: 120 characters | ||
- Naming: snake_case (variables/functions), PascalCase (classes), UPPER_CASE (constants) | ||
- Imports: stdlib → third-party → local, sorted alphabetically within groups | ||
- Type annotations: required for all function parameters and return values | ||
- Error handling: specific exceptions, contextual logging, fallback values | ||
- YAML: structured hierarchies with explicit types for law definitions | ||
- Architecture: modular, service-oriented with event-driven components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html lang="nl"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%sveltekit.assets%/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
%sveltekit.head% | ||
</head> | ||
<body data-sveltekit-preload-data="hover"> | ||
<div style="display: contents">%sveltekit.body%</div> | ||
</body> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%sveltekit.assets%/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
%sveltekit.head% | ||
</head> | ||
<body data-sveltekit-preload-data="hover"> | ||
<div style="display: contents">%sveltekit.body%</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Feature: Berekening Huurtoeslag | ||
Als burger | ||
Wil ik weten of ik recht heb op huurtoeslag | ||
Zodat ik de juiste toeslag kan ontvangen | ||
|
||
Background: | ||
Given de datum is "2025-02-01" | ||
|
||
Scenario: Persoon onder 18 heeft geen recht op huurtoeslag | ||
Given een persoon met BSN "111111111" | ||
And de volgende RvIG personen gegevens: | ||
| bsn | geboortedatum | verblijfsadres | land_verblijf | | ||
| 111111111 | 2008-01-01 | Voorstraat 1, Utrecht | NEDERLAND | | ||
And de volgende RvIG relaties gegevens: | ||
| bsn | partnerschap_type | partner_bsn | | ||
| 111111111 | GEEN | null | | ||
And met een kale huur 500 en servicekosten 40 waarvan 40 meetellen | ||
When de wet_op_de_huurtoeslag wordt uitgevoerd door TOESLAGEN | ||
Then is niet voldaan aan de voorwaarden | ||
|
||
Scenario: Alleenstaande met laag inkomen en hogere huur | ||
Given een persoon met BSN "222222222" | ||
And de volgende RvIG personen gegevens: | ||
| bsn | geboortedatum | verblijfsadres | land_verblijf | | ||
| 222222222 | 1990-01-01 | Voorstraat 1, Utrecht | NEDERLAND | | ||
And de volgende RvIG relaties gegevens: | ||
| bsn | partnerschap_type | partner_bsn | | ||
| 222222222 | GEEN | null | | ||
And de volgende BELASTINGDIENST box1 gegevens: | ||
| bsn | loon_uit_dienstbetrekking | | ||
| 222222222 | 1400000 | | ||
And met een kale huur 720 en servicekosten 50 waarvan 48 meetellen | ||
When de wet_op_de_huurtoeslag wordt uitgevoerd door TOESLAGEN | ||
Then heeft de persoon recht op huurtoeslag | ||
And is de huurtoeslag "89.60" euro | ||
|
||
Scenario: Te hoog inkomen voor huurtoeslag | ||
Given een persoon met BSN "333333333" | ||
And de volgende RvIG personen gegevens: | ||
| bsn | geboortedatum | verblijfsadres | land_verblijf | | ||
| 333333333 | 1980-01-01 | Voorstraat 1, Utrecht | NEDERLAND | | ||
And de volgende RvIG relaties gegevens: | ||
| bsn | partnerschap_type | partner_bsn | | ||
| 333333333 | GEEN | null | | ||
And de volgende BELASTINGDIENST box1 gegevens: | ||
| bsn | loon_uit_dienstbetrekking | | ||
| 333333333 | 4500000 | | ||
And met een kale huur 650 en servicekosten 50 waarvan 48 meetellen | ||
When de wet_op_de_huurtoeslag wordt uitgevoerd door TOESLAGEN | ||
Then is niet voldaan aan de voorwaarden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
law/algemene_ouderdomswet/leeftijdsbepaling/SVB-2024-01-01.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
law/participatiewet/bijstand/gemeenten/GEMEENTE_AMSTERDAM-2023-01-01.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.