Skip to content

Commit 4eaf489

Browse files
committed
Added type checking with pyright, updated the minimum python version to 3.10 (for newer type checking features), added pyright to tox setup.
1 parent e0bc022 commit 4eaf489

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.readthedocs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ submodules:
1111
build:
1212
os: ubuntu-22.04
1313
tools:
14-
python: "3.9"
14+
python: "3.10"
1515

1616
# Build documentation in the docs/ directory with Sphinx
1717
sphinx:

setup.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ license_files = LICENSE
99
classifiers =
1010
Development Status :: 5 - Production/Stable
1111
License :: OSI Approved :: MIT License
12-
Programming Language :: Python :: 3.9
12+
Programming Language :: Python :: 3.10
1313
project_urls =
1414
Source = https://github.com/Nusiq/better_json_tools/tree/master
1515
Documentation = https://better-json-tools.readthedocs.io/en/stable/
1616

1717
[options]
18-
python_requires = >=3.9
18+
python_requires = >=3.10
1919
package_dir =
2020
=src
2121
packages = find:

tox.ini

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
[tox]
2-
envlist = python3.9
2+
envlist = python3.10
33

44
### Run `tox` command to run tests and create documentation
55
[testenv]
66
deps =
77
pytest
88
sphinx
99
sphinx_rtd_theme
10+
pyright
1011
commands =
1112
## Run tests
1213
pytest {posargs}
14+
# Check types
15+
pyright

0 commit comments

Comments
 (0)