From 407151878361badba63bb809c75cc3a877778de8 Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Mon, 18 Sep 2023 17:57:38 -0400 Subject: [PATCH] Don't track code coverage temporary files While running tests with coverage enabled, files of the form .coverage.MachineName.####.###### are created temporarily. When tests complete normally (whether or not there are failures), these files are automatically removed. However, when tests are cancelled with SIGINT (Ctrl+C), they are sometimes retained. This adds another pattern to .gitignore so that, in addition to not tracking the .coverage file that is retained after tests, these other temporary files are also not tracked. --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 0bd307639..e8b16da9d 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ venv/ /lib/GitPython.egg-info cover/ .coverage +.coverage.* /build /dist /doc/_build