Use config descriptor system from pystencils
Compare changes
+ 18
− 92
@@ -3,101 +3,27 @@ from __future__ import annotations
@@ -3,101 +3,27 @@ from __future__ import annotations
"""Get the value set for the specified option, or the option's default value if none has been set."""
@@ -132,7 +58,7 @@ class OutputMode(Enum):
@@ -132,7 +58,7 @@ class OutputMode(Enum):
@@ -150,20 +76,20 @@ class CodeStyle(ConfigBase):
@@ -150,20 +76,20 @@ class CodeStyle(ConfigBase):
"""Code style to be used by clang-format. Passed verbatim to `--style` argument of the clang-format CLI.
Similar to clang-format itself, the default value is `file`, such that a `.clang-format` file found in the build
@@ -194,7 +120,7 @@ GLOBAL_NAMESPACE = _GlobalNamespace()
@@ -194,7 +120,7 @@ GLOBAL_NAMESPACE = _GlobalNamespace()
@@ -203,7 +129,7 @@ class SfgConfig(ConfigBase):
@@ -203,7 +129,7 @@ class SfgConfig(ConfigBase):
"""The generator's output mode; defines which files to generate, and the set of legal file extensions.
@@ -213,7 +139,7 @@ class SfgConfig(ConfigBase):
@@ -213,7 +139,7 @@ class SfgConfig(ConfigBase):
@@ -221,7 +147,7 @@ class SfgConfig(ConfigBase):
@@ -221,7 +147,7 @@ class SfgConfig(ConfigBase):
@@ -229,7 +155,7 @@ class SfgConfig(ConfigBase):
@@ -229,7 +155,7 @@ class SfgConfig(ConfigBase):
@@ -240,7 +166,7 @@ class SfgConfig(ConfigBase):
@@ -240,7 +166,7 @@ class SfgConfig(ConfigBase):