File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed
Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 2020
2121sys .path .insert (0 , os .path .abspath (".." ))
2222
23- # do not try to create/read config files
24- os .environ ["STAGPY_ISOLATED" ] = "True"
25-
2623import stagpy
2724
2825html_theme = "sphinx_rtd_theme"
Original file line number Diff line number Diff line change 44documentation at
55https://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-
107When using the CLI interface, if the environment variable STAGPY_DEBUG is set
118to a truthy value, warnings are issued normally and StagpyError are raised.
129Otherwise, warnings are ignored and only a short form of encountered
@@ -36,7 +33,6 @@ def _env(var: str) -> bool:
3633
3734
3835DEBUG = _env ("STAGPY_DEBUG" )
39- ISOLATED = _env ("STAGPY_ISOLATED" )
4036
4137
4238def sigint_handler (* _ : Any ) -> NoReturn :
@@ -65,9 +61,8 @@ def sigint_handler(*_: Any) -> NoReturn:
6561 __version__ = "unknown"
6662
6763conf = 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
7267if not DEBUG :
7368 signal .signal (signal .SIGINT , _PREV_INT )
Original file line number Diff line number Diff line change @@ -17,11 +17,9 @@ deps =
1717commands =
1818 stagpy version
1919 pytest --cov ={envsitepackagesdir}/stagpy --cov-report term-missing {posargs}
20- setenv = STAGPY_ISOLATED =True
2120
2221[testenv:py312]
2322setenv =
24- STAGPY_ISOLATED =True
2523 COVERAGE_CORE =sysmon
2624
2725[testenv:mypy]
You can’t perform that action at this time.
0 commit comments