Skip to content

Commit a66b07c

Browse files
Merge pull request #1357 from VWS-Python/bump-mypy
Bump mypy and account for new features
2 parents fde1e71 + ff0ccfc commit a66b07c

File tree

13 files changed

+34
-27
lines changed

13 files changed

+34
-27
lines changed

.github/workflows/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: [ubuntu-latest]
2222

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

.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
@@ -12,7 +12,7 @@ Installation
1212
1313
pip install vws-python
1414
15-
This is tested on Python 3.8+.
15+
This is tested on Python 3.9+.
1616
Get in touch with ``adamdangoor@gmail.com`` if you would like to use this with another language.
1717

1818
Getting Started

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ flake8-quotes==3.2.0 # Require single quotes
1616
flake8==3.8.4 # Lint
1717
freezegun==1.1.0
1818
isort==5.7.0 # Lint imports
19-
mypy==0.790 # Type checking
19+
mypy==0.800 # Type checking
2020
pip_check_reqs==2.1.1
2121
pydocstyle==5.1.1 # Lint docstrings
2222
pyenchant==3.2.0 # Bindings for a spellchecking sytem

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
htmlhelp_basename = 'VWSPYTHONdoc'
6262
autoclass_content = 'init'
6363
intersphinx_mapping = {
64-
'python': ('https://docs.python.org/3.8', None),
64+
'python': ('https://docs.python.org/3.9', None),
6565
}
6666
nitpicky = True
6767
warning_is_error = True

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.

lint.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fix-black:
1212

1313
.PHONY: mypy
1414
mypy:
15-
mypy *.py src/ tests/ docs/source/ admin
15+
mypy .
1616

1717
.PHONY: check-manifest
1818
check-manifest:

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
'duplicate-code',
6666
# Let isort handle imports
6767
'wrong-import-order',
68+
# pylint does not support new type hint styles e.g. list[str]
69+
'unsubscriptable-object',
6870
]
6971

7072
[tool.pylint.'FORMAT']

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ license_file = LICENSE
5959
classifiers =
6060
Operating System :: POSIX
6161
Environment :: Web Environment
62-
Programming Language :: Python :: 3.8
62+
Programming Language :: Python :: 3.9
6363
License :: OSI Approved :: MIT License
6464
Development Status :: 5 - Production/Stable
6565
url = https://vws-python.readthedocs.io

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
"""Setup script for VWS Python, a wrapper for Vuforia's Web Services APIs."""
22

3+
from __future__ import annotations
4+
35
from pathlib import Path
4-
from typing import List
56

67
from setuptools import setup
78

89

9-
def _get_dependencies(requirements_file: Path) -> List[str]:
10+
def _get_dependencies(requirements_file: Path) -> list[str]:
1011
"""
1112
Return requirements from a requirements file.
1213

0 commit comments

Comments
 (0)