Louis Gesbert
89e90271c1
Implement an additional localised, user-facing value printer
2023-07-03 16:42:54 +02:00
Louis Gesbert
0f9ee2c72e
Refacter the main Driver
module
...
- Use separate functions for successive passes in module `Driver.Passes`
- Use other functions for end results printing in module `Driver.Commands`
As a consequence, it is much more flexible to use by plugins or libs and we no
longer need the complex polymorphic variant parameter.
This patch leverages previous changes to use Cmdliner subcommands and
effectively specialises the flags of each Catala subcommand.
Other changes include:
- an attempt to normalise the generic options and reduce the number of global
references. Some are ok, like `debug` ; some would better be further cleaned up,
e.g. the ones used by Proof backend were moved to a `Proof.globals` module and
need discussion. The printer no longer relies on the global languages and prints
money amounts in an agnostic way.
- the plugin directory is automatically guessed and loaded even in dev setups.
Plugins are shown by the main `catala` command and listed in `catala --help`
- exception catching at the toplevel has been refactored a bit as well; return
codes are normalised to follow the manpage and avoid codes >= 128 that are
generally reserved for shells.
Update tests
2023-07-03 16:42:54 +02:00
Denis Merigoux
420348beda
Added a last TODO and put big example under CI
2023-06-18 21:38:00 +02:00
Denis Merigoux
38081245b8
Really fix #466
2023-05-23 16:39:21 +02:00
Denis Merigoux
a00501fffa
Fix typo causing bad parsing
2023-05-23 15:39:41 +02:00
Denis Merigoux
e092679b75
Fixing #466 by reversing exception precedence
2023-05-23 14:12:26 +02:00
Denis Merigoux
d70886431d
Fix false positive found by proof mode with an assertion clearly stating the impossible situations
2023-04-28 10:39:19 +02:00
Denis Merigoux
e6bccd716d
Fix a Catala program bug thanks to Proof mode!
2023-04-27 18:03:27 +02:00
Denis Merigoux
a954942fd9
Bug in the law found with proof mode?
2023-04-27 16:58:40 +02:00
Denis Merigoux
9b056f3ca1
Update assets and fix errors after rebase
2023-04-27 12:18:50 +02:00
Denis Merigoux
14dd879cc5
Restore tests, update assets
2023-04-27 12:14:27 +02:00
Denis Merigoux
e920529fad
Fix with informations by @JusBanuls
2023-04-27 12:14:16 +02:00
Denis Merigoux
9b06bb66db
Fix tests and restore CI
2023-04-27 12:14:16 +02:00
Denis Merigoux
26078d2882
Plus d'informations
2023-04-27 12:13:50 +02:00
Denis Merigoux
7451516ba2
Beginning to incorporate remarks by DHUP
2023-04-27 12:13:50 +02:00
Denis Merigoux
ada8e4941a
Delete variable EVERYWHERE
2023-04-27 12:13:50 +02:00
Denis Merigoux
e7f56b4310
Removed useless variable
2023-04-27 12:13:19 +02:00
Denis Merigoux
28577c7a5e
Fix tests with @JusBanuls
2023-04-27 12:10:47 +02:00
Denis Merigoux
25d6178d42
Add training lines
2023-04-27 12:10:47 +02:00
JusBanuls
537acd320d
Ajouts de plusieurs tests et correction de bugs
2023-04-27 12:10:14 +02:00
Denis Merigoux
ea4d6dcafe
Fixes by Justine
2023-04-27 12:09:22 +02:00
Denis Merigoux
19b33eaa96
Add lint and fix bugs related
2023-04-27 12:09:22 +02:00
Denis Merigoux
b2beec0bcc
Fixing #444 and #445
2023-04-27 12:09:22 +02:00
Denis Merigoux
dd3965c639
Fix typo
2023-04-27 12:08:00 +02:00
Denis Merigoux
3f1ed227d5
Fix small heading issues
2023-04-27 12:08:00 +02:00
JusBanuls
891ebbddff
Ajout d'un test AL locatif pour Saint-Pierre-et-Miquelon
2023-04-27 12:08:00 +02:00
Denis Merigoux
f877544368
Remove optimizations for big tests
2023-04-18 15:56:04 +02:00
adelaett
5e46253140
removed one remaning debuging print, and updating all the tests
2023-04-14 17:59:08 +02:00
Denis Merigoux
16ab1b310d
Restore tests
2023-04-03 18:32:33 +02:00
Denis Merigoux
18382b99f5
Further clean from prestations_familiales elements belonging to allocations_familiales
2023-04-03 18:13:53 +02:00
Denis Merigoux
7d25ab6e24
Removed useless received benefits
2023-04-03 17:58:35 +02:00
Denis Merigoux
a5b09cb3d8
Remove field used for resources computation
2023-04-03 17:57:21 +02:00
Denis Merigoux
602a3bb6e9
Removed useless prestation_courante marker
2023-04-03 17:54:41 +02:00
Denis Merigoux
fccdacf484
Fixed bug found through linting
...
limitation personnes à charges
(variable not used)
2023-04-03 17:53:28 +02:00
Denis Merigoux
6abe8e0123
Remove code about income calibration (unfinished stub)
2023-04-03 17:06:08 +02:00
Denis Merigoux
19f44a8ab3
Fix bug found through linting:
...
eligibility for moving benefits was not used!
2023-04-03 16:59:45 +02:00
Denis Merigoux
d7bcc8e506
Remove code for wealth computation because part of resources computation
...
we're not doing resources computation yet
2023-04-03 15:16:41 +02:00
Denis Merigoux
c74d8870e6
Revert "Removed unused code thanks to linting"
...
This reverts commit b3e39d2d24
.
2023-04-03 14:16:02 +02:00
Denis Merigoux
ad02a0959d
Merge branch 'master' into aides_logement_outre_mer
2023-04-03 14:12:10 +02:00
Denis Merigoux
d147238088
Apply suggestions by @altgr
2023-04-03 13:42:14 +02:00
Denis Merigoux
e80143b3ca
Last linting pass and update tests
2023-03-31 17:56:45 +02:00
Denis Merigoux
6d71d52a2e
Update tests and create disable_warnings option
2023-03-31 16:43:03 +02:00
Denis Merigoux
0057afc623
Fixing things after @JusBanuls' review pass on the code!
2023-03-31 15:34:50 +02:00
Denis Merigoux
b3e39d2d24
Removed unused code thanks to linting
2023-03-31 13:57:07 +02:00
Denis Merigoux
6d503e2646
Fix differences with Légifrance
2023-03-28 14:49:27 +02:00
Denis Merigoux
3417d07945
Fixed bug in L861-5-1
2023-03-28 12:09:52 +02:00
Denis Merigoux
96fb716f50
Fix test
2023-03-21 17:16:14 +01:00
JusBanuls
51e638ecbe
Tests Accession à la propriété - Outre-Mers
2023-03-21 16:11:32 +01:00
Denis Merigoux
1a7982d225
Better printing
2023-03-21 11:24:19 +01:00
Denis Merigoux
dcf954f450
Finished implementing DOM-TOM
2023-03-20 22:01:30 +01:00