From 3d4c25fd0f3a0330edf712352b6546b9e8e84f02 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Tue, 26 May 2026 15:12:11 -0400 Subject: [PATCH 1/5] lower black version --- .../changes/python-lowerBlackVersion-2026-4-26-15-12-5.md | 7 +++++++ .../http-client-python/eng/scripts/ci/dev_requirements.txt | 2 +- packages/http-client-python/generator/setup.py | 2 +- packages/http-client-python/tests/requirements/lint.txt | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .chronus/changes/python-lowerBlackVersion-2026-4-26-15-12-5.md diff --git a/.chronus/changes/python-lowerBlackVersion-2026-4-26-15-12-5.md b/.chronus/changes/python-lowerBlackVersion-2026-4-26-15-12-5.md new file mode 100644 index 00000000000..f1acdc208da --- /dev/null +++ b/.chronus/changes/python-lowerBlackVersion-2026-4-26-15-12-5.md @@ -0,0 +1,7 @@ +--- +changeKind: fix +packages: + - "@typespec/http-client-python" +--- + +Lower `black` version to `24.8.0` to be consistent with what's in main \ No newline at end of file diff --git a/packages/http-client-python/eng/scripts/ci/dev_requirements.txt b/packages/http-client-python/eng/scripts/ci/dev_requirements.txt index 2cd6c29dc53..0b9b159b2fb 100644 --- a/packages/http-client-python/eng/scripts/ci/dev_requirements.txt +++ b/packages/http-client-python/eng/scripts/ci/dev_requirements.txt @@ -7,6 +7,6 @@ colorama==0.4.6 debugpy==1.8.2 pytest==9.0.3 coverage==7.6.1 -black==26.3.1 +black==24.8.0 ptvsd==4.3.2 types-PyYAML==6.0.12.8 diff --git a/packages/http-client-python/generator/setup.py b/packages/http-client-python/generator/setup.py index f432970c9a7..9119833b796 100644 --- a/packages/http-client-python/generator/setup.py +++ b/packages/http-client-python/generator/setup.py @@ -46,7 +46,7 @@ ] ), install_requires=[ - "black==26.3.1", + "black==24.8.0", "docutils>=0.20.1", "Jinja2==3.1.6", "PyYAML==6.0.1", diff --git a/packages/http-client-python/tests/requirements/lint.txt b/packages/http-client-python/tests/requirements/lint.txt index 736a7806543..2a9896f8d75 100644 --- a/packages/http-client-python/tests/requirements/lint.txt +++ b/packages/http-client-python/tests/requirements/lint.txt @@ -1,4 +1,4 @@ # Linting dependencies -r base.txt pylint==4.0.4 -black==26.3.1 +black==24.8.0 From cbf05e0391dba0bf0c679571662102d6acf9a67a Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Tue, 26 May 2026 12:15:37 -0700 Subject: [PATCH 2/5] Apply suggestion from @l0lawrence --- .chronus/changes/python-lowerBlackVersion-2026-4-26-15-12-5.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.chronus/changes/python-lowerBlackVersion-2026-4-26-15-12-5.md b/.chronus/changes/python-lowerBlackVersion-2026-4-26-15-12-5.md index f1acdc208da..fc0f64ccbb6 100644 --- a/.chronus/changes/python-lowerBlackVersion-2026-4-26-15-12-5.md +++ b/.chronus/changes/python-lowerBlackVersion-2026-4-26-15-12-5.md @@ -4,4 +4,4 @@ packages: - "@typespec/http-client-python" --- -Lower `black` version to `24.8.0` to be consistent with what's in main \ No newline at end of file +Lower `black` version to `24.4.0` to be consistent with what's in main \ No newline at end of file From f0d22b5e5ab8023b424bba2b7ec7e1523c935b15 Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Tue, 26 May 2026 12:15:47 -0700 Subject: [PATCH 3/5] Apply suggestion from @l0lawrence --- packages/http-client-python/eng/scripts/ci/dev_requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/http-client-python/eng/scripts/ci/dev_requirements.txt b/packages/http-client-python/eng/scripts/ci/dev_requirements.txt index 0b9b159b2fb..adfd8faac20 100644 --- a/packages/http-client-python/eng/scripts/ci/dev_requirements.txt +++ b/packages/http-client-python/eng/scripts/ci/dev_requirements.txt @@ -7,6 +7,6 @@ colorama==0.4.6 debugpy==1.8.2 pytest==9.0.3 coverage==7.6.1 -black==24.8.0 +black==24.4.0 ptvsd==4.3.2 types-PyYAML==6.0.12.8 From c9a73002924040153c160d2d8f5f3b885a775548 Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Tue, 26 May 2026 12:15:56 -0700 Subject: [PATCH 4/5] Apply suggestion from @l0lawrence --- packages/http-client-python/generator/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/http-client-python/generator/setup.py b/packages/http-client-python/generator/setup.py index 9119833b796..c5c81314f1b 100644 --- a/packages/http-client-python/generator/setup.py +++ b/packages/http-client-python/generator/setup.py @@ -46,7 +46,7 @@ ] ), install_requires=[ - "black==24.8.0", + "black==24.4.0", "docutils>=0.20.1", "Jinja2==3.1.6", "PyYAML==6.0.1", From 20ff7f8938b05f5a8408456d33d4bcd790c2f09b Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Tue, 26 May 2026 12:16:06 -0700 Subject: [PATCH 5/5] Apply suggestion from @l0lawrence --- packages/http-client-python/tests/requirements/lint.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/http-client-python/tests/requirements/lint.txt b/packages/http-client-python/tests/requirements/lint.txt index 2a9896f8d75..99fa33886f8 100644 --- a/packages/http-client-python/tests/requirements/lint.txt +++ b/packages/http-client-python/tests/requirements/lint.txt @@ -1,4 +1,4 @@ # Linting dependencies -r base.txt pylint==4.0.4 -black==24.8.0 +black==24.4.0