Skip to content

0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Jan 17:55

Changelog

New Features

  • New new_console argument: On Windows, when set to true (default), the script now automatically opens in a new terminal window
  • Default values for RAM management: Added default values of 95% for ram_threshold and 85% for ram_safe
  • Graceful process termination: Implemented friendlier process shutdown, first attempting SIGTERM/CTRL_C_EVENT before forcing termination, with a 3-second grace period for proper closure

Improvements

  • Improved CI workflow in release.yml file
  • Updated README in both English and Portuguese
  • Updated Cookbook examples with new changes
  • Implemented dataclasses for better code structure
  • Enhanced static typing throughout the codebase
  • Added RamConfig and Callbacks to Fortscript module exports

Bug Fixes

  • Fixed various issues identified by linter

Breaking Changes

Changes to FortScript class constructor signature:

Before (v0.3.0):

FortScript(
    config_path='fortscript.yaml',
    projects=None,
    heavy_process=None,
    ram_threshold=None,
    ram_safe=None,
    on_pause=None,
    on_resume=None,
    log_level=None,
)

Now (v0.4.0):

FortScript(
    config_path: str = 'fortscript.yaml',
    projects: list[ProjectConfig] | None = None,
    heavy_process: list[HeavyProcessConfig] | None = None,
    ram_config: RamConfig | None = None,
    callbacks: Callbacks | None = None,
    log_level: str | int | None = None,
    new_console: bool = True,
)

Key changes:

  • Parameters ram_threshold, ram_safe, on_pause and on_resume have been grouped into RamConfig and Callbacks objects
  • Added new new_console parameter
  • Explicit typing on all parameters

What's Changed

Full Changelog: 0.3.0...0.4.0