12 Commits

Author SHA1 Message Date
Pierre-Marie de Rodat
6e88d6ec25 Lkt: revamp the module system 2026-01-20 16:03:43 +00:00
Pierre-Marie de Rodat
6cefc74c93 Set up pre-commit checks and reformat the Python sources with black 2025-03-26 14:04:20 +00:00
Pierre-Marie de Rodat
df84be5d5d python_api/app: fix testcase for Python <3.9 2024-10-18 12:24:37 +00:00
Pierre-Marie de Rodat
54a7dd3a6c Modernize type annotations 2024-10-16 15:23:56 +00:00
Pierre-Marie de Rodat
e1c4fe5804 Introduce the lkt_build_and_run test driver
Transition all relevant testcases to it. In the process, port
docstrings/comments from test.py files to expected_concrete_syntax.lkt
(now test.lkt) sources and fix stylechecks issues there.
2024-10-15 14:13:10 +00:00
Romain Beguet
05362a5e93 Improve style and fix formatting issues in dsl_unparse. 2024-07-03 08:23:35 +00:00
Pierre-Marie de Rodat
f75832df8a langkit.dsl_unparse: minor style tweaks 2023-12-13 13:55:06 +00:00
Pierre-Marie de Rodat
cf404171ea Python App: add parsing errors handling for requested units
By default, make App instances print parsing errors for all requested
units on the standard output, and let subclasses override this behavior
if needed.

Also extend the Python playground so that parsing errors fit nicely into
the prompt header.
2023-07-25 19:03:32 +00:00
Pierre-Marie de Rodat
b298a62b39 python_api/app: fix propagation of path_wrapper to subprocesses
TN: VA12-016
2022-12-05 16:13:40 +00:00
Pierre-Marie de Rodat
52297d3c8c Python API: allow App subclasses to associate event handlers to contexts
TN: VA12-016
2022-11-23 12:37:21 +00:00
Pierre-Marie de Rodat
dc16344d15 python_api/app: refactor testcase
TN: VA12-016
2022-11-23 12:37:21 +00:00
Pierre-Marie de Rodat
5c9eea0853 python_api/python_app: rename to python_api/app
TN: VA12-016
2022-11-23 12:37:21 +00:00