Skip to content

Commit 26cfadf

Browse files
authored
Merge pull request #31 from wlcx/test-python310
Add python310 to the test matrix
2 parents fffd6d1 + a2712d7 commit 26cfadf

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: [3.6, 3.7, 3.8, 3.9]
14+
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
1515
steps:
1616
- uses: actions/checkout@v2
1717
- name: Set up Python ${{ matrix.python-version }}

pylsp_black/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def load_config(filename: str) -> Dict:
139139
black.TargetVersion.PY37,
140140
black.TargetVersion.PY38,
141141
black.TargetVersion.PY39,
142+
black.TargetVersion.PY310,
142143
}
143144
else:
144145
target_version = set()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.black]
2-
target-version = ['py36', 'py37', 'py38', 'py39']
2+
target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
33
exclude = '''
44
/(
55
\.venv

tests/test_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ def test_load_config_py36():
201201
black.TargetVersion.PY37,
202202
black.TargetVersion.PY38,
203203
black.TargetVersion.PY39,
204+
black.TargetVersion.PY310,
204205
}
205206

206207

0 commit comments

Comments
 (0)