Skip to content

Commit 01c3ad9

Browse files
Merge pull request #848 from VWS-Python/bump-python-and-mypy
Bump Python to 3.9
2 parents 0a84c2f + 42f3643 commit 01c3ad9

File tree

24 files changed

+78
-50
lines changed

24 files changed

+78
-50
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
python-version: [3.8.5]
23+
python-version: [3.9]
2424
ci_pattern:
2525
- test_query.py::TestContentType
2626
- test_query.py::TestSuccess

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
strategy:
2121
matrix:
22-
python-version: [3.8]
22+
python-version: [3.9]
2323

2424
steps:
2525
- uses: actions/checkout@v2

.github/workflows/windows-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
python-version: [3.8]
20+
python-version: [3.9]
2121
platform: [windows-latest]
2222

2323
runs-on: ${{ matrix.platform }}

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Mocking calls made to Vuforia with Python ``requests``
1313

1414
Using the mock redirects requests to Vuforia made with `requests`_ to an in-memory implementation.
1515

16-
This requires Python 3.8.5+.
16+
This requires Python 3.9+.
1717

1818
.. code:: sh
1919

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
htmlhelp_basename = 'VWSPYTHONMOCKdoc'
6565
autoclass_content = 'init'
6666
intersphinx_mapping = {
67-
'python': ('https://docs.python.org/3.8', None),
67+
'python': ('https://docs.python.org/3.9', None),
6868
'docker': ('https://docker-py.readthedocs.io/en/stable', None),
6969
}
7070
nitpicky = True

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Mocking calls made to Vuforia with Python ``requests``
88

99
pip3 install vws-python-mock
1010

11-
This requires Python 3.8+.
11+
This requires Python 3.9+.
1212

1313
.. include:: basic-example.rst
1414

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Installation
55

66
pip3 install vws-python-mock
77

8-
This requires Python 3.8+.
8+
This requires Python 3.9+.

docs/source/mock-api-reference.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ API Reference
77
:members:
88
:undoc-members:
99

10+
.. TODO why does this error only with :undoc-members:
11+
1012
.. autoclass:: mock_vws.target.TargetDict
1113
:members:
1214
:undoc-members:

docs/source/release-process.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Outcomes
1010
Prerequisites
1111
~~~~~~~~~~~~~
1212

13-
* ``python3`` on your ``PATH`` set to Python 3.8+.
13+
* ``python3`` on your ``PATH`` set to Python 3.9+.
1414
* ``virtualenv``.
1515
* Push access to this repository.
1616
* Trust that ``master`` is ready and high enough quality for release.

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@
6868
'duplicate-code',
6969
# Let isort handle imports
7070
'wrong-import-order',
71+
72+
# Wait until pylint supports Python 3.9 to disable these:
73+
# - https://github.com/PyCQA/pylint/issues/3876
74+
# - https://github.com/PyCQA/pylint/issues/3882
75+
'unsubscriptable-object',
76+
'inherit-non-class',
7177
]
7278

7379
[tool.pylint.'FORMAT']

0 commit comments

Comments
 (0)