gettsim 1.2__tar.gz → 1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gettsim-1.2 → gettsim-1.3}/PKG-INFO +3 -3
- {gettsim-1.2 → gettsim-1.3}/pyproject.toml +163 -145
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/__init__.py +36 -0
- gettsim-1.3/src/gettsim/_beartype_conf.py +41 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/_version.py +2 -2
- gettsim-1.3/src/gettsim/exceptions.py +38 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/__init__.py +12 -0
- gettsim-1.3/src/gettsim/germany/arbeitslosengeld_2/arbeitslosengeld_2.py +145 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/arbeitslosengeld_2/bedarfe.yaml +20 -7
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/arbeitslosengeld_2/einkommen.py +23 -9
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/arbeitslosengeld_2/freibetr/303/244ge.yaml +11 -14
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/arbeitslosengeld_2/freibetr/303/244ge_verm/303/266gen.py +8 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/arbeitslosengeld_2/inputs.py +2 -1
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/arbeitslosengeld_2/kindergeld/303/274bertrag.py +13 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/arbeitslosengeld_2/kosten_der_unterkunft.yaml +13 -8
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/arbeitslosengeld_2/regelbedarf.py +92 -38
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/b/303/274rgergeld/bedarfe.yaml +3 -5
- gettsim-1.3/src/gettsim/germany/b/303/274rgergeld/b/303/274rgergeld.py +133 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/b/303/274rgergeld/einkommen.py +10 -9
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/b/303/274rgergeld/freibetr/303/244ge.yaml +15 -10
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/b/303/274rgergeld/freibetr/303/244ge_verm/303/266gen.py +11 -4
- gettsim-1.3/src/gettsim/germany/b/303/274rgergeld/inputs.py +19 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/b/303/274rgergeld/kindergeld/303/274bertrag.py +20 -7
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/b/303/274rgergeld/kosten_der_unterkunft.yaml +12 -7
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/b/303/274rgergeld/regelbedarf.py +47 -26
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abgeltungssteuer/abgeltungssteuer.py +2 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abgeltungssteuer/abgeltungssteuer.yaml +1 -2
- gettsim-1.3/src/gettsim/germany/einkommensteuer/abz/303/274ge/alleinerziehend.py +47 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abz/303/274ge/alleinerziehend.yaml +12 -11
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abz/303/274ge/alter.py +45 -15
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abz/303/274ge/alter.yaml +17 -17
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abz/303/274ge/behinderung.py +2 -1
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abz/303/274ge/behinderung.yaml +12 -11
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abz/303/274ge/betrag.py +3 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abz/303/274ge/inputs.py +4 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abz/303/274ge/sonderausgaben.py +20 -5
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abz/303/274ge/sonderausgaben.yaml +10 -8
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abz/303/274ge/vorsorge.py +67 -18
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abz/303/274ge/vorsorge.yaml +26 -15
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/einkommen.py +3 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/einkommensteuer.py +64 -10
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/einkommensteuertarif.yaml +2 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_forst_und_landwirtschaft/inputs.py +2 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_gewerbebetrieb/inputs.py +2 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_kapitalverm/303/266gen/aus_kapitalverm/303/266gen.py +17 -8
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_kapitalverm/303/266gen/freibetr/303/244ge.yaml +35 -19
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_nichtselbstst/303/244ndiger_arbeit/aktivrente.yaml +1 -2
- gettsim-1.3/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_nichtselbstst/303/244ndiger_arbeit/aus_nichtselbstst/303/244ndiger_arbeit.py +150 -0
- gettsim-1.3/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_nichtselbstst/303/244ndiger_arbeit/inputs.py +15 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_nichtselbstst/303/244ndiger_arbeit/werbungskostenpauschale.yaml +12 -5
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_selbstst/303/244ndiger_arbeit/inputs.py +2 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_vermietung_und_verpachtung/inputs.py +2 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/eink/303/274nfte.py +11 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/inputs.py +2 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/sonstige/inputs.py +2 -2
- gettsim-1.3/src/gettsim/germany/einkommensteuer/eink/303/274nfte/sonstige/rente/inputs.py +20 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/sonstige/rente/rente.py +26 -14
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/sonstige/rente/rente.yaml +4 -4
- gettsim-1.3/src/gettsim/germany/einkommensteuer/eink/303/274nfte/sonstige/sonstige.py +20 -0
- gettsim-1.3/src/gettsim/germany/einkommensteuer/eink/303/274nfte/sonstige/werbungskostenpauschale.yaml +21 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/inputs.py +2 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/kinderfreibetrag.py +8 -7
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/kinderfreibetrag.yaml +13 -17
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/zu_versteuerndes_einkommen.py +18 -12
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einnahmen/inputs.py +3 -3
- gettsim-1.3/src/gettsim/germany/einnahmen/renten/betrag_gesamt.py +53 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einnahmen/renten/gesetzliche.py +2 -2
- gettsim-1.3/src/gettsim/germany/einnahmen/renten/inputs.py +70 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/elterngeld/anspruch.yaml +6 -8
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/elterngeld/boni.yaml +9 -12
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/elterngeld/einkommen.py +20 -9
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/elterngeld/elterngeld.py +87 -56
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/elterngeld/formel.yaml +13 -22
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/elterngeld/geschwisterbonus.py +17 -12
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/elterngeld/inputs.py +5 -5
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/erziehungsgeld/anspruch.yaml +5 -10
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/erziehungsgeld/erziehungsgeld.py +128 -51
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/erziehungsgeld/formel.yaml +6 -11
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/erziehungsgeld/inputs.py +8 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/familie/familie.py +123 -67
- gettsim-1.3/src/gettsim/germany/familie/inputs.py +38 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/grundsicherung/bedarfe.py +6 -6
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/grundsicherung/bedarfe.yaml +16 -2
- gettsim-1.3/src/gettsim/germany/grundsicherung/hilfe_zum_lebensunterhalt/hilfe_zum_lebensunterhalt.py +34 -0
- gettsim-1.3/src/gettsim/germany/grundsicherung/im_alter/einkommen.py +317 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/grundsicherung/im_alter/freibetr/303/244ge_und_mehrbedarfe.yaml +60 -22
- gettsim-1.3/src/gettsim/germany/grundsicherung/im_alter/im_alter.py +434 -0
- gettsim-1.3/src/gettsim/germany/hh_characteristics.py +8 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/ids.py +141 -67
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/individual_characteristics.py +3 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/inputs.py +12 -12
- gettsim-1.3/src/gettsim/germany/kinderbonus/kinderbonus.py +17 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/kinderbonus/kinderbonus.yaml +2 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/kindergeld/inputs.py +3 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/kindergeld/kindergeld.py +45 -11
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/kindergeld/kindergeld.yaml +67 -69
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/kinderzuschlag/einkommen.py +73 -21
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/kinderzuschlag/kinderzuschlag.py +71 -45
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/kinderzuschlag/kinderzuschlag.yaml +9 -16
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/lohnsteuer/einkommen.py +47 -28
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/lohnsteuer/einkommensgrenzwerte.yaml +1 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/lohnsteuer/inputs.py +2 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/lohnsteuer/lohnsteuer.py +56 -33
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/lohnsteuer/minijob.yaml +1 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/lohnsteuer/vorsorge.yaml +6 -10
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/param_types.py +13 -7
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/solidarit/303/244tszuschlag/solidarit/303/244tszuschlag.py +17 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/solidarit/303/244tszuschlag/solidarit/303/244tszuschlag.yaml +10 -8
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/arbeitslosen/anspruchsberechtigt.yaml +6 -8
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/arbeitslosen/arbeitslosengeld.py +9 -12
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/arbeitslosen/beitrag/beitrag.py +38 -9
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/arbeitslosen/beitrag/beitragssatz.yaml +1 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/arbeitslosen/betrag.yaml +7 -10
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/arbeitslosen/inputs.py +6 -6
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/beitr/303/244ge.py +4 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/kranken/beitrag/beitrag.py +40 -15
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/kranken/beitrag/beitragsbemessungsgrenze.yaml +44 -39
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/kranken/beitrag/beitragssatz.py +20 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/kranken/beitrag/beitragssatz.yaml +2 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/kranken/beitrag/einkommen.py +20 -7
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/kranken/beitrag/inputs.py +3 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/kranken/beitrag/minijob.yaml +1 -2
- gettsim-1.3/src/gettsim/germany/sozialversicherung/kranken/beitrag/selbstst/303/244ndige.yaml +285 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/midijob.py +33 -23
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/midijob.yaml +2 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/mindestlohn.yaml +1 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/minijob.py +10 -6
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/minijob.yaml +47 -33
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/pflege/beitrag/beitrag.py +85 -20
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/pflege/beitrag/beitragssatz.py +26 -6
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/pflege/beitrag/beitragssatz.yaml +3 -6
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/pflege/beitrag/inputs.py +2 -2
- gettsim-1.3/src/gettsim/germany/sozialversicherung/regul/303/244r_besch/303/244ftigt.py +33 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/alter_bei_renteneintritt.py +8 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/altersgrenzen.py +50 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/altersrente.py +30 -6
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/besonders_langj/303/244hrig/altersgrenze.yaml +3 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/besonders_langj/303/244hrig/besonders_langj/303/244hrig.py +3 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/f/303/274r_frauen/altersgrenze.yaml +6 -8
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/f/303/274r_frauen/anspruch.yaml +2 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/f/303/274r_frauen/f/303/274r_frauen.py +22 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/f/303/274r_frauen/inputs.py +2 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/hinzuverdienstgrenzen.py +46 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/hinzuverdienstgrenzen.yaml +3 -6
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/inputs.py +2 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/langj/303/244hrig/altersgrenze.yaml +6 -8
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/langj/303/244hrig/langj/303/244hrig.py +13 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/regelaltersrente/altersgrenze.yaml +3 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/regelaltersrente/regelaltersrente.py +3 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/wegen_arbeitslosigkeit/altersgrenze.yaml +9 -12
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/wegen_arbeitslosigkeit/anspruch.yaml +1 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/wegen_arbeitslosigkeit/inputs.py +9 -5
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/wegen_arbeitslosigkeit/wegen_arbeitslosigkeit.py +54 -5
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/beitrag/beitrag.py +47 -22
- gettsim-1.3/src/gettsim/germany/sozialversicherung/rente/beitrag/beitragsbemessungsgrenze.yaml +673 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/beitrag/beitragssatz.yaml +25 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/beitrag/minijob.yaml +1 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/beitrag/rentenanpassungsformel.yaml +30 -32
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/entgeltpunkte.py +25 -8
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/entgeltpunkte.yaml +175 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/erwerbsminderung/altersgrenze.yaml +4 -6
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/erwerbsminderung/anspruch.yaml +1 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/erwerbsminderung/erwerbsminderung.py +72 -35
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/erwerbsminderung/formel.yaml +6 -10
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/erwerbsminderung/inputs.py +3 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/erwerbsminderung/wartezeit.yaml +1 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/grundrente/einkommen.yaml +4 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/grundrente/grundrente.py +51 -31
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/grundrente/inputs.py +9 -9
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/grundrente/rentenformel.yaml +5 -6
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/grundrente/wartezeit.yaml +1 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/inputs.py +20 -20
- gettsim-1.3/src/gettsim/germany/sozialversicherung/rente/rentenformel.yaml +232 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/wartezeit.py +8 -8
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/wartezeit.yaml +2 -4
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/unterhalt/inputs.py +3 -3
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/unterhalt/unterhalt.py +2 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/unterhalt/unterhalt.yaml +1 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/unterhaltsvorschuss/unterhaltsvorschuss.py +43 -17
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/unterhaltsvorschuss/unterhaltsvorschuss.yaml +18 -11
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/vorrangpr/303/274fungen/vorrangpr/303/274fungen.py +27 -13
- gettsim-1.3/src/gettsim/germany/wohnen/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/wohnen/inputs.py +6 -6
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/wohngeld/einkommen.py +136 -26
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/wohngeld/einkommen.yaml +80 -23
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/wohngeld/inputs.py +2 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/wohngeld/miete.py +104 -30
- gettsim-1.3/src/gettsim/germany/wohngeld/miete.yaml +1492 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/wohngeld/voraussetzungen.py +52 -30
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/wohngeld/voraussetzungen.yaml +3 -2
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/wohngeld/wohngeld.py +143 -52
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/wohngeld/wohngeld.yaml +10 -10
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/plot/dag/__init__.py +13 -9
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/tests_germany/conftest.py +42 -0
- gettsim-1.3/src/gettsim/tests_germany/test_beartype_gate.py +65 -0
- gettsim-1.3/src/gettsim/tests_germany/test_currency.py +48 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/tests_germany/test_jittability.py +7 -4
- gettsim-1.3/src/gettsim/tests_germany/test_policy_cases.py +310 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/tests_germany/test_templates.py +1 -1
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/tt/__init__.py +8 -0
- gettsim-1.3/src/gettsim/typing.py +96 -0
- gettsim-1.2/src/gettsim/germany/arbeitslosengeld_2/arbeitslosengeld_2.py +0 -48
- gettsim-1.2/src/gettsim/germany/b/303/274rgergeld/b/303/274rgergeld.py +0 -49
- gettsim-1.2/src/gettsim/germany/b/303/274rgergeld/inputs.py +0 -15
- gettsim-1.2/src/gettsim/germany/einkommensteuer/abz/303/274ge/alleinerziehend.py +0 -39
- gettsim-1.2/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_nichtselbstst/303/244ndiger_arbeit/aus_nichtselbstst/303/244ndiger_arbeit.py +0 -102
- gettsim-1.2/src/gettsim/germany/einkommensteuer/eink/303/274nfte/sonstige/rente/inputs.py +0 -22
- gettsim-1.2/src/gettsim/germany/einkommensteuer/eink/303/274nfte/sonstige/sonstige.py +0 -14
- gettsim-1.2/src/gettsim/germany/einnahmen/renten/gesamt.py +0 -21
- gettsim-1.2/src/gettsim/germany/einnahmen/renten/inputs.py +0 -33
- gettsim-1.2/src/gettsim/germany/familie/inputs.py +0 -30
- gettsim-1.2/src/gettsim/germany/grundsicherung/im_alter/einkommen.py +0 -190
- gettsim-1.2/src/gettsim/germany/grundsicherung/im_alter/im_alter.py +0 -164
- gettsim-1.2/src/gettsim/germany/hh_characteristics.py +0 -30
- gettsim-1.2/src/gettsim/germany/kinderbonus/kinderbonus.py +0 -20
- gettsim-1.2/src/gettsim/germany/sozialversicherung/kranken/beitrag/selbstst/303/244ndige.yaml +0 -179
- gettsim-1.2/src/gettsim/germany/sozialversicherung/regul/303/244r_besch/303/244ftigt.py +0 -25
- gettsim-1.2/src/gettsim/germany/sozialversicherung/rente/beitrag/beitragsbemessungsgrenze.yaml +0 -230
- gettsim-1.2/src/gettsim/germany/sozialversicherung/rente/rentenformel.yaml +0 -157
- gettsim-1.2/src/gettsim/germany/wohngeld/miete.yaml +0 -1325
- gettsim-1.2/src/gettsim/tests_germany/test_policy_cases.py +0 -180
- gettsim-1.2/src/gettsim/typing.py +0 -43
- {gettsim-1.2 → gettsim-1.3}/.gitignore +0 -0
- {gettsim-1.2 → gettsim-1.3}/LICENSE +0 -0
- {gettsim-1.2 → gettsim-1.3}/README.md +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/arbeitslosengeld_2/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/b/303/274rgergeld/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abgeltungssteuer/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/abz/303/274ge/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_forst_und_landwirtschaft/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_gewerbebetrieb/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_kapitalverm/303/266gen/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_nichtselbstst/303/244ndiger_arbeit/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_selbstst/303/244ndiger_arbeit/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/aus_vermietung_und_verpachtung/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/sonstige/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einkommensteuer/eink/303/274nfte/sonstige/rente/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einnahmen/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/einnahmen/renten/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/elterngeld/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/erziehungsgeld/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/familie/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/grundsicherung/__init__.py +0 -0
- {gettsim-1.2/src/gettsim/germany/wohnen → gettsim-1.3/src/gettsim/germany/grundsicherung/hilfe_zum_lebensunterhalt}/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/grundsicherung/im_alter/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/kinderbonus/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/kindergeld/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/kinderzuschlag/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/lohnsteuer/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/solidarit/303/244tszuschlag/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/arbeitslosen/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/arbeitslosen/beitrag/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/kranken/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/kranken/beitrag/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/pflege/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/pflege/beitrag/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/besonders_langj/303/244hrig/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/f/303/274r_frauen/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/langj/303/244hrig/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/regelaltersrente/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/altersrente/wegen_arbeitslosigkeit/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/beitrag/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/erwerbsminderung/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/sozialversicherung/rente/grundrente/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/unterhalt/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/unterhaltsvorschuss/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/vorrangpr/303/274fungen/__init__.py" +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/germany/wohngeld/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/plot/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/tests_germany/__init__.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/tests_germany/test_import_version.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/tests_germany/test_interface_sync.py +0 -0
- {gettsim-1.2 → gettsim-1.3}/src/gettsim/tests_germany/test_plot_dag.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: gettsim
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3
|
|
4
4
|
Summary: The German Taxes and Transfers SIMulator
|
|
5
5
|
Project-URL: Changelog, https://gettsim.readthedocs.io/en/stable/changes.html
|
|
6
6
|
Project-URL: Documentation, https://gettsim.readthedocs.io
|
|
@@ -687,7 +687,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
687
687
|
Classifier: Programming Language :: Python :: 3.13
|
|
688
688
|
Classifier: Programming Language :: Python :: 3.14
|
|
689
689
|
Requires-Python: >=3.11
|
|
690
|
-
Requires-Dist: ttsim-backend>=1.
|
|
690
|
+
Requires-Dist: ttsim-backend>=1.3
|
|
691
691
|
Description-Content-Type: text/markdown
|
|
692
692
|
|
|
693
693
|
[](https://gettsim.readthedocs.io/latest)
|
|
@@ -31,17 +31,20 @@ classifiers = [
|
|
|
31
31
|
"Programming Language :: Python :: 3.14",
|
|
32
32
|
]
|
|
33
33
|
dynamic = [ "version" ]
|
|
34
|
-
dependencies = [ "ttsim-backend>=1.
|
|
34
|
+
dependencies = [ "ttsim-backend>=1.3" ]
|
|
35
35
|
[[project.authors]]
|
|
36
36
|
name = "Christian Zimpelmann"
|
|
37
|
+
|
|
37
38
|
[[project.authors]]
|
|
38
39
|
name = "Hans-Martin von Gaudecker"
|
|
39
40
|
email = "hmgaudecker@uni-bonn.de"
|
|
41
|
+
|
|
40
42
|
[[project.authors]]
|
|
41
43
|
name = "Marvin Immesberger"
|
|
42
44
|
[[project.maintainers]]
|
|
43
45
|
name = "Hans-Martin von Gaudecker"
|
|
44
46
|
email = "hmgaudecker@uni-bonn.de"
|
|
47
|
+
|
|
45
48
|
[[project.maintainers]]
|
|
46
49
|
name = "Marvin Immesberger"
|
|
47
50
|
[project.urls]
|
|
@@ -52,13 +55,130 @@ Repository = "https://github.com/ttsim-dev/gettsim"
|
|
|
52
55
|
Tracker = "https://github.com/ttsim-dev/gettsim/issues"
|
|
53
56
|
|
|
54
57
|
[tool.hatch]
|
|
58
|
+
version.source = "vcs"
|
|
59
|
+
metadata.allow-direct-references = true
|
|
55
60
|
build.hooks.vcs.version-file = "src/gettsim/_version.py"
|
|
56
61
|
build.targets.sdist.exclude = [ "tests" ]
|
|
57
62
|
build.targets.sdist.only-packages = true
|
|
58
63
|
build.targets.wheel.only-include = [ "src" ]
|
|
59
64
|
build.targets.wheel.sources = [ "src" ]
|
|
60
|
-
|
|
61
|
-
|
|
65
|
+
|
|
66
|
+
[tool.pixi.dependencies]
|
|
67
|
+
ipywidgets = "*"
|
|
68
|
+
jupyterlab = "*"
|
|
69
|
+
numpy_groupies = "*"
|
|
70
|
+
numpydoc = "*"
|
|
71
|
+
openpyxl = "*"
|
|
72
|
+
pandas = ">=3"
|
|
73
|
+
prek = "*"
|
|
74
|
+
pygments = "*"
|
|
75
|
+
pygraphviz = "*"
|
|
76
|
+
pyyaml = "*"
|
|
77
|
+
snakeviz = ">=2.2.2"
|
|
78
|
+
tabulate = "*"
|
|
79
|
+
toml = "*"
|
|
80
|
+
[tool.pixi.environments]
|
|
81
|
+
py311 = [ "py311", "tests" ]
|
|
82
|
+
py312 = [ "py312", "tests" ]
|
|
83
|
+
py313 = [ "py313", "tests" ]
|
|
84
|
+
py314 = [ "py314", "tests", "coverage" ]
|
|
85
|
+
py314-cuda = [ "py314", "tests", "cuda" ]
|
|
86
|
+
py314-jax = [ "py314", "tests", "jax" ]
|
|
87
|
+
py314-metal = [ "py314", "tests", "metal" ]
|
|
88
|
+
docs = [ "docs", "py313" ]
|
|
89
|
+
[tool.pixi.feature.coverage.tasks]
|
|
90
|
+
tests-with-cov = """\
|
|
91
|
+
pytest --cov-report=xml --cov=./ \
|
|
92
|
+
--ignore=src/gettsim/tests_germany/test_jittability.py\
|
|
93
|
+
"""
|
|
94
|
+
[tool.pixi.feature.cuda]
|
|
95
|
+
platforms = [ "linux-64" ]
|
|
96
|
+
system-requirements = { cuda = "13" }
|
|
97
|
+
[tool.pixi.feature.cuda.target.linux-64.pypi-dependencies]
|
|
98
|
+
jax = { version = ">=0.8", extras = [ "cuda13" ] }
|
|
99
|
+
[tool.pixi.feature.cuda.tasks]
|
|
100
|
+
tests-cuda = "pytest --backend=jax"
|
|
101
|
+
[tool.pixi.feature.docs.dependencies]
|
|
102
|
+
myst-parser = "*"
|
|
103
|
+
nbsphinx = "*"
|
|
104
|
+
pydata-sphinx-theme = "*"
|
|
105
|
+
sphinx = "*"
|
|
106
|
+
sphinx-automodapi = "*"
|
|
107
|
+
sphinx-copybutton = "*"
|
|
108
|
+
[tool.pixi.feature.docs.pypi-dependencies]
|
|
109
|
+
gettsim = { path = ".", editable = true }
|
|
110
|
+
gettsim-personas = { git = "https://github.com/ttsim-dev/gettsim-personas.git", branch = "main" }
|
|
111
|
+
[tool.pixi.feature.docs.target.linux-64.tasks]
|
|
112
|
+
docs = "sphinx-build -T -b html docs docs/_build/html"
|
|
113
|
+
[tool.pixi.feature.docs.target.osx-64.tasks]
|
|
114
|
+
docs = "dot -c && sphinx-build -T -b html docs docs/_build/html"
|
|
115
|
+
[tool.pixi.feature.docs.target.osx-arm64.tasks]
|
|
116
|
+
docs = "dot -c && sphinx-build -T -b html docs docs/_build/html"
|
|
117
|
+
[tool.pixi.feature.docs.target.win-64.tasks]
|
|
118
|
+
docs = "sphinx-build -T -b html docs docs/_build/html"
|
|
119
|
+
[tool.pixi.feature.jax]
|
|
120
|
+
platforms = [ "linux-64", "osx-arm64", "win-64" ]
|
|
121
|
+
[tool.pixi.feature.jax.pypi-dependencies]
|
|
122
|
+
jax = ">=0.8"
|
|
123
|
+
[tool.pixi.feature.jax.target.linux-64.tasks]
|
|
124
|
+
tests-jax = "pytest --backend=jax"
|
|
125
|
+
[tool.pixi.feature.jax.target.osx-arm64.tasks]
|
|
126
|
+
tests-jax = "dot -c && pytest --backend=jax" # dot -c needed for pygraphviz on macOS
|
|
127
|
+
[tool.pixi.feature.jax.target.win-64.tasks]
|
|
128
|
+
tests-jax = "pytest --backend=jax"
|
|
129
|
+
[tool.pixi.feature.metal]
|
|
130
|
+
platforms = [ "osx-arm64" ]
|
|
131
|
+
[tool.pixi.feature.metal.target.osx-arm64.pypi-dependencies]
|
|
132
|
+
jax = ">=0.8"
|
|
133
|
+
jax-metal = ">=0.1.1"
|
|
134
|
+
[tool.pixi.feature.py311.dependencies]
|
|
135
|
+
python = "~=3.11.0"
|
|
136
|
+
[tool.pixi.feature.py312.dependencies]
|
|
137
|
+
python = "~=3.12.0"
|
|
138
|
+
[tool.pixi.feature.py313.dependencies]
|
|
139
|
+
python = "~=3.13.0"
|
|
140
|
+
[tool.pixi.feature.py314.dependencies]
|
|
141
|
+
python = "~=3.14.0"
|
|
142
|
+
# Run internal tests with the package-wide beartype claws on. Both
|
|
143
|
+
# gettsim's and ttsim's claws fire — gettsim transitively exercises
|
|
144
|
+
# ttsim code paths and we want violations on either side to surface.
|
|
145
|
+
# The claws are on by default (GEP 9, Option A; see each package's
|
|
146
|
+
# `__init__.py`); set the env vars to 0 to opt out. Set explicitly here
|
|
147
|
+
# so the test environment exercises the claws even if the default ever
|
|
148
|
+
# changes.
|
|
149
|
+
[tool.pixi.feature.tests.activation.env]
|
|
150
|
+
GETTSIM_BEARTYPE_CLAW = "1"
|
|
151
|
+
TTSIM_BEARTYPE_CLAW = "1"
|
|
152
|
+
[tool.pixi.feature.tests.pypi-dependencies]
|
|
153
|
+
pytest = "*"
|
|
154
|
+
pytest-cov = "*"
|
|
155
|
+
pytest-profiling = "*"
|
|
156
|
+
pytest-xdist = "*"
|
|
157
|
+
gettsim-personas = { git = "https://github.com/ttsim-dev/gettsim-personas.git", branch = "main" }
|
|
158
|
+
[tool.pixi.feature.tests.target.linux-64.tasks]
|
|
159
|
+
tests = "pytest"
|
|
160
|
+
unit-exception-baseline = """\
|
|
161
|
+
pytest src/gettsim/tests_germany/test_policy_cases.py -k \
|
|
162
|
+
\"gettsim_units_are_complete_and_consistent or \
|
|
163
|
+
unit_check_exceptions_match_reviewed_baseline\"\
|
|
164
|
+
"""
|
|
165
|
+
[tool.pixi.feature.tests.target.osx-64.tasks]
|
|
166
|
+
tests = "dot -c && pytest" # dot -c needed for pygraphviz on macOS
|
|
167
|
+
[tool.pixi.feature.tests.target.osx-arm64.tasks]
|
|
168
|
+
tests = "dot -c && pytest" # dot -c needed for pygraphviz on macOS
|
|
169
|
+
[tool.pixi.feature.tests.target.win-64.tasks]
|
|
170
|
+
tests = "pytest"
|
|
171
|
+
[tool.pixi.feature.tests.tasks]
|
|
172
|
+
[tool.pixi.pypi-dependencies]
|
|
173
|
+
gettsim = { path = ".", editable = true }
|
|
174
|
+
jaxtyping = ">=0.3.2"
|
|
175
|
+
kaleido = ">=1.0.0"
|
|
176
|
+
pdbp = ">=1.7.1"
|
|
177
|
+
dags = ">=0.6.0"
|
|
178
|
+
# ttsim-backend = { git = "https://github.com/ttsim-dev/ttsim.git", rev = "f1d37274c0b43909cadcbe0f1f70a07b5256a2e6" }
|
|
179
|
+
[tool.pixi.workspace]
|
|
180
|
+
channels = [ "conda-forge" ]
|
|
181
|
+
platforms = [ "linux-64", "osx-64", "osx-arm64", "win-64" ]
|
|
62
182
|
|
|
63
183
|
[tool.ruff]
|
|
64
184
|
fix = true
|
|
@@ -67,6 +187,7 @@ unsafe-fixes = false
|
|
|
67
187
|
select = [ "ALL" ]
|
|
68
188
|
extend-ignore = [
|
|
69
189
|
"COM812", # Avoid conflicts with ruff-format
|
|
190
|
+
"CPY001", # Copyright notice at top of file
|
|
70
191
|
"D", # Docstrings
|
|
71
192
|
"EM101", # Exception must not use a string literal
|
|
72
193
|
"EM102", # Exception must not use an f-string literal
|
|
@@ -86,6 +207,7 @@ extend-ignore = [
|
|
|
86
207
|
"PLC2401", # Allow non-ASCII characters in variable names.
|
|
87
208
|
"PLC2403", # Allow non-ASCII function names for imports.
|
|
88
209
|
"PLR0913", # Allow many arguments in function definitions.
|
|
210
|
+
"PLR0917", # Allow many positional arguments in function definitions.
|
|
89
211
|
"PLR5501", # elif not supported by vectorization converter for Jax
|
|
90
212
|
"TRY003", # Avoid specifying long messages outside the exception class
|
|
91
213
|
]
|
|
@@ -109,10 +231,9 @@ per-file-ignores."src/gettsim/__init__.py" = [
|
|
|
109
231
|
per-file-ignores."src/gettsim/germany/*" = [
|
|
110
232
|
"E501", # Line too long — policy functions have long expressions
|
|
111
233
|
"E721", # Do not compare types, use isinstance() — needed for type(x) == type(y)
|
|
112
|
-
"PLR1714", # Consider merging multiple comparisons with in
|
|
113
|
-
"PLR1716", # Boolean expression may be simplified with chained comparison
|
|
114
|
-
"
|
|
115
|
-
"SIM108", # Use ternary operator — vectorization requires if/else blocks
|
|
234
|
+
"PLR1714", # Consider merging multiple comparisons with `in` — not vectorizable
|
|
235
|
+
"PLR1716", # Boolean expression may be simplified with chained comparison — not vectorizable
|
|
236
|
+
"RET505", # Vectorizer requires both if/else branches; it rejects the early-return form
|
|
116
237
|
]
|
|
117
238
|
per-file-ignores."src/gettsim/germany/familie/familie.py" = [
|
|
118
239
|
"PLR2004", # Magic value used in comparison
|
|
@@ -136,10 +257,10 @@ pydocstyle.convention = "google"
|
|
|
136
257
|
column_width = 88
|
|
137
258
|
max_supported_python = "3.14"
|
|
138
259
|
table_format = "long"
|
|
139
|
-
collapse_tables = [ "tool.hatch", "tool.pytest", "tool.ty" ]
|
|
140
260
|
expand_tables = [
|
|
141
261
|
"tool.pixi.dependencies",
|
|
142
262
|
"tool.pixi.environments",
|
|
263
|
+
"tool.pixi.feature.coverage.tasks",
|
|
143
264
|
"tool.pixi.feature.cuda",
|
|
144
265
|
"tool.pixi.feature.cuda.target.linux-64.pypi-dependencies",
|
|
145
266
|
"tool.pixi.feature.cuda.tasks",
|
|
@@ -160,24 +281,23 @@ expand_tables = [
|
|
|
160
281
|
"tool.pixi.feature.py312.dependencies",
|
|
161
282
|
"tool.pixi.feature.py313.dependencies",
|
|
162
283
|
"tool.pixi.feature.py314.dependencies",
|
|
284
|
+
"tool.pixi.feature.tests.activation.env",
|
|
163
285
|
"tool.pixi.feature.tests.pypi-dependencies",
|
|
164
286
|
"tool.pixi.feature.tests.target.linux-64.tasks",
|
|
165
287
|
"tool.pixi.feature.tests.target.osx-64.tasks",
|
|
166
288
|
"tool.pixi.feature.tests.target.osx-arm64.tasks",
|
|
167
289
|
"tool.pixi.feature.tests.target.win-64.tasks",
|
|
168
|
-
"tool.pixi.feature.type-checking.pypi-dependencies",
|
|
169
|
-
"tool.pixi.feature.type-checking.tasks",
|
|
170
|
-
"tool.pixi.feature.type-checking-jax.pypi-dependencies",
|
|
171
|
-
"tool.pixi.feature.type-checking-jax.tasks",
|
|
172
290
|
"tool.pixi.pypi-dependencies",
|
|
173
291
|
"tool.pixi.tasks",
|
|
174
292
|
"tool.pixi.workspace",
|
|
175
293
|
]
|
|
294
|
+
collapse_tables = [ "tool.hatch", "tool.pytest", "tool.ty" ]
|
|
176
295
|
|
|
177
296
|
[tool.ty]
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
297
|
+
# ty resolves third-party imports from this pixi env (the ty-pre-commit hook runs
|
|
298
|
+
# `uv check --no-project`, so uv neither creates a `.venv` nor resolves deps). Run
|
|
299
|
+
# `pixi install` once. The ty-jax hook overrides this on the command line for jax.
|
|
300
|
+
environment.python = ".pixi/envs/py314"
|
|
181
301
|
rules.ambiguous-protocol-member = "error"
|
|
182
302
|
rules.deprecated = "error"
|
|
183
303
|
rules.division-by-zero = "error"
|
|
@@ -192,146 +312,44 @@ rules.possibly-missing-submodule = "error"
|
|
|
192
312
|
rules.redundant-cast = "error"
|
|
193
313
|
rules.unused-awaitable = "error"
|
|
194
314
|
rules.unused-ignore-comment = "error"
|
|
315
|
+
overrides = [
|
|
316
|
+
{ include = [ "docs/**" ], rules.unresolved-attribute = "ignore", rules.invalid-argument-type = "ignore" },
|
|
317
|
+
]
|
|
195
318
|
|
|
196
319
|
[tool.pytest]
|
|
320
|
+
ini_options.testpaths = [ "src/gettsim/tests_germany" ]
|
|
321
|
+
ini_options.norecursedirs = [ "docs" ]
|
|
197
322
|
ini_options.addopts = [ "--pdbcls=pdbp:Pdb" ]
|
|
323
|
+
ini_options.markers = [
|
|
324
|
+
"end_to_end: Flag for tests that cover the whole program.",
|
|
325
|
+
"integration: Flag for integration tests which may comprise of multiple unit tests.",
|
|
326
|
+
"skipif_jax: skip test if backend is jax",
|
|
327
|
+
"skipif_numpy: skip test if backend is numpy",
|
|
328
|
+
"unit: Flag for unit tests which target mainly a single function.",
|
|
329
|
+
"wip: Tests that are work-in-progress.",
|
|
330
|
+
]
|
|
198
331
|
ini_options.filterwarnings = [
|
|
199
|
-
"ignore:.*XMLParser*:DeprecationWarning",
|
|
200
332
|
"ignore:.*'tree.iter()'*:PendingDeprecationWarning",
|
|
201
333
|
"ignore:.*Sorting*:FutureWarning",
|
|
202
|
-
"ignore
|
|
334
|
+
"ignore:.*XMLParser*:DeprecationWarning",
|
|
335
|
+
"ignore:Explicitly requested dtype .*64 requested in zeros_like",
|
|
203
336
|
"ignore:Repeated execution of the test suite",
|
|
337
|
+
"ignore:The TerminalReporter.writer attribute is",
|
|
204
338
|
"ignore:Using or importing the ABCs from 'collections'",
|
|
205
|
-
"ignore:Explicitly requested dtype .*64 requested in zeros_like",
|
|
206
339
|
]
|
|
207
|
-
ini_options.markers = [
|
|
208
|
-
"wip: Tests that are work-in-progress.",
|
|
209
|
-
"unit: Flag for unit tests which target mainly a single function.",
|
|
210
|
-
"integration: Flag for integration tests which may comprise of multiple unit tests.",
|
|
211
|
-
"end_to_end: Flag for tests that cover the whole program.",
|
|
212
|
-
"skipif_jax: skip test if backend is jax",
|
|
213
|
-
"skipif_numpy: skip test if backend is numpy",
|
|
214
|
-
]
|
|
215
|
-
ini_options.norecursedirs = [ "docs" ]
|
|
216
|
-
ini_options.testpaths = [ "src/gettsim/tests_germany" ]
|
|
217
|
-
|
|
218
|
-
[tool.pixi.dependencies]
|
|
219
|
-
ipywidgets = "*"
|
|
220
|
-
jupyterlab = "*"
|
|
221
|
-
numpy_groupies = "*"
|
|
222
|
-
numpydoc = "*"
|
|
223
|
-
openpyxl = "*"
|
|
224
|
-
pandas = ">=3"
|
|
225
|
-
prek = "*"
|
|
226
|
-
pygments = "*"
|
|
227
|
-
pygraphviz = "*"
|
|
228
|
-
pyyaml = "*"
|
|
229
|
-
snakeviz = ">=2.2.2"
|
|
230
|
-
tabulate = "*"
|
|
231
|
-
toml = "*"
|
|
232
|
-
[tool.pixi.environments]
|
|
233
|
-
py311 = [ "py311", "tests" ]
|
|
234
|
-
py312 = [ "py312", "tests" ]
|
|
235
|
-
py313 = [ "py313", "tests" ]
|
|
236
|
-
py314 = [ "py314", "tests" ]
|
|
237
|
-
py314-cuda = [ "py314", "tests", "cuda" ]
|
|
238
|
-
py314-jax = [ "py314", "tests", "jax" ]
|
|
239
|
-
type-checking = [ "py314", "type-checking" ]
|
|
240
|
-
type-checking-jax = [ "py314", "type-checking-jax", "jax" ]
|
|
241
|
-
py314-metal = [ "py314", "tests", "metal" ]
|
|
242
|
-
docs = [ "docs", "py313" ]
|
|
243
|
-
[tool.pixi.feature.cuda]
|
|
244
|
-
platforms = [ "linux-64" ]
|
|
245
|
-
system-requirements = { cuda = "13" }
|
|
246
|
-
[tool.pixi.feature.cuda.target.linux-64.pypi-dependencies]
|
|
247
|
-
jax = { version = ">=0.8", extras = [ "cuda13" ] }
|
|
248
|
-
[tool.pixi.feature.cuda.tasks]
|
|
249
|
-
tests-cuda = "pytest --backend=jax"
|
|
250
|
-
[tool.pixi.feature.docs.dependencies]
|
|
251
|
-
myst-parser = "*"
|
|
252
|
-
nbsphinx = "*"
|
|
253
|
-
pydata-sphinx-theme = "*"
|
|
254
|
-
sphinx = "*"
|
|
255
|
-
sphinx-automodapi = "*"
|
|
256
|
-
sphinx-copybutton = "*"
|
|
257
|
-
[tool.pixi.feature.docs.pypi-dependencies]
|
|
258
|
-
gettsim = { path = ".", editable = true }
|
|
259
|
-
gettsim-personas = { git = "https://github.com/ttsim-dev/gettsim-personas.git", branch = "main" }
|
|
260
|
-
[tool.pixi.feature.docs.target.linux-64.tasks]
|
|
261
|
-
docs = "sphinx-build -T -b html docs docs/_build/html"
|
|
262
|
-
[tool.pixi.feature.docs.target.osx-64.tasks]
|
|
263
|
-
docs = "dot -c && sphinx-build -T -b html docs docs/_build/html"
|
|
264
|
-
[tool.pixi.feature.docs.target.osx-arm64.tasks]
|
|
265
|
-
docs = "dot -c && sphinx-build -T -b html docs docs/_build/html"
|
|
266
|
-
[tool.pixi.feature.docs.target.win-64.tasks]
|
|
267
|
-
docs = "sphinx-build -T -b html docs docs/_build/html"
|
|
268
|
-
[tool.pixi.feature.jax]
|
|
269
|
-
platforms = [ "linux-64", "osx-arm64", "win-64" ]
|
|
270
|
-
[tool.pixi.feature.jax.pypi-dependencies]
|
|
271
|
-
jax = ">=0.8"
|
|
272
|
-
[tool.pixi.feature.jax.target.linux-64.tasks]
|
|
273
|
-
tests-jax = "pytest --backend=jax"
|
|
274
|
-
[tool.pixi.feature.jax.target.osx-arm64.tasks]
|
|
275
|
-
tests-jax = "dot -c && pytest --backend=jax" # dot -c needed for pygraphviz on macOS
|
|
276
|
-
[tool.pixi.feature.jax.target.win-64.tasks]
|
|
277
|
-
tests-jax = "pytest --backend=jax"
|
|
278
|
-
[tool.pixi.feature.metal]
|
|
279
|
-
platforms = [ "osx-arm64" ]
|
|
280
|
-
[tool.pixi.feature.metal.target.osx-arm64.pypi-dependencies]
|
|
281
|
-
jax = ">=0.8"
|
|
282
|
-
jax-metal = ">=0.1.1"
|
|
283
|
-
[tool.pixi.feature.py311.dependencies]
|
|
284
|
-
python = "~=3.11.0"
|
|
285
|
-
[tool.pixi.feature.py312.dependencies]
|
|
286
|
-
python = "~=3.12.0"
|
|
287
|
-
[tool.pixi.feature.py313.dependencies]
|
|
288
|
-
python = "~=3.13.0"
|
|
289
|
-
[tool.pixi.feature.py314.dependencies]
|
|
290
|
-
python = "~=3.14.0"
|
|
291
|
-
[tool.pixi.feature.tests.pypi-dependencies]
|
|
292
|
-
pytest = "*"
|
|
293
|
-
pytest-cov = "*"
|
|
294
|
-
pytest-profiling = "*"
|
|
295
|
-
pytest-xdist = "*"
|
|
296
|
-
gettsim-personas = { git = "https://github.com/ttsim-dev/gettsim-personas.git", branch = "main" }
|
|
297
|
-
[tool.pixi.feature.tests.target.linux-64.tasks]
|
|
298
|
-
tests = "pytest"
|
|
299
|
-
tests-with-cov = "pytest --cov-report=xml --cov=./"
|
|
300
|
-
[tool.pixi.feature.tests.target.osx-64.tasks]
|
|
301
|
-
tests = "dot -c && pytest" # dot -c needed for pygraphviz on macOS
|
|
302
|
-
tests-with-cov = "dot -c && pytest --cov-report=xml --cov=./"
|
|
303
|
-
[tool.pixi.feature.tests.target.osx-arm64.tasks]
|
|
304
|
-
tests = "dot -c && pytest" # dot -c needed for pygraphviz on macOS
|
|
305
|
-
tests-with-cov = "dot -c && pytest --cov-report=xml --cov=./"
|
|
306
|
-
[tool.pixi.feature.tests.target.win-64.tasks]
|
|
307
|
-
tests = "pytest"
|
|
308
|
-
tests-with-cov = "pytest --cov-report=xml --cov=./"
|
|
309
|
-
[tool.pixi.feature.tests.tasks]
|
|
310
|
-
[tool.pixi.feature.type-checking-jax.pypi-dependencies]
|
|
311
|
-
ty = "*"
|
|
312
|
-
types-PyYAML = "*"
|
|
313
|
-
types-pytz = "*"
|
|
314
|
-
gettsim-personas = { git = "https://github.com/ttsim-dev/gettsim-personas.git", branch = "main" }
|
|
315
|
-
[tool.pixi.feature.type-checking-jax.tasks]
|
|
316
|
-
ty-jax = "ty check"
|
|
317
|
-
[tool.pixi.feature.type-checking.pypi-dependencies]
|
|
318
|
-
ty = "*"
|
|
319
|
-
types-PyYAML = "*"
|
|
320
|
-
types-pytz = "*"
|
|
321
|
-
gettsim-personas = { git = "https://github.com/ttsim-dev/gettsim-personas.git", branch = "main" }
|
|
322
|
-
[tool.pixi.feature.type-checking.tasks]
|
|
323
|
-
ty = "ty check"
|
|
324
|
-
[tool.pixi.pypi-dependencies]
|
|
325
|
-
gettsim = { path = ".", editable = true }
|
|
326
|
-
jaxtyping = ">=0.3.2"
|
|
327
|
-
kaleido = ">=1.0.0"
|
|
328
|
-
pdbp = ">=1.7.1"
|
|
329
|
-
dags = ">=0.5"
|
|
330
340
|
|
|
331
|
-
|
|
332
|
-
[
|
|
333
|
-
|
|
334
|
-
|
|
341
|
+
[tool.coverage.report]
|
|
342
|
+
exclude_lines = [ "pragma: no cover", "if TYPE_CHECKING:", "^\\s*pass\\s*$" ]
|
|
343
|
+
[tool.coverage.run]
|
|
344
|
+
source = [ "src/gettsim/germany" ]
|
|
345
|
+
omit = [
|
|
346
|
+
"*/__init__.py",
|
|
347
|
+
".pixi/*",
|
|
348
|
+
"*/test_jittability.py",
|
|
349
|
+
"*/tests_germany/*",
|
|
350
|
+
"*/_version.py",
|
|
351
|
+
]
|
|
352
|
+
branch = true
|
|
335
353
|
|
|
336
354
|
[tool.yamlfix]
|
|
337
355
|
line_length = 88
|
|
@@ -2,6 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
import os
|
|
6
|
+
|
|
7
|
+
# GEP 9 opt-out propagation: a user who sets `GETTSIM_BEARTYPE_CLAW=0` expects
|
|
8
|
+
# *all* beartype checking off. gettsim's own package claw is gated below, but
|
|
9
|
+
# the perimeter `@beartype` decorators and the synthesized forwarder live in
|
|
10
|
+
# ttsim and follow `TTSIM_BEARTYPE_CLAW`. Propagate the opt-out so a single env
|
|
11
|
+
# var disables everything; an explicit `TTSIM_BEARTYPE_CLAW` set by the user
|
|
12
|
+
# still wins, because `setdefault` does not overwrite it. This must run before
|
|
13
|
+
# any ttsim import (the claw gate below imports `ttsim._beartype_conf`).
|
|
14
|
+
if os.environ.get("GETTSIM_BEARTYPE_CLAW", "1") == "0":
|
|
15
|
+
os.environ.setdefault("TTSIM_BEARTYPE_CLAW", "0")
|
|
16
|
+
|
|
17
|
+
# Register beartype's package claw before any gettsim submodule imports
|
|
18
|
+
# so every gettsim.* module loads with runtime type checks installed via
|
|
19
|
+
# INTERNAL_CONF. This claw is independent of ttsim's; both share the
|
|
20
|
+
# same `INTERNAL_CONF` so violations under either claw surface as
|
|
21
|
+
# beartype's own `BeartypeCallHintViolation`. User-facing constructors
|
|
22
|
+
# inherited from ttsim keep their `@beartype(conf=...)` decorators that
|
|
23
|
+
# map violations to the relevant `ttsim.exceptions.*` class.
|
|
24
|
+
#
|
|
25
|
+
# On by default (GEP 9, Option A): every `import gettsim` installs the
|
|
26
|
+
# claw, so runtime type checks are active for everyone without any action.
|
|
27
|
+
# The env var stays as an opt-out — set `GETTSIM_BEARTYPE_CLAW=0` to
|
|
28
|
+
# disable the claw for one process or environment.
|
|
29
|
+
if os.environ.get("GETTSIM_BEARTYPE_CLAW", "1") != "0":
|
|
30
|
+
from beartype.claw import beartype_package
|
|
31
|
+
|
|
32
|
+
from gettsim._beartype_conf import INTERNAL_CONF
|
|
33
|
+
|
|
34
|
+
beartype_package("gettsim", conf=INTERNAL_CONF)
|
|
35
|
+
|
|
5
36
|
try:
|
|
6
37
|
# Import the version from _version.py which is dynamically created by
|
|
7
38
|
# setuptools-scm upon installing the project with pip.
|
|
@@ -34,6 +65,7 @@ from ttsim import (
|
|
|
34
65
|
)
|
|
35
66
|
from ttsim.main_args import MainArg
|
|
36
67
|
from ttsim.main_args import OrigPolicyObjects as TTSimOrigPolicyObjects
|
|
68
|
+
from ttsim.tt import UnitSystem
|
|
37
69
|
|
|
38
70
|
from gettsim import germany
|
|
39
71
|
|
|
@@ -85,6 +117,7 @@ def main(
|
|
|
85
117
|
tt_targets: TTTargets | None = None,
|
|
86
118
|
rounding: bool = True,
|
|
87
119
|
backend: Literal["numpy", "jax"] = "numpy",
|
|
120
|
+
data_currency: str | None = None,
|
|
88
121
|
evaluation_date_str: DashedISOString | None = None,
|
|
89
122
|
include_fail_nodes: bool = True,
|
|
90
123
|
include_warn_nodes: bool = True,
|
|
@@ -92,6 +125,7 @@ def main(
|
|
|
92
125
|
policy_date: datetime.date | None = None,
|
|
93
126
|
evaluation_date: datetime.date | None = None,
|
|
94
127
|
orig_policy_objects: OrigPolicyObjects | None = None,
|
|
128
|
+
unit_system: UnitSystem | None = None,
|
|
95
129
|
policy_environment: PolicyEnvironment | None = None,
|
|
96
130
|
processed_data: QNameData | None = None,
|
|
97
131
|
labels: Labels | None = None,
|
|
@@ -106,6 +140,8 @@ def main(
|
|
|
106
140
|
orig_policy_objects = cast(
|
|
107
141
|
"OrigPolicyObjects", TTSimOrigPolicyObjects.root(germany.ROOT_PATH)
|
|
108
142
|
)
|
|
143
|
+
if unit_system is None:
|
|
144
|
+
unit_system = germany.UNIT_SYSTEM
|
|
109
145
|
|
|
110
146
|
return _ttsim.main(**locals())
|
|
111
147
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""`BeartypeConf` instances for gettsim's perimeter and internal claws.
|
|
2
|
+
|
|
3
|
+
gettsim does not add user-facing constructors beyond those that ttsim
|
|
4
|
+
already provides; every per-component conf re-exported here points at a
|
|
5
|
+
`ttsim.exceptions.*` class. Decorators in gettsim's policy modules can
|
|
6
|
+
import these by name without taking a direct dependency on the backend
|
|
7
|
+
package path.
|
|
8
|
+
|
|
9
|
+
`INTERNAL_CONF` is the conf used by the package-wide claw registered in
|
|
10
|
+
`gettsim/__init__.py`. It matches ttsim's `INTERNAL_CONF`: violations
|
|
11
|
+
inside gettsim modules surface as beartype's own
|
|
12
|
+
`BeartypeCallHintViolation`, not as a project exception.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from ttsim._beartype_conf import (
|
|
16
|
+
AGGREGATION_CONF,
|
|
17
|
+
ENTRY_POINT_CONF,
|
|
18
|
+
GROUP_CREATION_CONF,
|
|
19
|
+
INPUT_DATA_CONF,
|
|
20
|
+
INTERNAL_CONF,
|
|
21
|
+
PARAM_FUNCTION_CONF,
|
|
22
|
+
POLICY_FUNCTION_CONF,
|
|
23
|
+
POLICY_INPUT_CONF,
|
|
24
|
+
ROUNDING_SPEC_CONF,
|
|
25
|
+
TT_TARGETS_CONF,
|
|
26
|
+
project_conf,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
__all__ = [
|
|
30
|
+
"AGGREGATION_CONF",
|
|
31
|
+
"ENTRY_POINT_CONF",
|
|
32
|
+
"GROUP_CREATION_CONF",
|
|
33
|
+
"INPUT_DATA_CONF",
|
|
34
|
+
"INTERNAL_CONF",
|
|
35
|
+
"PARAM_FUNCTION_CONF",
|
|
36
|
+
"POLICY_FUNCTION_CONF",
|
|
37
|
+
"POLICY_INPUT_CONF",
|
|
38
|
+
"ROUNDING_SPEC_CONF",
|
|
39
|
+
"TT_TARGETS_CONF",
|
|
40
|
+
"project_conf",
|
|
41
|
+
]
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '1.
|
|
22
|
-
__version_tuple__ = version_tuple = (1,
|
|
21
|
+
__version__ = version = '1.3'
|
|
22
|
+
__version_tuple__ = version_tuple = (1, 3)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Exception hierarchy for gettsim.
|
|
2
|
+
|
|
3
|
+
gettsim reuses the `ttsim.exceptions` vocabulary; there is no
|
|
4
|
+
gettsim-specific base class. Every exception raised by gettsim — whether
|
|
5
|
+
from the German policy code in `gettsim.germany` or from a beartype
|
|
6
|
+
violation re-raised at a user-facing boundary — is a subclass of
|
|
7
|
+
`ttsim.exceptions.TTSIMError`.
|
|
8
|
+
|
|
9
|
+
Importing from `gettsim.exceptions` rather than `ttsim.exceptions` keeps
|
|
10
|
+
gettsim callers from depending on the backend package's import path. The
|
|
11
|
+
two names refer to the same classes.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from ttsim.exceptions import (
|
|
15
|
+
AggregationDefinitionError,
|
|
16
|
+
EntryPointError,
|
|
17
|
+
GroupCreationDefinitionError,
|
|
18
|
+
InputDataError,
|
|
19
|
+
ParamFunctionDefinitionError,
|
|
20
|
+
PolicyFunctionDefinitionError,
|
|
21
|
+
PolicyInputDefinitionError,
|
|
22
|
+
RoundingSpecError,
|
|
23
|
+
TTSIMError,
|
|
24
|
+
TTTargetsError,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
"AggregationDefinitionError",
|
|
29
|
+
"EntryPointError",
|
|
30
|
+
"GroupCreationDefinitionError",
|
|
31
|
+
"InputDataError",
|
|
32
|
+
"ParamFunctionDefinitionError",
|
|
33
|
+
"PolicyFunctionDefinitionError",
|
|
34
|
+
"PolicyInputDefinitionError",
|
|
35
|
+
"RoundingSpecError",
|
|
36
|
+
"TTSIMError",
|
|
37
|
+
"TTTargetsError",
|
|
38
|
+
]
|
|
@@ -2,9 +2,21 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
|
|
5
|
+
from ttsim.tt import Currency, UnitSystem, register_unit_builder_levels
|
|
6
|
+
|
|
5
7
|
ROOT_PATH = Path(__file__).parent
|
|
6
8
|
|
|
7
9
|
|
|
10
|
+
register_unit_builder_levels(["hh", "ehe", "fg", "bg", "eg", "wthh", "sn"])
|
|
11
|
+
|
|
12
|
+
UNIT_SYSTEM = UnitSystem(
|
|
13
|
+
currencies={
|
|
14
|
+
"EUR": Currency(statutory_from="2002-01-01"),
|
|
15
|
+
"DM": Currency(value="EUR / 1.95583", statutory_from="0001-01-01"),
|
|
16
|
+
},
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
|
|
8
20
|
WARNING_MSG_FOR_GETTSIM_BG_ID_WTHH_ID_ETC = """
|
|
9
21
|
You requested (at least one of)
|
|
10
22
|
|