[{"data":1,"prerenderedAt":1893},["ShallowReactive",2],{"page-\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Ftesting-a-cli-across-python-versions-with-github-actions\u002F":3,"content-directory":1345},{"id":4,"title":5,"body":6,"date":1330,"description":1331,"difficulty":1332,"draft":1333,"extension":1334,"meta":1335,"navigation":196,"path":1336,"seo":1337,"stem":1338,"tags":1339,"updated":1330,"__hash__":1344},"content\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Ftesting-a-cli-across-python-versions-with-github-actions\u002Findex.md","Testing a CLI Across Python Versions in GitHub Actions",{"type":7,"value":8,"toc":1310},"minimark",[9,28,33,70,74,81,85,88,92,812,817,849,868,887,910,920,930,934,940,943,953,957,960,1005,1009,1012,1015,1157,1175,1182,1186,1192,1196,1200,1214,1222,1230,1234,1241,1245,1251,1255,1270,1274,1306],[10,11,12,13,17,18,21,22,27],"p",{},"Your CLI declares ",[14,15,16],"code",{},"requires-python = \">=3.10\"",", and your tests pass on the 3.13 you develop with. Then a user on 3.10 reports ",[14,19,20],{},"AttributeError: type object 'Path' has no attribute 'walk'",", and a Windows user reports that every path in the output has the wrong separator. Neither bug was hard to fix; both were impossible to see from your machine. A CI test matrix runs your suite on the combinations your users actually have. This guide builds one in GitHub Actions with uv — every supported Python on Linux, the extremes on Windows and macOS, an extra job at your lowest declared dependency versions — explains the fail-fast and caching choices, and shows how to reproduce any failing job locally. It is part of the ",[23,24,26],"a",{"href":25},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002F","CI\u002FCD pipelines topic",".",[29,30,32],"h2",{"id":31},"prerequisites","Prerequisites",[34,35,36,56,67],"ul",{},[37,38,39,40,43,44,47,48,51,52,27],"li",{},"A CLI project managed with uv, with a ",[14,41,42],{},"uv.lock"," committed and tests in ",[14,45,46],{},"tests\u002F"," runnable with ",[14,49,50],{},"uv run pytest",". See ",[23,53,55],{"href":54},"\u002Fproject-setup-dependency-management\u002Fuv-for-python-cli-dependency-management\u002F","uv for Python CLI dependency management",[37,57,58,59,62,63,66],{},"Development dependencies in a ",[14,60,61],{},"dev"," dependency group (",[14,64,65],{},"uv add --dev pytest",").",[37,68,69],{},"A GitHub repository with Actions enabled.",[29,71,73],{"id":72},"choosing-the-matrix","Choosing the matrix",[10,75,76,77,80],{},"Start from your support policy. ",[14,78,79],{},"requires-python"," states the oldest version you support; the newest is the latest stable CPython release. Everything in between is supported implicitly. Each combination you test costs runner time, and Windows and macOS runners are slower and — for private repositories — billed at a multiple of Linux minutes. The trade-off that serves most CLI projects:",[82,83],"inline-diagram",{"name":84},"ci-matrix-grid",[10,86,87],{},"Version-specific bugs (new syntax, removed deprecations, stdlib additions) show up on Linux as reliably as anywhere, so test every version there. Platform-specific bugs (paths, encodings, subprocess behaviour, terminal handling) show up on any Python version, so Windows and macOS only need the oldest and newest — the oldest because it is where \"I used something too new\" appears, the newest because it is where deprecations become errors. Nine jobs instead of fifteen, with almost no loss of coverage.",[29,89,91],{"id":90},"the-recipe","The recipe",[93,94,99],"pre",{"className":95,"code":96,"language":97,"meta":98,"style":98},"language-yaml shiki shiki-themes github-light github-dark","# .github\u002Fworkflows\u002Ftests.yml\nname: tests\non:\n  push:\n    branches: [main]\n  pull_request:\n  schedule:\n    - cron: \"0 6 * * 1\"            # weekly, to catch breakage from new releases\n\npermissions:\n  contents: read\n\nconcurrency:\n  group: tests-${{ github.ref }}\n  cancel-in-progress: ${{ github.event_name == 'pull_request' }}\n\njobs:\n  test:\n    name: py${{ matrix.python }} · ${{ matrix.os }}${{ matrix.resolution == 'lowest-direct' && ' · lowest deps' || '' }}\n    runs-on: ${{ matrix.os }}\n    strategy:\n      fail-fast: ${{ github.event_name == 'pull_request' }}\n      matrix:\n        os: [ubuntu-latest]\n        python: [\"3.10\", \"3.11\", \"3.12\", \"3.13\", \"3.14\"]\n        resolution: [locked]\n        include:\n          - { os: windows-latest, python: \"3.10\", resolution: locked }\n          - { os: windows-latest, python: \"3.14\", resolution: locked }\n          - { os: macos-latest, python: \"3.10\", resolution: locked }\n          - { os: macos-latest, python: \"3.14\", resolution: locked }\n          - { os: ubuntu-latest, python: \"3.10\", resolution: lowest-direct }\n    env:\n      PYTHONUTF8: \"0\"                 # test the default encoding behaviour users get\n      FORCE_COLOR: \"0\"\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - uses: astral-sh\u002Fsetup-uv@v6\n        with:\n          python-version: ${{ matrix.python }}\n          enable-cache: true\n\n      - name: Install (locked)\n        if: matrix.resolution == 'locked'\n        run: uv sync --locked --group dev\n\n      - name: Install (lowest direct dependencies)\n        if: matrix.resolution == 'lowest-direct'\n        run: uv sync --resolution lowest-direct --group dev\n\n      - name: Test\n        run: uv run pytest -q --durations=10\n\n  summary:\n    if: always()\n    needs: test\n    runs-on: ubuntu-latest\n    steps:\n      - run: test \"${{ needs.test.result }}\" = \"success\"\n","yaml","",[14,100,101,110,125,135,143,158,166,174,191,198,206,217,222,230,241,252,257,265,273,284,295,303,313,321,334,368,381,389,424,453,483,512,542,550,564,575,583,597,602,614,622,633,644,649,661,672,683,688,700,710,720,725,737,747,752,760,771,782,792,799],{"__ignoreMap":98},[102,103,106],"span",{"class":104,"line":105},"line",1,[102,107,109],{"class":108},"sJ8bj","# .github\u002Fworkflows\u002Ftests.yml\n",[102,111,113,117,121],{"class":104,"line":112},2,[102,114,116],{"class":115},"s9eBZ","name",[102,118,120],{"class":119},"sVt8B",": ",[102,122,124],{"class":123},"sZZnC","tests\n",[102,126,128,132],{"class":104,"line":127},3,[102,129,131],{"class":130},"sj4cs","on",[102,133,134],{"class":119},":\n",[102,136,138,141],{"class":104,"line":137},4,[102,139,140],{"class":115},"  push",[102,142,134],{"class":119},[102,144,146,149,152,155],{"class":104,"line":145},5,[102,147,148],{"class":115},"    branches",[102,150,151],{"class":119},": [",[102,153,154],{"class":123},"main",[102,156,157],{"class":119},"]\n",[102,159,161,164],{"class":104,"line":160},6,[102,162,163],{"class":115},"  pull_request",[102,165,134],{"class":119},[102,167,169,172],{"class":104,"line":168},7,[102,170,171],{"class":115},"  schedule",[102,173,134],{"class":119},[102,175,177,180,183,185,188],{"class":104,"line":176},8,[102,178,179],{"class":119},"    - ",[102,181,182],{"class":115},"cron",[102,184,120],{"class":119},[102,186,187],{"class":123},"\"0 6 * * 1\"",[102,189,190],{"class":108},"            # weekly, to catch breakage from new releases\n",[102,192,194],{"class":104,"line":193},9,[102,195,197],{"emptyLinePlaceholder":196},true,"\n",[102,199,201,204],{"class":104,"line":200},10,[102,202,203],{"class":115},"permissions",[102,205,134],{"class":119},[102,207,209,212,214],{"class":104,"line":208},11,[102,210,211],{"class":115},"  contents",[102,213,120],{"class":119},[102,215,216],{"class":123},"read\n",[102,218,220],{"class":104,"line":219},12,[102,221,197],{"emptyLinePlaceholder":196},[102,223,225,228],{"class":104,"line":224},13,[102,226,227],{"class":115},"concurrency",[102,229,134],{"class":119},[102,231,233,236,238],{"class":104,"line":232},14,[102,234,235],{"class":115},"  group",[102,237,120],{"class":119},[102,239,240],{"class":123},"tests-${{ github.ref }}\n",[102,242,244,247,249],{"class":104,"line":243},15,[102,245,246],{"class":115},"  cancel-in-progress",[102,248,120],{"class":119},[102,250,251],{"class":123},"${{ github.event_name == 'pull_request' }}\n",[102,253,255],{"class":104,"line":254},16,[102,256,197],{"emptyLinePlaceholder":196},[102,258,260,263],{"class":104,"line":259},17,[102,261,262],{"class":115},"jobs",[102,264,134],{"class":119},[102,266,268,271],{"class":104,"line":267},18,[102,269,270],{"class":115},"  test",[102,272,134],{"class":119},[102,274,276,279,281],{"class":104,"line":275},19,[102,277,278],{"class":115},"    name",[102,280,120],{"class":119},[102,282,283],{"class":123},"py${{ matrix.python }} · ${{ matrix.os }}${{ matrix.resolution == 'lowest-direct' && ' · lowest deps' || '' }}\n",[102,285,287,290,292],{"class":104,"line":286},20,[102,288,289],{"class":115},"    runs-on",[102,291,120],{"class":119},[102,293,294],{"class":123},"${{ matrix.os }}\n",[102,296,298,301],{"class":104,"line":297},21,[102,299,300],{"class":115},"    strategy",[102,302,134],{"class":119},[102,304,306,309,311],{"class":104,"line":305},22,[102,307,308],{"class":115},"      fail-fast",[102,310,120],{"class":119},[102,312,251],{"class":123},[102,314,316,319],{"class":104,"line":315},23,[102,317,318],{"class":115},"      matrix",[102,320,134],{"class":119},[102,322,324,327,329,332],{"class":104,"line":323},24,[102,325,326],{"class":115},"        os",[102,328,151],{"class":119},[102,330,331],{"class":123},"ubuntu-latest",[102,333,157],{"class":119},[102,335,337,340,342,345,348,351,353,356,358,361,363,366],{"class":104,"line":336},25,[102,338,339],{"class":115},"        python",[102,341,151],{"class":119},[102,343,344],{"class":123},"\"3.10\"",[102,346,347],{"class":119},", ",[102,349,350],{"class":123},"\"3.11\"",[102,352,347],{"class":119},[102,354,355],{"class":123},"\"3.12\"",[102,357,347],{"class":119},[102,359,360],{"class":123},"\"3.13\"",[102,362,347],{"class":119},[102,364,365],{"class":123},"\"3.14\"",[102,367,157],{"class":119},[102,369,371,374,376,379],{"class":104,"line":370},26,[102,372,373],{"class":115},"        resolution",[102,375,151],{"class":119},[102,377,378],{"class":123},"locked",[102,380,157],{"class":119},[102,382,384,387],{"class":104,"line":383},27,[102,385,386],{"class":115},"        include",[102,388,134],{"class":119},[102,390,392,395,398,400,403,405,408,410,412,414,417,419,421],{"class":104,"line":391},28,[102,393,394],{"class":119},"          - { ",[102,396,397],{"class":115},"os",[102,399,120],{"class":119},[102,401,402],{"class":123},"windows-latest",[102,404,347],{"class":119},[102,406,407],{"class":115},"python",[102,409,120],{"class":119},[102,411,344],{"class":123},[102,413,347],{"class":119},[102,415,416],{"class":115},"resolution",[102,418,120],{"class":119},[102,420,378],{"class":123},[102,422,423],{"class":119}," }\n",[102,425,427,429,431,433,435,437,439,441,443,445,447,449,451],{"class":104,"line":426},29,[102,428,394],{"class":119},[102,430,397],{"class":115},[102,432,120],{"class":119},[102,434,402],{"class":123},[102,436,347],{"class":119},[102,438,407],{"class":115},[102,440,120],{"class":119},[102,442,365],{"class":123},[102,444,347],{"class":119},[102,446,416],{"class":115},[102,448,120],{"class":119},[102,450,378],{"class":123},[102,452,423],{"class":119},[102,454,456,458,460,462,465,467,469,471,473,475,477,479,481],{"class":104,"line":455},30,[102,457,394],{"class":119},[102,459,397],{"class":115},[102,461,120],{"class":119},[102,463,464],{"class":123},"macos-latest",[102,466,347],{"class":119},[102,468,407],{"class":115},[102,470,120],{"class":119},[102,472,344],{"class":123},[102,474,347],{"class":119},[102,476,416],{"class":115},[102,478,120],{"class":119},[102,480,378],{"class":123},[102,482,423],{"class":119},[102,484,486,488,490,492,494,496,498,500,502,504,506,508,510],{"class":104,"line":485},31,[102,487,394],{"class":119},[102,489,397],{"class":115},[102,491,120],{"class":119},[102,493,464],{"class":123},[102,495,347],{"class":119},[102,497,407],{"class":115},[102,499,120],{"class":119},[102,501,365],{"class":123},[102,503,347],{"class":119},[102,505,416],{"class":115},[102,507,120],{"class":119},[102,509,378],{"class":123},[102,511,423],{"class":119},[102,513,515,517,519,521,523,525,527,529,531,533,535,537,540],{"class":104,"line":514},32,[102,516,394],{"class":119},[102,518,397],{"class":115},[102,520,120],{"class":119},[102,522,331],{"class":123},[102,524,347],{"class":119},[102,526,407],{"class":115},[102,528,120],{"class":119},[102,530,344],{"class":123},[102,532,347],{"class":119},[102,534,416],{"class":115},[102,536,120],{"class":119},[102,538,539],{"class":123},"lowest-direct",[102,541,423],{"class":119},[102,543,545,548],{"class":104,"line":544},33,[102,546,547],{"class":115},"    env",[102,549,134],{"class":119},[102,551,553,556,558,561],{"class":104,"line":552},34,[102,554,555],{"class":115},"      PYTHONUTF8",[102,557,120],{"class":119},[102,559,560],{"class":123},"\"0\"",[102,562,563],{"class":108},"                 # test the default encoding behaviour users get\n",[102,565,567,570,572],{"class":104,"line":566},35,[102,568,569],{"class":115},"      FORCE_COLOR",[102,571,120],{"class":119},[102,573,574],{"class":123},"\"0\"\n",[102,576,578,581],{"class":104,"line":577},36,[102,579,580],{"class":115},"    steps",[102,582,134],{"class":119},[102,584,586,589,592,594],{"class":104,"line":585},37,[102,587,588],{"class":119},"      - ",[102,590,591],{"class":115},"uses",[102,593,120],{"class":119},[102,595,596],{"class":123},"actions\u002Fcheckout@v4\n",[102,598,600],{"class":104,"line":599},38,[102,601,197],{"emptyLinePlaceholder":196},[102,603,605,607,609,611],{"class":104,"line":604},39,[102,606,588],{"class":119},[102,608,591],{"class":115},[102,610,120],{"class":119},[102,612,613],{"class":123},"astral-sh\u002Fsetup-uv@v6\n",[102,615,617,620],{"class":104,"line":616},40,[102,618,619],{"class":115},"        with",[102,621,134],{"class":119},[102,623,625,628,630],{"class":104,"line":624},41,[102,626,627],{"class":115},"          python-version",[102,629,120],{"class":119},[102,631,632],{"class":123},"${{ matrix.python }}\n",[102,634,636,639,641],{"class":104,"line":635},42,[102,637,638],{"class":115},"          enable-cache",[102,640,120],{"class":119},[102,642,643],{"class":130},"true\n",[102,645,647],{"class":104,"line":646},43,[102,648,197],{"emptyLinePlaceholder":196},[102,650,652,654,656,658],{"class":104,"line":651},44,[102,653,588],{"class":119},[102,655,116],{"class":115},[102,657,120],{"class":119},[102,659,660],{"class":123},"Install (locked)\n",[102,662,664,667,669],{"class":104,"line":663},45,[102,665,666],{"class":115},"        if",[102,668,120],{"class":119},[102,670,671],{"class":123},"matrix.resolution == 'locked'\n",[102,673,675,678,680],{"class":104,"line":674},46,[102,676,677],{"class":115},"        run",[102,679,120],{"class":119},[102,681,682],{"class":123},"uv sync --locked --group dev\n",[102,684,686],{"class":104,"line":685},47,[102,687,197],{"emptyLinePlaceholder":196},[102,689,691,693,695,697],{"class":104,"line":690},48,[102,692,588],{"class":119},[102,694,116],{"class":115},[102,696,120],{"class":119},[102,698,699],{"class":123},"Install (lowest direct dependencies)\n",[102,701,703,705,707],{"class":104,"line":702},49,[102,704,666],{"class":115},[102,706,120],{"class":119},[102,708,709],{"class":123},"matrix.resolution == 'lowest-direct'\n",[102,711,713,715,717],{"class":104,"line":712},50,[102,714,677],{"class":115},[102,716,120],{"class":119},[102,718,719],{"class":123},"uv sync --resolution lowest-direct --group dev\n",[102,721,723],{"class":104,"line":722},51,[102,724,197],{"emptyLinePlaceholder":196},[102,726,728,730,732,734],{"class":104,"line":727},52,[102,729,588],{"class":119},[102,731,116],{"class":115},[102,733,120],{"class":119},[102,735,736],{"class":123},"Test\n",[102,738,740,742,744],{"class":104,"line":739},53,[102,741,677],{"class":115},[102,743,120],{"class":119},[102,745,746],{"class":123},"uv run pytest -q --durations=10\n",[102,748,750],{"class":104,"line":749},54,[102,751,197],{"emptyLinePlaceholder":196},[102,753,755,758],{"class":104,"line":754},55,[102,756,757],{"class":115},"  summary",[102,759,134],{"class":119},[102,761,763,766,768],{"class":104,"line":762},56,[102,764,765],{"class":115},"    if",[102,767,120],{"class":119},[102,769,770],{"class":123},"always()\n",[102,772,774,777,779],{"class":104,"line":773},57,[102,775,776],{"class":115},"    needs",[102,778,120],{"class":119},[102,780,781],{"class":123},"test\n",[102,783,785,787,789],{"class":104,"line":784},58,[102,786,289],{"class":115},[102,788,120],{"class":119},[102,790,791],{"class":123},"ubuntu-latest\n",[102,793,795,797],{"class":104,"line":794},59,[102,796,580],{"class":115},[102,798,134],{"class":119},[102,800,802,804,807,809],{"class":104,"line":801},60,[102,803,588],{"class":119},[102,805,806],{"class":115},"run",[102,808,120],{"class":119},[102,810,811],{"class":123},"test \"${{ needs.test.result }}\" = \"success\"\n",[813,814,816],"h3",{"id":815},"why-each-piece-is-there","Why each piece is there",[10,818,819,829,830,833,834,836,837,840,841,844,845,848],{},[820,821,822,825,826,27],"strong",{},[14,823,824],{},"setup-uv"," with ",[14,827,828],{},"python-version"," uv installs the requested interpreter itself (a managed CPython build) and sets it for the job, so there is no separate ",[14,831,832],{},"setup-python"," step and the same versions are available on every OS. Passing ",[14,835,828],{}," also sets ",[14,838,839],{},"UV_PYTHON",", which ",[14,842,843],{},"uv sync"," and ",[14,846,847],{},"uv run"," then use.",[10,850,851,856,857,859,860,863,864,867],{},[820,852,853,27],{},[14,854,855],{},"uv sync --locked"," The locked jobs install exactly what ",[14,858,42],{}," specifies and ",[820,861,862],{},"fail"," if the lockfile is out of date with ",[14,865,866],{},"pyproject.toml",". That catches the common mistake of editing dependencies without re-locking, and guarantees CI tests what developers run.",[10,869,870,873,874,877,878,882,883,886],{},[820,871,872],{},"The lowest-direct job."," ",[14,875,876],{},"--resolution lowest-direct"," installs the lowest version of each ",[879,880,881],"em",{},"direct"," dependency your constraints allow. If you declared ",[14,884,885],{},"click>=8.0"," but used a feature added in 8.1, this job fails and the others do not. It is the only way to keep lower bounds honest, and a CLI's lower bounds matter because users install it into environments with other packages pinning shared dependencies.",[10,888,889,892,893,896,897,900,901,905,906,909],{},[820,890,891],{},"Encoding and colour environment."," Setting ",[14,894,895],{},"PYTHONUTF8=0"," explicitly tests the default behaviour on Windows, where the locale encoding is often ",[14,898,899],{},"cp1252"," — the source of many Windows-only CLI bugs covered in ",[23,902,904],{"href":903},"\u002Fadvanced-input-parsing-user-experience\u002Fcross-platform-terminal-compatibility\u002Ffixing-unicode-and-encoding-errors-on-windows\u002F","fixing Unicode and encoding errors on Windows",". ",[14,907,908],{},"FORCE_COLOR=0"," keeps colour codes out of assertions on output.",[10,911,912,915,916,919],{},[820,913,914],{},"Readable job names."," The ",[14,917,918],{},"name:"," expression produces \"py3.10 · windows-latest\" in the UI, so a failing combination is identifiable at a glance.",[10,921,922,925,926,929],{},[820,923,924],{},"A summary job."," Branch protection needs stable check names, and matrix job names change when you add a Python version. Requiring the single ",[14,927,928],{},"summary"," job — which fails unless every matrix job succeeded — means you never have to edit protection rules when the matrix changes.",[29,931,933],{"id":932},"fail-fast-concurrency-and-schedules","Fail-fast, concurrency and schedules",[10,935,936,937,939],{},"By default, a failure in one matrix job cancels the others. That is what you want on a pull request that is still being worked on — fast feedback, fewer wasted minutes — and exactly what you do not want on ",[14,938,154],{},", where a Windows-only failure could hide a separate macOS failure you would otherwise have fixed in the same change.",[82,941],{"name":942},"ci-fail-fast-decision",[10,944,945,946,948,949,952],{},"The ",[14,947,227],{}," block applies the same logic to whole runs: pushing a new commit to a pull request cancels the now-obsolete run for the previous commit. The weekly ",[14,950,951],{},"schedule"," catches breakage caused by the world rather than by your code — a dependency release, a new runner image, a Python patch release — while the project is quiet.",[29,954,956],{"id":955},"ux-considerations","UX considerations",[10,958,959],{},"The \"users\" of a CI configuration are the contributors reading its results, and a few habits make those results easier to act on:",[34,961,962,971,977,991],{},[37,963,964,873,967,970],{},[820,965,966],{},"Show slow tests.",[14,968,969],{},"--durations=10"," prints the ten slowest tests, which keeps suite time visible before it becomes a problem.",[37,972,973,976],{},[820,974,975],{},"Make failures obvious in the summary."," Actions shows each failing job's name; with descriptive names, \"py3.10 · windows-latest\" tells a contributor where to look before they open a log.",[37,978,979,982,983,986,987,990],{},[820,980,981],{},"Skip what cannot run, loudly."," Tests that need POSIX signals or a specific tool should use ",[14,984,985],{},"pytest.mark.skipif"," with a reason, so the Windows job reports them as skipped rather than failing — and the reasons appear in ",[14,988,989],{},"pytest -rs"," output.",[37,992,993,996,997,1000,1001,1004],{},[820,994,995],{},"Document how to reproduce."," A sentence in ",[14,998,999],{},"CONTRIBUTING.md"," — \"to reproduce a CI job, run ",[14,1002,1003],{},"uv run --python 3.10 pytest","\" — saves every contributor from reverse-engineering the workflow.",[29,1006,1008],{"id":1007},"testing-the-behaviour","Testing the behaviour",[10,1010,1011],{},"The best way to test the matrix is to run it locally before pushing. uv makes this nearly free, because it downloads missing interpreters on demand and keeps a separate environment per version:",[82,1013],{"name":1014},"ci-matrix-terminal",[93,1016,1020],{"className":1017,"code":1018,"language":1019,"meta":98,"style":98},"language-bash shiki shiki-themes github-light github-dark","# Every locked version, in isolated environments, without touching your .venv\nfor v in 3.10 3.11 3.12 3.13 3.14; do\n  echo \"== Python $v\"\n  uv run --isolated --python \"$v\" --group dev pytest -q || break\ndone\n\n# The lowest-dependency job\nuv run --isolated --python 3.10 --resolution lowest-direct --group dev pytest -q\n","bash",[14,1021,1022,1027,1060,1074,1115,1120,1124,1129],{"__ignoreMap":98},[102,1023,1024],{"class":104,"line":105},[102,1025,1026],{"class":108},"# Every locked version, in isolated environments, without touching your .venv\n",[102,1028,1029,1033,1036,1039,1042,1045,1048,1051,1054,1057],{"class":104,"line":112},[102,1030,1032],{"class":1031},"szBVR","for",[102,1034,1035],{"class":119}," v ",[102,1037,1038],{"class":1031},"in",[102,1040,1041],{"class":123}," 3.10",[102,1043,1044],{"class":123}," 3.11",[102,1046,1047],{"class":123}," 3.12",[102,1049,1050],{"class":123}," 3.13",[102,1052,1053],{"class":123}," 3.14",[102,1055,1056],{"class":119},"; ",[102,1058,1059],{"class":1031},"do\n",[102,1061,1062,1065,1068,1071],{"class":104,"line":127},[102,1063,1064],{"class":130},"  echo",[102,1066,1067],{"class":123}," \"== Python ",[102,1069,1070],{"class":119},"$v",[102,1072,1073],{"class":123},"\"\n",[102,1075,1076,1080,1083,1086,1089,1092,1094,1097,1100,1103,1106,1109,1112],{"class":104,"line":137},[102,1077,1079],{"class":1078},"sScJk","  uv",[102,1081,1082],{"class":123}," run",[102,1084,1085],{"class":130}," --isolated",[102,1087,1088],{"class":130}," --python",[102,1090,1091],{"class":123}," \"",[102,1093,1070],{"class":119},[102,1095,1096],{"class":123},"\"",[102,1098,1099],{"class":130}," --group",[102,1101,1102],{"class":123}," dev",[102,1104,1105],{"class":123}," pytest",[102,1107,1108],{"class":130}," -q",[102,1110,1111],{"class":1031}," ||",[102,1113,1114],{"class":1031}," break\n",[102,1116,1117],{"class":104,"line":145},[102,1118,1119],{"class":1031},"done\n",[102,1121,1122],{"class":104,"line":160},[102,1123,197],{"emptyLinePlaceholder":196},[102,1125,1126],{"class":104,"line":168},[102,1127,1128],{"class":108},"# The lowest-dependency job\n",[102,1130,1131,1134,1136,1138,1140,1142,1145,1148,1150,1152,1154],{"class":104,"line":176},[102,1132,1133],{"class":1078},"uv",[102,1135,1082],{"class":123},[102,1137,1085],{"class":130},[102,1139,1088],{"class":130},[102,1141,1041],{"class":130},[102,1143,1144],{"class":130}," --resolution",[102,1146,1147],{"class":123}," lowest-direct",[102,1149,1099],{"class":130},[102,1151,1102],{"class":123},[102,1153,1105],{"class":123},[102,1155,1156],{"class":130}," -q\n",[10,1158,1159,1162,1163,1166,1167,1170,1171,1174],{},[14,1160,1161],{},"--isolated"," runs each in a temporary environment so your project ",[14,1164,1165],{},".venv"," stays on your preferred version. For Windows- and macOS-specific failures, the CI job's log is usually enough; when it is not, adding a temporary ",[14,1168,1169],{},"tmate"," or SSH-debug step to a single matrix job, or a ",[14,1172,1173],{},"workflow_dispatch"," trigger to re-run only that combination, is faster than guessing.",[10,1176,1177,1178,1181],{},"You can also verify the workflow file itself before pushing: ",[14,1179,1180],{},"actionlint"," catches expression typos, unknown keys and shell mistakes in workflow YAML, and runs happily as a pre-commit hook.",[29,1183,1185],{"id":1184},"conclusion","Conclusion",[10,1187,1188,1189,1191],{},"A test matrix is the cheapest way to meet your users' environments before they meet your bugs. Test every supported Python on Linux, the oldest and newest on Windows and macOS, and one job at your lowest declared dependency versions; install with ",[14,1190,855],{},"; cancel sibling jobs only on pull requests; and require a single summary check so the matrix can evolve freely. With uv, the same matrix runs locally in a loop, so most failures never reach CI at all.",[29,1193,1195],{"id":1194},"frequently-asked-questions","Frequently asked questions",[813,1197,1199],{"id":1198},"should-i-test-pre-release-pythons","Should I test pre-release Pythons?",[10,1201,1202,1203,1206,1207,844,1210,1213],{},"Yes, as an allowed-to-fail job once the first release candidate is out. Add ",[14,1204,1205],{},"continue-on-error: ${{ contains(matrix.python, 'rc') }}"," or a separate job with ",[14,1208,1209],{},"python-version: \"3.15\"",[14,1211,1212],{},"allow-prereleases",", so failures are visible without blocking merges.",[813,1215,1217,1218,1221],{"id":1216},"why-not-use-actionssetup-python","Why not use ",[14,1219,1220],{},"actions\u002Fsetup-python","?",[10,1223,1224,1225,825,1227,1229],{},"It works fine alongside uv, and some teams prefer it. ",[14,1226,824],{},[14,1228,828],{}," is one step instead of two, uses the same managed interpreters developers get locally with uv, and keeps interpreter selection consistent across operating systems.",[813,1231,1233],{"id":1232},"how-do-i-test-against-free-threaded-python","How do I test against free-threaded Python?",[10,1235,1236,1237,1240],{},"uv can install free-threaded builds (",[14,1238,1239],{},"3.14t","). Add one Linux job with that version to learn early whether your dependencies support it. Mark it allowed-to-fail until they do.",[813,1242,1244],{"id":1243},"when-should-i-drop-an-old-python-version-from-the-matrix","When should I drop an old Python version from the matrix?",[10,1246,1247,1248,1250],{},"When it reaches end of life (five years after release, each October), or earlier if keeping it costs real effort. Drop it in the same change that raises ",[14,1249,79],{}," and removes it from the trove classifiers, and mention it in the changelog: pip and uv will then keep users on that old interpreter on your last compatible release instead of installing one that fails at import time.",[813,1252,1254],{"id":1253},"my-tests-pass-locally-but-fail-only-on-the-windows-runner-where-do-i-start","My tests pass locally but fail only on the Windows runner. Where do I start?",[10,1256,1257,1258,1261,1262,1265,1266,1269],{},"Look first at paths (separators, case, drive letters), text encoding (",[14,1259,1260],{},"open()"," without ",[14,1263,1264],{},"encoding=","), line endings in expected-output fixtures, and subprocess calls to programs that are ",[14,1267,1268],{},".cmd"," shims on Windows. Those four account for the large majority of Windows-only CLI failures.",[29,1271,1273],{"id":1272},"related","Related",[34,1275,1276,1282,1288,1294,1300],{},[37,1277,1278,1279],{},"Up: ",[23,1280,1281],{"href":25},"CI\u002FCD pipelines for Python CLIs",[37,1283,1284],{},[23,1285,1287],{"href":1286},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Fcaching-uv-dependencies-in-ci\u002F","Caching uv dependencies in CI",[37,1289,1290],{},[23,1291,1293],{"href":1292},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Fsmoke-testing-the-built-wheel-in-ci\u002F","Smoke-testing the built wheel in CI",[37,1295,1296],{},[23,1297,1299],{"href":1298},"\u002Fproject-setup-dependency-management\u002Fvirtual-environments-isolation-best-practices\u002Fsupporting-multiple-python-versions-with-nox\u002F","Supporting multiple Python versions with nox",[37,1301,1302],{},[23,1303,1305],{"href":1304},"\u002Fproject-setup-dependency-management\u002Fvirtual-environments-isolation-best-practices\u002Fpinning-the-python-version-for-a-cli\u002F","Pinning the Python version for a CLI",[1307,1308,1309],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}",{"title":98,"searchDepth":112,"depth":112,"links":1311},[1312,1313,1314,1317,1318,1319,1320,1321,1329],{"id":31,"depth":112,"text":32},{"id":72,"depth":112,"text":73},{"id":90,"depth":112,"text":91,"children":1315},[1316],{"id":815,"depth":127,"text":816},{"id":932,"depth":112,"text":933},{"id":955,"depth":112,"text":956},{"id":1007,"depth":112,"text":1008},{"id":1184,"depth":112,"text":1185},{"id":1194,"depth":112,"text":1195,"children":1322},[1323,1324,1326,1327,1328],{"id":1198,"depth":127,"text":1199},{"id":1216,"depth":127,"text":1325},"Why not use actions\u002Fsetup-python?",{"id":1232,"depth":127,"text":1233},{"id":1243,"depth":127,"text":1244},{"id":1253,"depth":127,"text":1254},{"id":1272,"depth":112,"text":1273},"2026-09-18","Set up a GitHub Actions matrix for a Python CLI with uv: Python versions and operating systems, lowest-dependency runs, fail-fast policy and reproducing jobs locally.","intermediate",false,"md",{},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Ftesting-a-cli-across-python-versions-with-github-actions",{"title":5,"description":1331},"project-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Ftesting-a-cli-across-python-versions-with-github-actions\u002Findex",[1340,1341,1342,1133,1343],"github-actions","ci","testing","matrix","kZQuwBm1uCKV1Yf_X3k2xZ3JdidhDJXPlBFTj8WO3iY",[1346,1349,1352,1355,1358,1361,1364,1367,1370,1373,1376,1379,1382,1385,1388,1391,1394,1397,1400,1403,1406,1409,1412,1415,1418,1421,1424,1427,1430,1433,1436,1439,1442,1445,1448,1451,1454,1457,1460,1463,1466,1469,1472,1475,1478,1481,1484,1487,1490,1493,1496,1499,1502,1505,1508,1511,1514,1517,1520,1523,1526,1529,1532,1535,1538,1541,1544,1547,1550,1553,1556,1559,1562,1565,1568,1571,1574,1577,1580,1583,1586,1589,1592,1595,1598,1601,1604,1607,1610,1613,1616,1619,1622,1625,1628,1631,1634,1637,1640,1643,1646,1649,1652,1655,1658,1661,1664,1667,1670,1673,1676,1679,1682,1685,1688,1691,1694,1697,1700,1703,1706,1709,1712,1715,1718,1721,1724,1727,1730,1733,1736,1739,1742,1745,1748,1751,1754,1757,1760,1763,1764,1767,1770,1773,1776,1779,1782,1785,1788,1791,1794,1797,1800,1803,1806,1809,1812,1815,1818,1821,1824,1827,1830,1833,1836,1839,1842,1845,1848,1851,1854,1857,1860,1863,1866,1869,1872,1875,1878,1881,1884,1887,1890],{"path":1347,"title":1348},"\u002Fabout","About Python CLI Toolcraft",{"path":1350,"title":1351},"\u002Fadvanced-input-parsing-user-experience\u002Fadvanced-argument-validation-strategies","Advanced Argument Validation Strategies",{"path":1353,"title":1354},"\u002Fadvanced-input-parsing-user-experience\u002Fadvanced-argument-validation-strategies\u002Fparsing-nested-json-arguments-in-python-clis","Parsing Nested JSON Args in Python CLIs",{"path":1356,"title":1357},"\u002Fadvanced-input-parsing-user-experience\u002Fadvanced-argument-validation-strategies\u002Fvalidating-dependent-and-conflicting-options","Validating Dependent and Conflicting CLI Options",{"path":1359,"title":1360},"\u002Fadvanced-input-parsing-user-experience\u002Fadvanced-argument-validation-strategies\u002Fvalidating-file-and-directory-paths-in-clis","Validating File and Directory Paths in CLIs",{"path":1362,"title":1363},"\u002Fadvanced-input-parsing-user-experience\u002Fadvanced-argument-validation-strategies\u002Fwriting-custom-click-parameter-types","Writing Custom Click Parameter Types",{"path":1365,"title":1366},"\u002Fadvanced-input-parsing-user-experience\u002Fbuilding-terminal-uis-with-textual\u002Fbuilding-your-first-textual-app","Building Your First Textual App for a Python CLI",{"path":1368,"title":1369},"\u002Fadvanced-input-parsing-user-experience\u002Fbuilding-terminal-uis-with-textual\u002Fchoosing-between-a-cli-a-prompt-flow-and-a-tui","Choosing Between a CLI, a Prompt Flow and a TUI",{"path":1371,"title":1372},"\u002Fadvanced-input-parsing-user-experience\u002Fbuilding-terminal-uis-with-textual","Building Terminal UIs with Textual for Python CLIs",{"path":1374,"title":1375},"\u002Fadvanced-input-parsing-user-experience\u002Fbuilding-terminal-uis-with-textual\u002Ftesting-textual-apps-with-pilot","Testing Textual Apps with Pilot",{"path":1377,"title":1378},"\u002Fadvanced-input-parsing-user-experience\u002Fcli-help-output-and-documentation\u002Fadding-examples-and-epilogs-to-help-output","Adding Examples and Epilogs to Help Output",{"path":1380,"title":1381},"\u002Fadvanced-input-parsing-user-experience\u002Fcli-help-output-and-documentation\u002Fgenerating-man-pages-and-docs-from-a-cli","Generating Man Pages and Docs from a CLI",{"path":1383,"title":1384},"\u002Fadvanced-input-parsing-user-experience\u002Fcli-help-output-and-documentation","CLI Help Output and Documentation",{"path":1386,"title":1387},"\u002Fadvanced-input-parsing-user-experience\u002Fcli-help-output-and-documentation\u002Fversioning-and-deprecating-cli-flags","Versioning and Deprecating CLI Flags",{"path":1389,"title":1390},"\u002Fadvanced-input-parsing-user-experience\u002Fcli-help-output-and-documentation\u002Fwriting-help-text-users-actually-read","Writing Help Text Users Actually Read",{"path":1392,"title":1393},"\u002Fadvanced-input-parsing-user-experience\u002Fcross-platform-terminal-compatibility\u002Fadapting-output-to-terminal-width","Adapting Python CLI Output to Terminal Width",{"path":1395,"title":1396},"\u002Fadvanced-input-parsing-user-experience\u002Fcross-platform-terminal-compatibility\u002Fdetecting-ci-environments-and-non-interactive-shells","Detecting CI Environments and Non-Interactive Shells",{"path":1398,"title":1399},"\u002Fadvanced-input-parsing-user-experience\u002Fcross-platform-terminal-compatibility\u002Ffixing-unicode-and-encoding-errors-on-windows","Fixing Unicode and Encoding Errors on Windows in Python CLIs",{"path":1401,"title":1402},"\u002Fadvanced-input-parsing-user-experience\u002Fcross-platform-terminal-compatibility","Cross-Platform Terminal Compatibility for Python CLIs",{"path":1404,"title":1405},"\u002Fadvanced-input-parsing-user-experience\u002Fcross-platform-terminal-compatibility\u002Frespecting-no-color-and-force-color","Respecting NO_COLOR and FORCE_COLOR in Python CLIs",{"path":1407,"title":1408},"\u002Fadvanced-input-parsing-user-experience\u002Ferror-handling-and-exit-codes\u002Fchoosing-exit-codes-for-cli-tools","Choosing Exit Codes for CLI Tools",{"path":1410,"title":1411},"\u002Fadvanced-input-parsing-user-experience\u002Ferror-handling-and-exit-codes\u002Fdesigning-an-exception-hierarchy-for-a-cli","Designing an Exception Hierarchy for a Python CLI",{"path":1413,"title":1414},"\u002Fadvanced-input-parsing-user-experience\u002Ferror-handling-and-exit-codes\u002Ffriendly-error-messages-and-tracebacks","Friendly Error Messages and Tracebacks",{"path":1416,"title":1417},"\u002Fadvanced-input-parsing-user-experience\u002Ferror-handling-and-exit-codes\u002Fhandling-keyboard-interrupt-cleanly","Handling Keyboard Interrupt Cleanly",{"path":1419,"title":1420},"\u002Fadvanced-input-parsing-user-experience\u002Ferror-handling-and-exit-codes","Error Handling and Exit Codes for CLIs",{"path":1422,"title":1423},"\u002Fadvanced-input-parsing-user-experience\u002Ferror-handling-and-exit-codes\u002Freporting-machine-readable-errors-in-json-mode","Reporting Machine-Readable Errors in JSON Mode",{"path":1425,"title":1426},"\u002Fadvanced-input-parsing-user-experience\u002Fhandling-configuration-files-env-vars\u002Fconfig-precedence-flags-env-files-defaults","Config Precedence: Flags, Env, Files, Defaults",{"path":1428,"title":1429},"\u002Fadvanced-input-parsing-user-experience\u002Fhandling-configuration-files-env-vars\u002Fdiscovering-project-config-files-by-walking-up-directories","Discovering Project Config Files by Walking Up Directories",{"path":1431,"title":1432},"\u002Fadvanced-input-parsing-user-experience\u002Fhandling-configuration-files-env-vars","Handling Config Files and Env Vars in CLIs",{"path":1434,"title":1435},"\u002Fadvanced-input-parsing-user-experience\u002Fhandling-configuration-files-env-vars\u002Floading-yaml-configs-safely-in-cli-apps","Loading YAML configs safely in CLI apps",{"path":1437,"title":1438},"\u002Fadvanced-input-parsing-user-experience\u002Fhandling-configuration-files-env-vars\u002Freading-toml-config-with-tomllib","Reading TOML Config with tomllib in Python CLIs",{"path":1440,"title":1441},"\u002Fadvanced-input-parsing-user-experience\u002Fhandling-configuration-files-env-vars\u002Ftyped-settings-with-pydantic-settings","Typed Settings with pydantic-settings in Python CLIs",{"path":1443,"title":1444},"\u002Fadvanced-input-parsing-user-experience","Advanced Input Parsing for Python CLIs",{"path":1446,"title":1447},"\u002Fadvanced-input-parsing-user-experience\u002Finteractive-terminal-ui-with-rich\u002Fadding-progress-bars-and-spinners-to-python-clis","Progress Bars and Spinners for Python CLIs",{"path":1449,"title":1450},"\u002Fadvanced-input-parsing-user-experience\u002Finteractive-terminal-ui-with-rich\u002Fbuilding-interactive-prompts-and-menus","Building Interactive Prompts and Menus in Python CLIs",{"path":1452,"title":1453},"\u002Fadvanced-input-parsing-user-experience\u002Finteractive-terminal-ui-with-rich","Interactive Terminal UI with Rich",{"path":1455,"title":1456},"\u002Fadvanced-input-parsing-user-experience\u002Finteractive-terminal-ui-with-rich\u002Flive-dashboards-with-rich-live","Live Dashboards with Rich Live in Python CLIs",{"path":1458,"title":1459},"\u002Fadvanced-input-parsing-user-experience\u002Finteractive-terminal-ui-with-rich\u002Frendering-tables-and-json-with-rich","Rendering Tables and JSON with Rich",{"path":1461,"title":1462},"\u002Fadvanced-input-parsing-user-experience\u002Finteractive-terminal-ui-with-rich\u002Ftheming-rich-output-consistently","Theming Rich Output Consistently in Python CLIs",{"path":1464,"title":1465},"\u002Fadvanced-input-parsing-user-experience\u002Fshell-completion-for-python-clis\u002Fdynamic-completion-values-from-apis-and-files","Dynamic Completion Values from APIs and Files",{"path":1467,"title":1468},"\u002Fadvanced-input-parsing-user-experience\u002Fshell-completion-for-python-clis\u002Fenabling-tab-completion-in-click-and-typer","Enabling Tab Completion in Click and Typer",{"path":1470,"title":1471},"\u002Fadvanced-input-parsing-user-experience\u002Fshell-completion-for-python-clis","Shell Completion for Python CLIs",{"path":1473,"title":1474},"\u002Fadvanced-input-parsing-user-experience\u002Fshell-completion-for-python-clis\u002Finstalling-shell-completion-for-bash-zsh-fish","Installing Shell Completion for bash, zsh, fish",{"path":1476,"title":1477},"\u002Fadvanced-input-parsing-user-experience\u002Fshell-completion-for-python-clis\u002Ftesting-shell-completion-in-python-clis","Testing Shell Completion in Python CLIs",{"path":1479,"title":1480},"\u002Fadvanced-input-parsing-user-experience\u002Fstructured-logging-for-cli-apps\u002Fadding-trace-ids-and-context-to-cli-logs","Adding Trace IDs and Context to Python CLI Logs",{"path":1482,"title":1483},"\u002Fadvanced-input-parsing-user-experience\u002Fstructured-logging-for-cli-apps\u002Fadding-verbose-and-quiet-logging-flags","Adding Verbose and Quiet Logging Flags",{"path":1485,"title":1486},"\u002Fadvanced-input-parsing-user-experience\u002Fstructured-logging-for-cli-apps","Structured Logging for CLI Apps",{"path":1488,"title":1489},"\u002Fadvanced-input-parsing-user-experience\u002Fstructured-logging-for-cli-apps\u002Fstructured-json-logging-in-python-clis","Structured JSON Logging in Python CLIs",{"path":1491,"title":1492},"\u002Fadvanced-input-parsing-user-experience\u002Fstructured-logging-for-cli-apps\u002Fwriting-rotating-log-files-from-a-cli","Writing Rotating Log Files from a Python CLI",{"path":1494,"title":1495},"\u002Fadvanced-input-parsing-user-experience\u002Fworking-with-stdin-stdout-and-pipes\u002Fdetecting-tty-and-adapting-output","Detecting a TTY and Adapting Output",{"path":1497,"title":1498},"\u002Fadvanced-input-parsing-user-experience\u002Fworking-with-stdin-stdout-and-pipes\u002Femitting-json-output-for-scripting","Emitting JSON Output for Scripting",{"path":1500,"title":1501},"\u002Fadvanced-input-parsing-user-experience\u002Fworking-with-stdin-stdout-and-pipes\u002Fhandling-broken-pipe-and-sigpipe","Handling Broken Pipe and SIGPIPE",{"path":1503,"title":1504},"\u002Fadvanced-input-parsing-user-experience\u002Fworking-with-stdin-stdout-and-pipes","Working with stdin, stdout and Pipes",{"path":1506,"title":1507},"\u002Fadvanced-input-parsing-user-experience\u002Fworking-with-stdin-stdout-and-pipes\u002Fprocessing-large-files-and-ndjson-streams","Processing Large Files and NDJSON Streams in Python CLIs",{"path":1509,"title":1510},"\u002Fadvanced-input-parsing-user-experience\u002Fworking-with-stdin-stdout-and-pipes\u002Freading-piped-input-in-python-clis","Reading Piped Input in Python CLIs",{"path":1512,"title":1513},"\u002Fcli-runtime-systems-integration\u002Fcalling-http-apis-from-python-clis\u002Fbuilding-an-api-client-cli-with-httpx","Building an API Client CLI with httpx",{"path":1515,"title":1516},"\u002Fcli-runtime-systems-integration\u002Fcalling-http-apis-from-python-clis\u002Fdownloading-files-with-progress-in-python","Downloading Files with Progress in Python CLIs",{"path":1518,"title":1519},"\u002Fcli-runtime-systems-integration\u002Fcalling-http-apis-from-python-clis","Calling HTTP APIs from Python CLIs",{"path":1521,"title":1522},"\u002Fcli-runtime-systems-integration\u002Fcalling-http-apis-from-python-clis\u002Foauth-device-flow-login-for-clis","OAuth Device Flow Login for Python CLIs",{"path":1524,"title":1525},"\u002Fcli-runtime-systems-integration\u002Fcalling-http-apis-from-python-clis\u002Fpaginating-api-results-in-a-cli","Paginating API Results in a Python CLI",{"path":1527,"title":1528},"\u002Fcli-runtime-systems-integration\u002Fcalling-http-apis-from-python-clis\u002Fretries-and-backoff-for-cli-http-calls","Retries and Backoff for CLI HTTP Calls",{"path":1530,"title":1531},"\u002Fcli-runtime-systems-integration\u002Fconcurrency-and-async-in-python-clis\u002Fcancelling-async-tasks-on-ctrl-c","Cancelling Async Tasks on Ctrl+C in Python CLIs",{"path":1533,"title":1534},"\u002Fcli-runtime-systems-integration\u002Fconcurrency-and-async-in-python-clis","Concurrency and Async in Python CLIs",{"path":1536,"title":1537},"\u002Fcli-runtime-systems-integration\u002Fconcurrency-and-async-in-python-clis\u002Fmultiprocessing-for-cpu-bound-cli-tasks","Multiprocessing for CPU-Bound CLI Tasks",{"path":1539,"title":1540},"\u002Fcli-runtime-systems-integration\u002Fconcurrency-and-async-in-python-clis\u002Fparallelising-cli-work-with-thread-pools","Parallelising CLI Work with Thread Pools",{"path":1542,"title":1543},"\u002Fcli-runtime-systems-integration\u002Fconcurrency-and-async-in-python-clis\u002Frate-limiting-concurrent-requests-in-clis","Rate-Limiting Concurrent Requests in Python CLIs",{"path":1545,"title":1546},"\u002Fcli-runtime-systems-integration\u002Fconcurrency-and-async-in-python-clis\u002Frunning-async-code-in-typer-and-click","Running Async Code in Typer and Click",{"path":1548,"title":1549},"\u002Fcli-runtime-systems-integration\u002Ffilesystem-paths-and-atomic-writes\u002Fcross-platform-paths-with-pathlib","Cross-Platform Paths with pathlib in CLIs",{"path":1551,"title":1552},"\u002Fcli-runtime-systems-integration\u002Ffilesystem-paths-and-atomic-writes\u002Ffile-locking-for-concurrent-cli-runs","File Locking for Concurrent CLI Runs in Python",{"path":1554,"title":1555},"\u002Fcli-runtime-systems-integration\u002Ffilesystem-paths-and-atomic-writes","Filesystem Paths and Atomic Writes for CLIs",{"path":1557,"title":1558},"\u002Fcli-runtime-systems-integration\u002Ffilesystem-paths-and-atomic-writes\u002Fsafe-temporary-files-and-directories","Safe Temporary Files and Directories in CLIs",{"path":1560,"title":1561},"\u002Fcli-runtime-systems-integration\u002Ffilesystem-paths-and-atomic-writes\u002Fstoring-app-data-with-platformdirs","Storing CLI App Data with platformdirs",{"path":1563,"title":1564},"\u002Fcli-runtime-systems-integration\u002Ffilesystem-paths-and-atomic-writes\u002Fwriting-files-atomically-in-python-clis","Writing Files Atomically in Python CLIs",{"path":1566,"title":1567},"\u002Fcli-runtime-systems-integration","CLI Runtime & Systems Integration for Python",{"path":1569,"title":1570},"\u002Fcli-runtime-systems-integration\u002Flong-running-and-watch-mode-clis\u002Fbuilding-a-watch-mode-with-watchfiles","Building a Watch Mode with watchfiles in Python",{"path":1572,"title":1573},"\u002Fcli-runtime-systems-integration\u002Flong-running-and-watch-mode-clis\u002Fhandling-sigterm-and-graceful-shutdown","Handling SIGTERM and Graceful Shutdown in CLIs",{"path":1575,"title":1576},"\u002Fcli-runtime-systems-integration\u002Flong-running-and-watch-mode-clis\u002Fhealth-checks-and-heartbeats-for-long-running-clis","Health Checks and Heartbeats for Long-Running CLIs",{"path":1578,"title":1579},"\u002Fcli-runtime-systems-integration\u002Flong-running-and-watch-mode-clis","Long-Running and Watch-Mode Python CLIs",{"path":1581,"title":1582},"\u002Fcli-runtime-systems-integration\u002Flong-running-and-watch-mode-clis\u002Frunning-a-cli-on-a-schedule-with-cron-and-systemd","Running a Python CLI on a Schedule with cron and systemd",{"path":1584,"title":1585},"\u002Fcli-runtime-systems-integration\u002Frunning-subprocesses-from-python-clis\u002Favoiding-shell-injection-in-python-clis","Avoiding Shell Injection in Python CLIs",{"path":1587,"title":1588},"\u002Fcli-runtime-systems-integration\u002Frunning-subprocesses-from-python-clis\u002Fcalling-external-commands-safely-with-subprocess","Calling External Commands Safely with subprocess",{"path":1590,"title":1591},"\u002Fcli-runtime-systems-integration\u002Frunning-subprocesses-from-python-clis\u002Fhandling-subprocess-timeouts-and-exit-codes","Handling Subprocess Timeouts and Exit Codes",{"path":1593,"title":1594},"\u002Fcli-runtime-systems-integration\u002Frunning-subprocesses-from-python-clis","Running Subprocesses from Python CLIs",{"path":1596,"title":1597},"\u002Fcli-runtime-systems-integration\u002Frunning-subprocesses-from-python-clis\u002Fstreaming-subprocess-output-in-real-time","Streaming Subprocess Output in Real Time",{"path":1599,"title":1600},"\u002Fcli-runtime-systems-integration\u002Frunning-subprocesses-from-python-clis\u002Fwrapping-git-and-other-tools-from-a-python-cli","Wrapping git and Other Tools from a Python CLI",{"path":1602,"title":1603},"\u002Fcli-runtime-systems-integration\u002Fsecrets-and-credentials-in-python-clis","Secrets and Credentials in Python CLIs",{"path":1605,"title":1606},"\u002Fcli-runtime-systems-integration\u002Fsecrets-and-credentials-in-python-clis\u002Fprompting-for-passwords-securely","Prompting for Passwords Securely in Python CLIs",{"path":1608,"title":1609},"\u002Fcli-runtime-systems-integration\u002Fsecrets-and-credentials-in-python-clis\u002Freading-secrets-from-env-and-files","Reading Secrets from Env Vars and Files in CLIs",{"path":1611,"title":1612},"\u002Fcli-runtime-systems-integration\u002Fsecrets-and-credentials-in-python-clis\u002Fredacting-secrets-from-cli-output-and-logs","Redacting Secrets from CLI Output and Logs",{"path":1614,"title":1615},"\u002Fcli-runtime-systems-integration\u002Fsecrets-and-credentials-in-python-clis\u002Fstoring-tokens-with-keyring","Storing CLI Tokens Securely with keyring",{"path":1617,"title":1618},"\u002Fcli-runtime-systems-integration\u002Fsecrets-and-credentials-in-python-clis\u002Fsupporting-multiple-profiles-and-accounts","Supporting Multiple Profiles and Accounts in CLIs",{"path":1620,"title":1621},"\u002F","Python CLI Toolcraft",{"path":1623,"title":1624},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcli-startup-performance-and-lazy-loading\u002Fcaching-expensive-work-between-cli-runs","Caching Expensive Work Between Python CLI Runs",{"path":1626,"title":1627},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcli-startup-performance-and-lazy-loading","CLI Startup Performance and Lazy Loading",{"path":1629,"title":1630},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcli-startup-performance-and-lazy-loading\u002Flazy-loading-subcommands-for-faster-startup","Lazy Loading Subcommands for Faster Startup",{"path":1632,"title":1633},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcli-startup-performance-and-lazy-loading\u002Fprofiling-python-cli-startup-time","Profiling Python CLI Startup Time",{"path":1635,"title":1636},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcli-startup-performance-and-lazy-loading\u002Freducing-cli-dependency-weight","Reducing CLI Dependency Weight",{"path":1638,"title":1639},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcommand-line-parsing-with-argparse\u002Fargparse-subparsers-for-subcommands","argparse Subparsers for Subcommands",{"path":1641,"title":1642},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcommand-line-parsing-with-argparse\u002Fargparse-vs-click-vs-typer-comparison","argparse vs Click vs Typer Compared",{"path":1644,"title":1645},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcommand-line-parsing-with-argparse","Command-Line Parsing with argparse",{"path":1647,"title":1648},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcommand-line-parsing-with-argparse\u002Fmigrating-from-argparse-to-typer","Migrating from argparse to Typer",{"path":1650,"title":1651},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcommand-line-parsing-with-argparse\u002Fmutually-exclusive-options-in-argparse","Mutually Exclusive Options in argparse",{"path":1653,"title":1654},"\u002Fmodern-python-cli-frameworks-architecture\u002Fcommand-line-parsing-with-argparse\u002Fwriting-custom-argparse-actions","Writing Custom argparse Actions in Python",{"path":1656,"title":1657},"\u002Fmodern-python-cli-frameworks-architecture\u002Fdesigning-cli-interfaces-and-conventions\u002Fadding-dry-run-and-confirmation-to-destructive-commands","Adding Dry-Run and Confirmation to Destructive Commands",{"path":1659,"title":1660},"\u002Fmodern-python-cli-frameworks-architecture\u002Fdesigning-cli-interfaces-and-conventions\u002Ffollowing-posix-and-gnu-argument-conventions","Following POSIX and GNU Argument Conventions in Python",{"path":1662,"title":1663},"\u002Fmodern-python-cli-frameworks-architecture\u002Fdesigning-cli-interfaces-and-conventions\u002Fglobal-options-vs-per-command-options","Global Options vs Per-Command Options in Python CLIs",{"path":1665,"title":1666},"\u002Fmodern-python-cli-frameworks-architecture\u002Fdesigning-cli-interfaces-and-conventions","Designing CLI Interfaces and Conventions in Python",{"path":1668,"title":1669},"\u002Fmodern-python-cli-frameworks-architecture\u002Fdesigning-cli-interfaces-and-conventions\u002Fnaming-commands-and-flags-consistently","Naming Commands and Flags Consistently in Python CLIs",{"path":1671,"title":1672},"\u002Fmodern-python-cli-frameworks-architecture","Python CLI Frameworks and Architecture",{"path":1674,"title":1675},"\u002Fmodern-python-cli-frameworks-architecture\u002Fplugin-architectures-for-extensible-clis\u002Fdiscovering-plugins-with-entry-points","Discovering Plugins with Entry Points in Python CLIs",{"path":1677,"title":1678},"\u002Fmodern-python-cli-frameworks-architecture\u002Fplugin-architectures-for-extensible-clis\u002Fhook-based-plugins-with-pluggy","Hook-Based Plugins for Python CLIs with pluggy",{"path":1680,"title":1681},"\u002Fmodern-python-cli-frameworks-architecture\u002Fplugin-architectures-for-extensible-clis","Plugin Architectures for Extensible CLIs",{"path":1683,"title":1684},"\u002Fmodern-python-cli-frameworks-architecture\u002Fplugin-architectures-for-extensible-clis\u002Fversioning-a-plugin-api","Versioning a Plugin API for a Python CLI",{"path":1686,"title":1687},"\u002Fmodern-python-cli-frameworks-architecture\u002Fplugin-architectures-for-extensible-clis\u002Fwriting-a-plugin-for-an-existing-cli","Writing a Plugin for an Existing CLI",{"path":1689,"title":1690},"\u002Fmodern-python-cli-frameworks-architecture\u002Fstructuring-multi-command-python-clis\u002Fbest-practices-for-python-cli-entry-points","Best practices for Python CLI entry points",{"path":1692,"title":1693},"\u002Fmodern-python-cli-frameworks-architecture\u002Fstructuring-multi-command-python-clis\u002Fdependency-injection-patterns-for-cli-commands","Dependency Injection Patterns for CLI Commands",{"path":1695,"title":1696},"\u002Fmodern-python-cli-frameworks-architecture\u002Fstructuring-multi-command-python-clis\u002Fhow-to-structure-a-large-python-cli-project","Structuring a Large Python CLI Project",{"path":1698,"title":1699},"\u002Fmodern-python-cli-frameworks-architecture\u002Fstructuring-multi-command-python-clis","Structuring Multi-Command Python CLIs",{"path":1701,"title":1702},"\u002Fmodern-python-cli-frameworks-architecture\u002Fstructuring-multi-command-python-clis\u002Fsharing-common-options-across-commands","Sharing Common Options Across Python CLI Commands",{"path":1704,"title":1705},"\u002Fmodern-python-cli-frameworks-architecture\u002Fstructuring-multi-command-python-clis\u002Fsharing-state-with-click-context-objects","Sharing State with Click Context Objects",{"path":1707,"title":1708},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Fend-to-end-testing-an-installed-cli","End-to-End Testing an Installed Python CLI",{"path":1710,"title":1711},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications","Testing Python CLI Applications",{"path":1713,"title":1714},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Fmeasuring-cli-test-coverage","Measuring CLI Test Coverage",{"path":1716,"title":1717},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Fmocking-filesystem-and-network-in-cli-tests","Mocking the Filesystem and Network in CLI Tests",{"path":1719,"title":1720},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Fproperty-based-testing-cli-arguments-with-hypothesis","Property-Based Testing CLI Arguments with Hypothesis",{"path":1722,"title":1723},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Fsnapshot-testing-cli-output","Snapshot Testing CLI Output",{"path":1725,"title":1726},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Ftesting-click-commands-with-clirunner","Testing Click Commands with CliRunner",{"path":1728,"title":1729},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftesting-python-cli-applications\u002Ftesting-interactive-prompts-and-stdin","Testing Interactive Prompts and stdin",{"path":1731,"title":1732},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftyper-vs-click-when-to-use-each\u002Fbuilding-a-cli-with-subcommands-in-click","Building a CLI with subcommands in Click",{"path":1734,"title":1735},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftyper-vs-click-when-to-use-each\u002Fbuilding-dynamic-commands-in-click","Building Dynamic Commands in Click",{"path":1737,"title":1738},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftyper-vs-click-when-to-use-each\u002Fconverting-a-click-app-to-typer","Converting a Click App to Typer",{"path":1740,"title":1741},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftyper-vs-click-when-to-use-each","Typer vs Click: When to Use Each",{"path":1743,"title":1744},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftyper-vs-click-when-to-use-each\u002Ftyper-callback-functions-explained","Typer callback functions explained",{"path":1746,"title":1747},"\u002Fmodern-python-cli-frameworks-architecture\u002Ftyper-vs-click-when-to-use-each\u002Fusing-annotated-options-in-typer","Using Annotated Options in Typer",{"path":1749,"title":1750},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Fautomating-releases-from-git-tags","Automating Python CLI Releases from Git Tags",{"path":1752,"title":1753},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Fcaching-uv-dependencies-in-ci","Caching uv Dependencies in CI for Python CLIs",{"path":1755,"title":1756},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis","CI\u002FCD Pipelines for Python CLIs",{"path":1758,"title":1759},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Fpublishing-to-pypi-with-trusted-publishing","Publishing a CLI to PyPI with Trusted Publishing",{"path":1761,"title":1762},"\u002Fproject-setup-dependency-management\u002Fci-cd-pipelines-for-python-clis\u002Fsmoke-testing-the-built-wheel-in-ci","Smoke-Testing the Built Wheel of a Python CLI in CI",{"path":1336,"title":5},{"path":1765,"title":1766},"\u002Fproject-setup-dependency-management\u002Fcli-project-scaffolding-with-cookiecutter\u002Fbuilding-a-cookiecutter-template-for-typer-clis","Building a Cookiecutter Template for Typer CLIs",{"path":1768,"title":1769},"\u002Fproject-setup-dependency-management\u002Fcli-project-scaffolding-with-cookiecutter\u002Fcopier-vs-cookiecutter-for-cli-templates","Copier vs Cookiecutter for CLI Templates",{"path":1771,"title":1772},"\u002Fproject-setup-dependency-management\u002Fcli-project-scaffolding-with-cookiecutter","CLI Project Scaffolding with Cookiecutter",{"path":1774,"title":1775},"\u002Fproject-setup-dependency-management\u002Fcli-project-scaffolding-with-cookiecutter\u002Fpost-generation-hooks-in-cli-templates","Post-Generation Hooks in Python CLI Templates",{"path":1777,"title":1778},"\u002Fproject-setup-dependency-management\u002Fdistributing-clis-as-standalone-binaries\u002Fbuilding-cross-platform-release-binaries-in-ci","Building Cross-Platform Release Binaries in CI",{"path":1780,"title":1781},"\u002Fproject-setup-dependency-management\u002Fdistributing-clis-as-standalone-binaries\u002Fbundling-a-python-cli-with-pyinstaller","Bundling a Python CLI with PyInstaller",{"path":1783,"title":1784},"\u002Fproject-setup-dependency-management\u002Fdistributing-clis-as-standalone-binaries\u002Fhomebrew-and-scoop-packaging-for-python-clis","Homebrew and Scoop Packaging for Python CLIs",{"path":1786,"title":1787},"\u002Fproject-setup-dependency-management\u002Fdistributing-clis-as-standalone-binaries","Distributing CLIs as Standalone Binaries",{"path":1789,"title":1790},"\u002Fproject-setup-dependency-management\u002Fdistributing-clis-as-standalone-binaries\u002Fnuitka-vs-pyinstaller-for-python-clis","Nuitka vs PyInstaller for Python CLI Binaries",{"path":1792,"title":1793},"\u002Fproject-setup-dependency-management\u002Fdistributing-clis-as-standalone-binaries\u002Fshipping-a-cli-as-a-zipapp-with-shiv","Shipping a CLI as a Zipapp with shiv",{"path":1795,"title":1796},"\u002Fproject-setup-dependency-management","Project Setup & Dependency Management",{"path":1798,"title":1799},"\u002Fproject-setup-dependency-management\u002Flinting-and-type-checking-cli-code\u002Fconfiguring-ruff-for-a-cli-project","Configuring Ruff for a Python CLI Project",{"path":1801,"title":1802},"\u002Fproject-setup-dependency-management\u002Flinting-and-type-checking-cli-code\u002Fenforcing-import-boundaries-in-a-cli-codebase","Enforcing Import Boundaries in a Python CLI Codebase",{"path":1804,"title":1805},"\u002Fproject-setup-dependency-management\u002Flinting-and-type-checking-cli-code","Linting and Type-Checking Python CLI Code",{"path":1807,"title":1808},"\u002Fproject-setup-dependency-management\u002Flinting-and-type-checking-cli-code\u002Ftype-checking-click-and-typer-code-with-mypy","Type-Checking Click and Typer Code with mypy",{"path":1810,"title":1811},"\u002Fproject-setup-dependency-management\u002Fmanaging-cli-versioning-changelogs\u002Fautomating-changelogs-with-conventional-commits","Automating Changelogs with Conventional Commits",{"path":1813,"title":1814},"\u002Fproject-setup-dependency-management\u002Fmanaging-cli-versioning-changelogs\u002Fderiving-versions-from-git-tags-with-hatch-vcs","Deriving CLI Versions from Git Tags with hatch-vcs",{"path":1816,"title":1817},"\u002Fproject-setup-dependency-management\u002Fmanaging-cli-versioning-changelogs\u002Fexposing-version-info-and-build-metadata","Exposing Version Info and Build Metadata",{"path":1819,"title":1820},"\u002Fproject-setup-dependency-management\u002Fmanaging-cli-versioning-changelogs","Managing CLI Versioning & Changelogs",{"path":1822,"title":1823},"\u002Fproject-setup-dependency-management\u002Fmanaging-cli-versioning-changelogs\u002Fsemantic-versioning-policy-for-cli-tools","A Semantic Versioning Policy for CLI Tools",{"path":1825,"title":1826},"\u002Fproject-setup-dependency-management\u002Fpackaging-python-clis-for-distribution\u002Fbuilding-wheels-and-sdists-for-python-clis","Building Wheels and sdists for Python CLIs",{"path":1828,"title":1829},"\u002Fproject-setup-dependency-management\u002Fpackaging-python-clis-for-distribution\u002Fbundling-data-files-with-importlib-resources","Bundling Data Files with importlib.resources in CLIs",{"path":1831,"title":1832},"\u002Fproject-setup-dependency-management\u002Fpackaging-python-clis-for-distribution","Packaging Python CLIs for Distribution",{"path":1834,"title":1835},"\u002Fproject-setup-dependency-management\u002Fpackaging-python-clis-for-distribution\u002Finstalling-and-distributing-clis-with-pipx","Installing and Distributing CLIs with pipx",{"path":1837,"title":1838},"\u002Fproject-setup-dependency-management\u002Fpackaging-python-clis-for-distribution\u002Fpublishing-a-python-cli-to-pypi","Publishing a Python CLI to PyPI",{"path":1840,"title":1841},"\u002Fproject-setup-dependency-management\u002Fpackaging-python-clis-for-distribution\u002Fwriting-pyproject-toml-metadata-for-a-cli","Writing pyproject.toml Metadata for a Python CLI",{"path":1843,"title":1844},"\u002Fproject-setup-dependency-management\u002Fpoetry-workflows-for-cli-development","Poetry Workflows for CLI Development",{"path":1846,"title":1847},"\u002Fproject-setup-dependency-management\u002Fpoetry-workflows-for-cli-development\u002Fmigrating-a-cli-from-poetry-to-uv","Migrating a Python CLI from Poetry to uv",{"path":1849,"title":1850},"\u002Fproject-setup-dependency-management\u002Fpoetry-workflows-for-cli-development\u002Fpoetry-dependency-groups-for-cli-tooling","Poetry Dependency Groups for CLI Tooling",{"path":1852,"title":1853},"\u002Fproject-setup-dependency-management\u002Fpoetry-workflows-for-cli-development\u002Fpoetry-entry-points-and-scripts-for-clis","Poetry Entry Points and Scripts for CLIs",{"path":1855,"title":1856},"\u002Fproject-setup-dependency-management\u002Fpre-commit-hooks-for-cli-projects","Pre-commit Hooks for CLI Projects",{"path":1858,"title":1859},"\u002Fproject-setup-dependency-management\u002Fpre-commit-hooks-for-cli-projects\u002Fsetting-up-pre-commit-for-python-cli-repos","Setting up pre-commit for Python CLI repos",{"path":1861,"title":1862},"\u002Fproject-setup-dependency-management\u002Fpre-commit-hooks-for-cli-projects\u002Fshipping-your-cli-as-a-pre-commit-hook","Shipping Your Python CLI as a pre-commit Hook",{"path":1864,"title":1865},"\u002Fproject-setup-dependency-management\u002Fpre-commit-hooks-for-cli-projects\u002Fwriting-local-pre-commit-hooks-in-python","Writing Local pre-commit Hooks in Python",{"path":1867,"title":1868},"\u002Fproject-setup-dependency-management\u002Fuv-for-python-cli-dependency-management","uv for Python CLI Dependency Management",{"path":1870,"title":1871},"\u002Fproject-setup-dependency-management\u002Fuv-for-python-cli-dependency-management\u002Frunning-one-off-cli-scripts-with-uv-run","Running One-Off CLI Scripts with uv run and PEP 723",{"path":1873,"title":1874},"\u002Fproject-setup-dependency-management\u002Fuv-for-python-cli-dependency-management\u002Fuv-init-vs-poetry-init-for-cli-tools","uv init vs poetry init for CLI tools",{"path":1876,"title":1877},"\u002Fproject-setup-dependency-management\u002Fuv-for-python-cli-dependency-management\u002Fuv-tool-install-vs-pipx-for-clis","uv tool install vs pipx for CLIs",{"path":1879,"title":1880},"\u002Fproject-setup-dependency-management\u002Fuv-for-python-cli-dependency-management\u002Fuv-workspaces-for-multi-package-clis","uv Workspaces for Multi-Package Python CLIs",{"path":1882,"title":1883},"\u002Fproject-setup-dependency-management\u002Fvirtual-environments-isolation-best-practices","Python CLI Env Isolation Best Practices",{"path":1885,"title":1886},"\u002Fproject-setup-dependency-management\u002Fvirtual-environments-isolation-best-practices\u002Fmanaging-virtual-environments-for-cross-platform-clis","Managing Python CLI Virtual Environments",{"path":1888,"title":1889},"\u002Fproject-setup-dependency-management\u002Fvirtual-environments-isolation-best-practices\u002Fpinning-the-python-version-for-a-cli","Pinning the Python Version for a CLI",{"path":1891,"title":1892},"\u002Fproject-setup-dependency-management\u002Fvirtual-environments-isolation-best-practices\u002Fsupporting-multiple-python-versions-with-nox","Supporting Multiple Python Versions with nox",1789736907473]