Skip to content

Commit 55d5e4d

Browse files
committed
Rm unnecessary STAGPY_ISOLATED env var
1 parent 1efe17a commit 55d5e4d

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

docs/conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020

2121
sys.path.insert(0, os.path.abspath(".."))
2222

23-
# do not try to create/read config files
24-
os.environ["STAGPY_ISOLATED"] = "True"
25-
2623
import stagpy
2724

2825
html_theme = "sphinx_rtd_theme"

stagpy/__init__.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
documentation at
55
https://stagpy.readthedocs.io/en/stable/
66
7-
If the environment variable STAGPY_ISOLATED is set to a truthy value, StagPy
8-
does not attempt to read any configuration file (including mplstyle).
9-
107
When using the CLI interface, if the environment variable STAGPY_DEBUG is set
118
to a truthy value, warnings are issued normally and StagpyError are raised.
129
Otherwise, warnings are ignored and only a short form of encountered
@@ -36,7 +33,6 @@ def _env(var: str) -> bool:
3633

3734

3835
DEBUG = _env("STAGPY_DEBUG")
39-
ISOLATED = _env("STAGPY_ISOLATED")
4036

4137

4238
def sigint_handler(*_: Any) -> NoReturn:
@@ -65,9 +61,8 @@ def sigint_handler(*_: Any) -> NoReturn:
6561
__version__ = "unknown"
6662

6763
conf = config.Config.default_()
68-
if not ISOLATED:
69-
if config.CONFIG_LOCAL.is_file():
70-
conf.update_from_file_(config.CONFIG_LOCAL)
64+
if config.CONFIG_LOCAL.is_file():
65+
conf.update_from_file_(config.CONFIG_LOCAL)
7166

7267
if not DEBUG:
7368
signal.signal(signal.SIGINT, _PREV_INT)

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ deps =
1717
commands =
1818
stagpy version
1919
pytest --cov={envsitepackagesdir}/stagpy --cov-report term-missing {posargs}
20-
setenv = STAGPY_ISOLATED=True
2120

2221
[testenv:py312]
2322
setenv =
24-
STAGPY_ISOLATED=True
2523
COVERAGE_CORE=sysmon
2624

2725
[testenv:mypy]

0 commit comments

Comments
 (0)