-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update python-python-lsp-black to version 2.0.0 / rev 9 via SR 1154412
https://build.opensuse.org/request/show/1154412 by user bnavigator + dimstar_suse - Add python-lsp-black-pr56-black24.2.patch gh#python-lsp/python-lsp-black#56 (forwarded request 1154411 from bnavigator)
- Loading branch information
1 parent
9ab230d
commit 5587660
Showing
5 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
packages/p/python-python-lsp-black/python-lsp-black-pr56-black24.2.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
From d43b41431379f9c9bb05fab158c4d97e6d515f8f Mon Sep 17 00:00:00 2001 | ||
From: Johannes Schauer Marin Rodrigues <[email protected]> | ||
Date: Tue, 20 Feb 2024 07:44:20 +0100 | ||
Subject: [PATCH] Make tests work with black 24.2.0 | ||
|
||
Closes: #55 | ||
--- | ||
setup.cfg | 2 ++ | ||
tests/test_plugin.py | 18 ++++++++++++++++-- | ||
2 files changed, 18 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/setup.cfg b/setup.cfg | ||
index a4fefd3..5103bcb 100644 | ||
--- a/setup.cfg | ||
+++ b/setup.cfg | ||
@@ -22,6 +22,8 @@ install_requires = | ||
python-lsp-server>=1.4.0 | ||
black>=23.11.0 | ||
tomli; python_version<'3.11' | ||
+tests_require = | ||
+ black>=24.2.0 | ||
python_requires = >= 3.8 | ||
|
||
[options.entry_points] | ||
diff --git a/tests/test_plugin.py b/tests/test_plugin.py | ||
index 0a51767..2ae8088 100644 | ||
--- a/tests/test_plugin.py | ||
+++ b/tests/test_plugin.py | ||
@@ -281,7 +281,14 @@ def test_load_config_defaults(config): | ||
|
||
assert config == { | ||
"line_length": 88, | ||
- "target_version": set(), | ||
+ "target_version": set( | ||
+ [ | ||
+ black.TargetVersion.PY38, | ||
+ black.TargetVersion.PY39, | ||
+ black.TargetVersion.PY310, | ||
+ black.TargetVersion.PY311, | ||
+ ] | ||
+ ), | ||
"pyi": False, | ||
"fast": False, | ||
"skip_magic_trailing_comma": False, | ||
@@ -297,7 +304,14 @@ def test_load_config_with_skip_options(config_with_skip_options): | ||
|
||
assert config == { | ||
"line_length": 88, | ||
- "target_version": set(), | ||
+ "target_version": set( | ||
+ [ | ||
+ black.TargetVersion.PY38, | ||
+ black.TargetVersion.PY39, | ||
+ black.TargetVersion.PY310, | ||
+ black.TargetVersion.PY311, | ||
+ ] | ||
+ ), | ||
"pyi": False, | ||
"fast": False, | ||
"skip_magic_trailing_comma": True, |
6 changes: 6 additions & 0 deletions
6
packages/p/python-python-lsp-black/python-python-lsp-black.changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
------------------------------------------------------------------- | ||
Sun Mar 3 11:20:47 UTC 2024 - Ben Greiner <[email protected]> | ||
|
||
- Add python-lsp-black-pr56-black24.2.patch | ||
gh#python-lsp/python-lsp-black#56 | ||
|
||
------------------------------------------------------------------- | ||
Fri Jan 5 18:15:23 UTC 2024 - Dirk Müller <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters