Safe-DS / Runner

Execute Safe-DS programs that were compiled to Python.
MIT License
2 stars 0 forks source link

feat: cleaner public api #54

Closed lars-reimann closed 8 months ago

lars-reimann commented 8 months ago

Closes #53

Summary of Changes

Define a small public interface consisting of

These are used by the code generator of the DSL.

github-actions[bot] commented 8 months ago

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 12 0 0 0.97s
✅ PYTHON mypy 12 0 2.36s
✅ PYTHON ruff 12 0 0 0.03s
✅ REPOSITORY git_diff yes no 0.02s

See detailed report in MegaLinter reports _Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff_

_MegaLinter is graciously provided by OX Security_

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (50f30a3) 100.00% compared to head (a61384e) 100.00%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #54 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 10 11 +1 Lines 499 500 +1 ========================================= + Hits 499 500 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

lars-reimann commented 8 months ago

@WinPlay02 Would you mind reviewing this?

lars-reimann commented 8 months ago

It's also quite interesting that when I also add start_server to src/safeds_runner/__init__.py, the runtime of the tests increases from roughly 15s to 33s. This is apparently due to the imports of Image and Table in src/safeds_runner/server/_json_encoder.py, which then gets imported transitively.

lars-reimann commented 8 months ago

:tada: This PR is included in version 0.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: