]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
➖ Temporarily remove typer-cli from dependencies and upgrade Black (#4754)
authorSebastián Ramírez <tiangolo@gmail.com>
Fri, 1 Apr 2022 23:01:51 +0000 (18:01 -0500)
committerGitHub <noreply@github.com>
Fri, 1 Apr 2022 23:01:51 +0000 (23:01 +0000)
pyproject.toml
tests/test_tutorial/test_request_files/test_tutorial001.py

index 77c01322fe6b0f27ffd3512c725793523e5ab0b9..46a655a48bde2d5be8515e39d0f0b1ffd2015381 100644 (file)
@@ -50,7 +50,7 @@ test = [
     "pytest-cov >=2.12.0,<4.0.0",
     "mypy ==0.910",
     "flake8 >=3.8.3,<4.0.0",
-    "black ==21.9b0",
+    "black == 22.3.0",
     "isort >=5.0.6,<6.0.0",
     "requests >=2.24.0,<3.0.0",
     "httpx >=0.14.0,<0.19.0",
@@ -74,7 +74,9 @@ doc = [
     "mkdocs-material >=8.1.4,<9.0.0",
     "mdx-include >=1.4.1,<2.0.0",
     "mkdocs-markdownextradata-plugin >=0.1.7,<0.3.0",
-    "typer-cli >=0.0.12,<0.0.13",
+    # TODO: upgrade and enable typer-cli once it supports Click 8.x.x
+    # "typer-cli >=0.0.12,<0.0.13",
+    "typer >=0.4.1,<0.5.0",
     "pyyaml >=5.3.1,<6.0.0"
 ]
 dev = [
index c1537f445da1742e5394f58db83df28a00cb3314..841116e30b673dbbcc36e75bb7856479a23147dc 100644 (file)
@@ -162,7 +162,7 @@ def test_post_file(tmp_path):
 
 
 def test_post_large_file(tmp_path):
-    default_pydantic_max_size = 2 ** 16
+    default_pydantic_max_size = 2**16
     path = tmp_path / "test.txt"
     path.write_bytes(b"x" * (default_pydantic_max_size + 1))