Skip to content

Commit fa20d6e

Browse files
committed
Make pyproject.toml properly PEP-517 compatible
1 parent 8b010f0 commit fa20d6e

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: macos-latest
1414
strategy:
1515
matrix:
16-
python-version: [3.6, 3.7, 3.8]
16+
python-version: [3.6, 3.7, 3.8, 3.9]
1717
steps:
1818
- uses: actions/checkout@v2
1919
- name: Set up Python ${{ matrix.python-version }}
@@ -27,5 +27,5 @@ jobs:
2727
poetry install
2828
- name: Run checks
2929
run: |
30-
pre-commit run --all-files
30+
pre-commit run --all-files --show-diff-on-failure
3131
poetry run pytest tests.py --hypothesis-show-statistics --verbose

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ repos:
33
rev: stable
44
hooks:
55
- id: black
6+
language_version: python3
67
- repo: https://github.com/pre-commit/pre-commit-hooks
78
rev: v2.4.0
89
hooks:

pyproject.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pasteboard"
3-
version = "0.3.1"
3+
version = "0.3.2"
44
description = "Pasteboard - Python interface for reading from NSPasteboard (macOS clipboard)"
55
authors = ["Toby Fleming <[email protected]>"]
66
license = "MPL-2.0"
@@ -17,6 +17,7 @@ classifiers = [
1717
"Programming Language :: Python :: 3.6",
1818
"Programming Language :: Python :: 3.7",
1919
"Programming Language :: Python :: 3.8",
20+
"Programming Language :: Python :: 3.9",
2021
"Programming Language :: Python :: Implementation :: CPython",
2122
"Topic :: Desktop Environment",
2223
"Topic :: Software Development :: Libraries",
@@ -28,10 +29,11 @@ build = "build.py"
2829
python = "^3.6"
2930

3031
[tool.poetry.dev-dependencies]
31-
black = "^19.10b0"
32-
pytest = "^5.3.5"
33-
hypothesis = "^5.5.4"
34-
mypy = "^0.761"
32+
black = "^20.8b1"
33+
pytest = "^6.1.1"
34+
hypothesis = "^5.37.4"
35+
mypy = "^0.790"
3536

3637
[build-system]
37-
requires = ["poetry>=1.0.0"]
38+
requires = ["poetry-core"]
39+
build-backend = "poetry.core.masonry.api"

tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def test_type_hints_get_contents_valid_both_args(tmp_path):
184184
assert exit_status == 0, normal_report
185185

186186

187-
@pytest.mark.parametrize("arg", ['"bar"', 'foo="bar"', 'type="bar"', 'diff="bar"',])
187+
@pytest.mark.parametrize("arg", ['"bar"', 'foo="bar"', 'type="bar"', 'diff="bar"'])
188188
def test_type_hints_get_contents_invalid_arg(arg, tmp_path):
189189
normal_report, error_report, exit_status = mypy_run(
190190
tmp_path,
@@ -198,7 +198,7 @@ def test_type_hints_get_contents_invalid_arg(arg, tmp_path):
198198
assert "No overload variant" in normal_report
199199

200200

201-
@pytest.mark.parametrize("arg", ['"bar"', 'b"bar"',])
201+
@pytest.mark.parametrize("arg", ['"bar"', 'b"bar"'])
202202
def test_type_hints_set_contents_valid_no_args(arg, tmp_path):
203203
normal_report, error_report, exit_status = mypy_run(
204204
tmp_path,
@@ -211,7 +211,7 @@ def test_type_hints_set_contents_valid_no_args(arg, tmp_path):
211211
assert exit_status == 0, normal_report
212212

213213

214-
@pytest.mark.parametrize("arg", ['"bar"', 'b"bar"',])
214+
@pytest.mark.parametrize("arg", ['"bar"', 'b"bar"'])
215215
def test_type_hints_set_contents_valid_type_args(arg, tmp_path):
216216
normal_report, error_report, exit_status = mypy_run(
217217
tmp_path,

0 commit comments

Comments
 (0)