Skip to content

Commit

Permalink
Merge pull request #297 from mollie/add-type-annotations-marker
Browse files Browse the repository at this point in the history
Add type annotations marker
  • Loading branch information
geertjanvdenbosch authored Jan 5, 2023
2 parents 8f43344 + 3939ed6 commit e5c0751
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.7", "pypy-3.9"]
coverage_fail_under: [90]
include:
# https://github.com/nedbat/coveragepy/issues/1515
# https://foss.heptapod.net/pypy/pypy/-/issues/3876
- python_version: "pypy-3.8"
coverage_fail_under: 0
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.7", "pypy-3.8", "pypy-3.9"]
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -33,7 +27,7 @@ jobs:
python -m pip install -r test_requirements.txt
- name: Run unittests
run: python -m pytest --cov-fail-under=${{ matrix.coverage_fail_under }}
run: python -m pytest --cov-fail-under=90

- name: Verify dependencies
run: python -m safety check
Expand Down
2 changes: 1 addition & 1 deletion mollie/api/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# processed by python imports and by regular expressions. The version is defined as a string in the
# regular semantic versioning scheme (major, minor, patch) as defined by PEP 440.

VERSION = "3.0.1"
VERSION = "3.1.0"
1 change: 1 addition & 0 deletions mollie/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
partial
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def get_version():
long_description_content_type="text/markdown",
packages=find_packages(),
include_package_data=True,
package_data={
"mollie": ["py.typed"],
},
description="Mollie API client for Python",
author="Mollie B.V.",
author_email="[email protected]",
Expand Down
1 change: 1 addition & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ mypy; platform_python_implementation != "PyPy"
responses>=0.17.0
safety
types-requests
coverage>=7.0.2

0 comments on commit e5c0751

Please sign in to comment.