File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -551,8 +551,26 @@ Base options
551
551
.. conf ::
552
552
:keys: set_env, setenv
553
553
554
- A dictionary of environment variables to set when running commands in the tox environment. Lines starting with a
555
- ``file| `` prefix define the location of environment file.
554
+ A dictionary of environment variables to set when running commands in the tox environment.
555
+
556
+ In addition, there is an option to include an existing environment file. See the different syntax for TOML and INI below.
557
+
558
+ .. tab :: TOML
559
+
560
+ .. code-block :: toml
561
+
562
+ [tool.tox.env_run_base]
563
+ set_env = { file = "conf{/}local.env", TEST_TIMEOUT = 30 }
564
+
565
+ .. tab :: INI
566
+
567
+
568
+ .. code-block :: ini
569
+
570
+ [testenv]
571
+ set_env = file|conf{/}local.env
572
+ TEST_TIMEOUT = 30
573
+
556
574
557
575
.. note ::
558
576
You can’t perform that action at this time.
0 commit comments