Title: Don't track code coverage temporary files by EliahKagan · Pull Request #1666 · gitpython-developers/GitPython · GitHub
Open Graph Title: Don't track code coverage temporary files by EliahKagan · Pull Request #1666 · gitpython-developers/GitPython
X Title: Don't track code coverage temporary files by EliahKagan · Pull Request #1666 · gitpython-developers/GitPython
Description: While running tests with coverage enabled (as is automatically the case in this project), files of the form .coverage.MachineName.####.###### are created temporarily. For example, on my system, one of the names was recently .coverage.Glub.7791.638878. 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. Further considerations: This also has the benefit of avoiding a situation at development time where one runs tests and also stages deliberate code changes at the same time, causing these files to be unintentionally staged along with the code. Relatedly, editors that frequently update with information about source control changes will no longer show these entries flashing in and out of existence, and (least importantly) such editors may run slightly faster in some cases. I considered simply changing existing .coverage pattern to .coverage*, but I decided against it, because if someone ever introduces a .coveragerc file, they would expect that not to be ignored by source control. (They should probably not do this, since pyproject.toml is being used for this instead, but if they do, then it should not be automatically ignored.)
Open Graph Description: While running tests with coverage enabled (as is automatically the case in this project), files of the form .coverage.MachineName.####.###### are created temporarily. For example, on my system, one...
X Description: While running tests with coverage enabled (as is automatically the case in this project), files of the form .coverage.MachineName.####.###### are created temporarily. For example, on my system, one...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/1666
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:c05f1c45-743e-c744-6759-672dbce5eb0e |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | C6FE:293FA:1209A85:1938978:6968AFF7 |
| html-safe-nonce | 3315696f9a9f71f9312cea18e90a7f55aa20031f5cdf30ca89d14cb49c9fecb6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkZFOjI5M0ZBOjEyMDlBODU6MTkzODk3ODo2OTY4QUZGNyIsInZpc2l0b3JfaWQiOiI3Mjk3MzIyNjYyMjkzNDUwNzQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ba80a2d0a2587cbddc52861d5c6ed42094a52ab37dadc136201c4611beac4711 |
| hovercard-subject-tag | pull_request:1520297024 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/1666/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| og:image:alt | While running tests with coverage enabled (as is automatically the case in this project), files of the form .coverage.MachineName.####.###### are created temporarily. For example, on my system, one... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdc7c66bd36a6c12eb8e771e806db863266e573fc299e77f27505a768d4f8a98 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3223a6503d318917691422cdadfbe16cd8fb21e5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width