aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Fredrick Schreiner <henry.fredrick.schreiner@cern.ch>2021-01-26 19:25:35 -0500
committerHenry Schreiner <HenrySchreinerIII@gmail.com>2021-01-26 20:59:27 -0500
commitdff9b3b4328417e3eff8b1784d11efdebfaae2fa (patch)
tree34aad9f5d515345711a3c79dbec2b645ccf43e5c
parent8e5d3d234ef3bbd9efdbba865d1e606d4c5e97bb (diff)
downloadpybind11-dff9b3b4328417e3eff8b1784d11efdebfaae2fa.tar.gz
chore: add pytest-timeout, mypy
-rw-r--r--.appveyor.yml2
-rw-r--r--setup.cfg21
-rw-r--r--tests/requirements.txt1
3 files changed, 22 insertions, 2 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 149a8a3d..85445d41 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -19,7 +19,7 @@ install:
if ($env:PLATFORM -eq "x64") { $env:PYTHON = "$env:PYTHON-x64" }
$env:PATH = "C:\Python$env:PYTHON\;C:\Python$env:PYTHON\Scripts\;$env:PATH"
python -W ignore -m pip install --upgrade pip wheel
- python -W ignore -m pip install pytest numpy --no-warn-script-location
+ python -W ignore -m pip install pytest numpy --no-warn-script-location pytest-timeout
- ps: |
Start-FileDownload 'https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.zip'
7z x eigen-3.3.7.zip -y > $null
diff --git a/setup.cfg b/setup.cfg
index 80a361df..041e62da 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -63,4 +63,23 @@ ignore =
[mypy]
files = pybind11
-strict = True
+python_version = 2.7
+warn_unused_configs = True
+
+# Currently (0.800) identical to --strict
+disallow_any_generics = True
+disallow_subclassing_any = True
+disallow_untyped_calls = True
+disallow_untyped_defs = True
+disallow_incomplete_defs = True
+check_untyped_defs = True
+disallow_untyped_decorators = True
+no_implicit_optional = True
+warn_redundant_casts = True
+warn_unused_ignores = True
+warn_return_any = True
+no_implicit_reexport = True
+strict_equality = True
+
+[tool:pytest]
+timeout = 300
diff --git a/tests/requirements.txt b/tests/requirements.txt
index 0b383bf5..8768fc1f 100644
--- a/tests/requirements.txt
+++ b/tests/requirements.txt
@@ -5,5 +5,6 @@ numpy==1.19.3; (platform_python_implementation!="PyPy" or sys_platform=="linux")
pytest==4.6.9; python_version<"3.5"
pytest==6.1.2; python_version=="3.5"
pytest==6.2.1; python_version>="3.6"
+pytest-timeout
scipy==1.2.3; (platform_python_implementation!="PyPy" or sys_platform=="linux") and python_version<"3.6"
scipy==1.5.4; (platform_python_implementation!="PyPy" or sys_platform=="linux") and python_version>="3.6" and python_version<"3.10"