Skip to content

Commit 20efa80

Browse files
authored
Merge branch 'master' into dependabot/pip/mkdocs-material-9.6.14
2 parents 16cca74 + 3b17788 commit 20efa80

48 files changed

Lines changed: 218 additions & 80 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Environment variables automatically read by VS Code, e.g. running tests
2+
3+
# For tests, a large terminal width
4+
TERMINAL_WIDTH=3000

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
- name: Install Dependencies
5858
run: uv pip install -r requirements-tests.txt
5959
- name: Lint
60+
if: matrix.python-version != '3.7' && matrix.python-version != '3.8' && matrix.python-version != '3.9'
6061
run: bash scripts/lint.sh
6162
- run: mkdir coverage
6263
- run: bash ./scripts/test-files.sh

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.11.6
17+
rev: v0.11.13
1818
hooks:
1919
- id: ruff
2020
args:

docs/release-notes.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,39 @@
22

33
## Latest Changes
44

5+
### Docs
6+
7+
* 📝 Fix reference to `count` parameter in the documentation. PR [#1201](https://github.com/fastapi/typer/pull/1201) by [@PokkaKiyo](https://github.com/PokkaKiyo).
8+
9+
### Internal
10+
11+
*[pre-commit.ci] pre-commit autoupdate. PR [#1206](https://github.com/fastapi/typer/pull/1206) by [@pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci).
12+
* ⬆ Bump pillow from 11.1.0 to 11.2.1. PR [#1198](https://github.com/fastapi/typer/pull/1198) by [@dependabot[bot]](https://github.com/apps/dependabot).
13+
* ⬆ Bump cairosvg from 2.7.1 to 2.8.2. PR [#1226](https://github.com/fastapi/typer/pull/1226) by [@dependabot[bot]](https://github.com/apps/dependabot).
14+
* ⬆ Bump ruff from 0.11.6 to 0.11.13. PR [#1241](https://github.com/fastapi/typer/pull/1241) by [@dependabot[bot]](https://github.com/apps/dependabot).
15+
16+
## 0.16.0
17+
18+
### Upgrades
19+
20+
* ⬆️ Add compatibility with Click 8.2. PR [#1222](https://github.com/fastapi/typer/pull/1222) by [@tiangolo](https://github.com/tiangolo).
21+
22+
When using the `CliRunner` with Click < 8.2, to be able to access the `stderr` output, you needed to set the `mix_stderr` parameter to `True`. Since Click 8.2 (and Typer 0.160 this release supporting it) this is no longer necessary, so this parameter has been removed.
23+
24+
### Refactors
25+
26+
* ✅ Refactor tests for compatibility with Click 8.2. PR [#1230](https://github.com/fastapi/typer/pull/1230) by [@tiangolo](https://github.com/tiangolo).
27+
28+
### Internal
29+
30+
* 🔧 Remove Google Analytics. PR [#1229](https://github.com/fastapi/typer/pull/1229) by [@tiangolo](https://github.com/tiangolo).
31+
32+
## 0.15.4
33+
34+
### Upgrades
35+
36+
* 📌 Pin Click to < 8.2, compatibility for Click >= 8.2 will be added in a future version. PR [#1225](https://github.com/fastapi/typer/pull/1225) by [@tiangolo](https://github.com/tiangolo).
37+
538
## 0.15.3
639

740
### Fixes

docs/tutorial/parameter-types/number.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ ID is 5
100100

101101
## Counter *CLI options*
102102

103-
You can make a *CLI option* work as a counter with the `counter` parameter:
103+
You can make a *CLI option* work as a counter with the `count` parameter:
104104

105105
{* docs_src/parameter_types/number/tutorial003_an.py hl[5] *}
106106

docs/tutorial/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Then we check that the text printed to "standard output" contains the text that
7171

7272
/// tip
7373

74-
You could also check output sent to "standard error" (`stderr`) instead of "standard output" (`stdout`). To do so, make sure your `CliRunner` instance is created with the `mix_stderr=False` argument. You need this setting to be able to access `result.stderr` in tests.
74+
You could also check the output sent to "standard error" (`stderr`) or "standard output" (`stdout`) independently by accessing `result.stdout` and `result.stderr` in your tests.
7575

7676
///
7777

docs_src/testing/app01/test_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
def test_app():
99
result = runner.invoke(app, ["Camila", "--city", "Berlin"])
1010
assert result.exit_code == 0
11-
assert "Hello Camila" in result.stdout
12-
assert "Let's have a coffee in Berlin" in result.stdout
11+
assert "Hello Camila" in result.output
12+
assert "Let's have a coffee in Berlin" in result.output

docs_src/testing/app02/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
def test_app():
99
result = runner.invoke(app, ["Camila"], input="[email protected]\n")
1010
assert result.exit_code == 0
11-
assert "Hello Camila, your email is: [email protected]" in result.stdout
11+
assert "Hello Camila, your email is: [email protected]" in result.output

docs_src/testing/app02_an/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
def test_app():
99
result = runner.invoke(app, ["Camila"], input="[email protected]\n")
1010
assert result.exit_code == 0
11-
assert "Hello Camila, your email is: [email protected]" in result.stdout
11+
assert "Hello Camila, your email is: [email protected]" in result.output

docs_src/testing/app03/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
def test_app():
1313
result = runner.invoke(app, ["--name", "Camila"])
1414
assert result.exit_code == 0
15-
assert "Hello Camila" in result.stdout
15+
assert "Hello Camila" in result.output

0 commit comments

Comments
 (0)