Skip to content

Commit 683faf2

Browse files
committed
chore: add pytest-timeout, mypy
1 parent 8e5d3d2 commit 683faf2

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

.appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ install:
1919
if ($env:PLATFORM -eq "x64") { $env:PYTHON = "$env:PYTHON-x64" }
2020
$env:PATH = "C:\Python$env:PYTHON\;C:\Python$env:PYTHON\Scripts\;$env:PATH"
2121
python -W ignore -m pip install --upgrade pip wheel
22-
python -W ignore -m pip install pytest numpy --no-warn-script-location
22+
python -W ignore -m pip install pytest numpy --no-warn-script-location pytest-timeout
2323
- ps: |
2424
Start-FileDownload 'https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.zip'
2525
7z x eigen-3.3.7.zip -y > $null

setup.cfg

+20-1
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,23 @@ ignore =
6363

6464
[mypy]
6565
files = pybind11
66-
strict = True
66+
python_version = 2.7
67+
warn_unused_configs = True
68+
69+
# Currently (0.800) identical to --strict
70+
disallow_any_generics = True
71+
disallow_subclassing_any = True
72+
disallow_untyped_calls = True
73+
disallow_untyped_defs = True
74+
disallow_incomplete_defs = True
75+
check_untyped_defs = True
76+
disallow_untyped_decorators = True
77+
no_implicit_optional = True
78+
warn_redundant_casts = True
79+
warn_unused_ignores = True
80+
warn_return_any = True
81+
no_implicit_reexport = True
82+
strict_equality = True
83+
84+
[tool:pytest]
85+
timeout = 300

tests/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ numpy==1.19.3; (platform_python_implementation!="PyPy" or sys_platform=="linux")
55
pytest==4.6.9; python_version<"3.5"
66
pytest==6.1.2; python_version=="3.5"
77
pytest==6.2.1; python_version>="3.6"
8+
pytest-timeout
89
scipy==1.2.3; (platform_python_implementation!="PyPy" or sys_platform=="linux") and python_version<"3.6"
910
scipy==1.5.4; (platform_python_implementation!="PyPy" or sys_platform=="linux") and python_version>="3.6" and python_version<"3.10"

0 commit comments

Comments
 (0)