Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Unreleased

* Add `use_git_change_detection` config (default true) to opt out of git-based detection

* Add `uv.lock`, `poetry.lock`, `Pipfile.lock`, and `pdm.lock` to the list of files copied by default

* Invalidate cached results automatically when result-affecting config fields change


Expand Down
4 changes: 4 additions & 0 deletions src/mutmut/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def _load_config() -> Config:
Path("test/"),
Path("setup.cfg"),
Path("pyproject.toml"),
Path("uv.lock"),
Path("poetry.lock"),
Path("Pipfile.lock"),
Path("pdm.lock"),
]
+ list(Path(".").glob("test*.py")),
max_stack_depth=s("max_stack_depth", -1),
Expand Down
4 changes: 4 additions & 0 deletions tests/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,7 @@ def test_also_copy_includes_defaults(self, in_tmp_dir: Path):
assert Path("test/") in config.also_copy
assert Path("setup.cfg") in config.also_copy
assert Path("pyproject.toml") in config.also_copy
assert Path("uv.lock") in config.also_copy
assert Path("poetry.lock") in config.also_copy
assert Path("Pipfile.lock") in config.also_copy
assert Path("pdm.lock") in config.also_copy
Loading