Skip to content

Commit

Permalink
temp_dir should be .temp not .tmp
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Dec 7, 2022
1 parent 554bd0a commit e178aac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/changelog/2612.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change :ref:`temp_dir` from ``.tmp`` to ``.temp`` - by :user:`gaborbernat`.
2 changes: 1 addition & 1 deletion docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Core

.. conf::
:keys: temp_dir
:default: {tox_root}/.tmp
:default: {tox_root}/.temp

Directory where to put tox temporary files. For example: we create a hard link (if possible, otherwise new copy) in
this directory for the project package. This ensures tox works correctly when having parallel runs (as each session
Expand Down
2 changes: 1 addition & 1 deletion src/tox/config/sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def work_dir_builder(conf: Config, env_name: str | None) -> Path: # noqa: U100
self.add_config(
keys=["temp_dir"],
of_type=Path,
default=lambda conf, _: cast(Path, self["tox_root"]) / ".tmp", # noqa: U100, U101
default=lambda conf, _: cast(Path, self["tox_root"]) / ".temp", # noqa: U100, U101
desc="temporary directory cleaned at start",
)

Expand Down

0 comments on commit e178aac

Please sign in to comment.