Skip to content

Commit 01a45c8

Browse files
committed
Tweak Tox workflow
- No need to specify the environment - MyPy has its own config file - MyPy runs for Python 3.9
1 parent d2e4fa0 commit 01a45c8

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[`tox`](https://tox.readthedocs.io/en/latest/) is used to run the tests and linters. After installing it, run:
66

77
```
8-
tox -e py3
8+
tox
99
```
1010

1111
This will install and run all the tooling.

mypy.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# -*- conf -*-
2+
[mypy]
3+
strict = True

tox.ini

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
[tox]
2-
envlist = py34, py35, py36, py37, py38, pypy3
2+
envlist = py3
33
toxworkdir = {env:TOX_WORK_DIR:.tox}
44

55
[testenv]
66
deps =
77
pytest
88
flake8
9-
py{3,35,36,37,38}: mypy
9+
py{3,35,36,37,38,39}: mypy
1010
hypothesis
1111
commands =
1212
flake8 nnf test_nnf.py
13-
py{3,35,36,37,38}: python -m mypy --strict nnf
13+
py{3,35,36,37,38,39}: mypy nnf
14+
py{3,35,36,37,38,39}: mypy --python-version=3.4 nnf
1415
pytest
15-
py{3,36,37,38,py3}: python -m doctest nnf/__init__.py -o ELLIPSIS
16+
py{3,36,37,38,39,py3}: python -m doctest nnf/__init__.py -o ELLIPSIS
1617
python examples/socialchoice.py

0 commit comments

Comments
 (0)