Skip to content

Commit

Permalink
Merge pull request #56 from josch/issue-55
Browse files Browse the repository at this point in the history
Make tests work with black 24.2.0
  • Loading branch information
ccordoba12 authored Feb 20, 2024
2 parents 307e87d + d43b414 commit 56cc08c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
18 changes: 16 additions & 2 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 56cc08c

Please sign in to comment.