Title: Fix `_uv_init_dir` fixture to use current Python version for `requires-python` by Copilot · Pull Request #1862 · usethis-python/usethis-python · GitHub
Open Graph Title: Fix `_uv_init_dir` fixture to use current Python version for `requires-python` by Copilot · Pull Request #1862 · usethis-python/usethis-python
X Title: Fix `_uv_init_dir` fixture to use current Python version for `requires-python` by Copilot · Pull Request #1862 · usethis-python/usethis-python
Description: Identify root cause: _uv_init_dir fixture hardcodes --python 3.13, causing requires-python = ">=3.13" mismatch with CI Python 3.10 Add test_uv_init_dir_requires_python_compatible to tests/test_suite.py as a guard test Fix _uv_init_dir fixture in conftest.py to use the current Python version Add skipif(sys.version_info < (3, 11)) to test_config and test_pre_commit_integration (they assume no tomli is added, which is only true on Python >= 3.11) Add test_config_with_tomli and test_pre_commit_integration_with_tomli that skip on Python >= 3.11 and verify the tomli-inclusive output on Python 3.10 Add is_uv_python_available(version) to src/_test.py: queries uv python list --only-installed to check if a Python version is available via uv, independent of the current interpreter Fix test_file_doesnt_exist skip condition: add sys.version_info > (3, 13) — Python 3.13 may be installed in uv but uv python pin 3.13 fails when requires-python = ">=3.14" (Python 3.14 runner). Follow-up: #1872 Add tests for is_uv_python_available in tests/test__test.py (7 tests covering: current Python available, nonsense version, uv not found, version matched/unmatched from mocked output, empty output, partial version non-match) All static checks pass (prek + basedpyright)
Open Graph Description: Identify root cause: _uv_init_dir fixture hardcodes --python 3.13, causing requires-python = ">=3.13" mismatch with CI Python 3.10 Add test_uv_init_dir_requires_python_compatible to t...
X Description: Identify root cause: _uv_init_dir fixture hardcodes --python 3.13, causing requires-python = ">=3.13" mismatch with CI Python 3.10 Add test_uv_init_dir_requires_python_com...
Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1862
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4ec7f69d-16f2-eecc-f9f0-c2771efcffa7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D6B8:5105D:1394574:1B216D0:6A4EA2F8 |
| html-safe-nonce | f5c71ec557dc011b81f1303170de604bb7ec0d674f60ba142d220d5b98c76a11 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkI4OjUxMDVEOjEzOTQ1NzQ6MUIyMTZEMDo2QTRFQTJGOCIsInZpc2l0b3JfaWQiOiIyMDM4MTM0MjA3NjI5MTQwNzI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f8273a76d46562f64e6ca8c47568a03d37d7af042b8ee91a25c1bccaf8d94cb0 |
| hovercard-subject-tag | pull_request:3497502930 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/usethis-python/usethis-python/pull/1862/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | Identify root cause: _uv_init_dir fixture hardcodes --python 3.13, causing requires-python = ">=3.13" mismatch with CI Python 3.10 Add test_uv_init_dir_requires_python_compatible to t... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width