Skip to content

Remove global PROJECT variable and load_settings #94

@1-Bart-1

Description

@1-Bart-1

Currently, global variables make it difficult to reason about and track settings, especially when using multiple Settings instances during testing. Each Settings instance should have its own unique project variable and settings struct, which is already possible.

To simplify the package and encourage users to instantiate Settings via the constructor instead of using load_settings(...), I propose removing support for load_settings(...) and eliminating global state. This will lead to clearer, more maintainable code and better testing practices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions