Skip to content

Commit

Permalink
Make pyproject.toml properly PEP-517 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
tobywf committed Oct 24, 2020
1 parent 8b010f0 commit fa20d6e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -27,5 +27,5 @@ jobs:
poetry install
- name: Run checks
run: |
pre-commit run --all-files
pre-commit run --all-files --show-diff-on-failure
poetry run pytest tests.py --hypothesis-show-statistics --verbose
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ repos:
rev: stable
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
Expand Down
14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pasteboard"
version = "0.3.1"
version = "0.3.2"
description = "Pasteboard - Python interface for reading from NSPasteboard (macOS clipboard)"
authors = ["Toby Fleming <[email protected]>"]
license = "MPL-2.0"
Expand All @@ -17,6 +17,7 @@ classifiers = [
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Desktop Environment",
"Topic :: Software Development :: Libraries",
Expand All @@ -28,10 +29,11 @@ build = "build.py"
python = "^3.6"

[tool.poetry.dev-dependencies]
black = "^19.10b0"
pytest = "^5.3.5"
hypothesis = "^5.5.4"
mypy = "^0.761"
black = "^20.8b1"
pytest = "^6.1.1"
hypothesis = "^5.37.4"
mypy = "^0.790"

[build-system]
requires = ["poetry>=1.0.0"]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
6 changes: 3 additions & 3 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def test_type_hints_get_contents_valid_both_args(tmp_path):
assert exit_status == 0, normal_report


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


@pytest.mark.parametrize("arg", ['"bar"', 'b"bar"',])
@pytest.mark.parametrize("arg", ['"bar"', 'b"bar"'])
def test_type_hints_set_contents_valid_no_args(arg, tmp_path):
normal_report, error_report, exit_status = mypy_run(
tmp_path,
Expand All @@ -211,7 +211,7 @@ def test_type_hints_set_contents_valid_no_args(arg, tmp_path):
assert exit_status == 0, normal_report


@pytest.mark.parametrize("arg", ['"bar"', 'b"bar"',])
@pytest.mark.parametrize("arg", ['"bar"', 'b"bar"'])
def test_type_hints_set_contents_valid_type_args(arg, tmp_path):
normal_report, error_report, exit_status = mypy_run(
tmp_path,
Expand Down

0 comments on commit fa20d6e

Please sign in to comment.