jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1187984?usp=email )
Change subject: tests: use types-requests for mypy tests with tox
......................................................................
tests: use types-requests for mypy tests with tox
Also update mypy settings for fixed modules
Change-Id: I36237d7ec6eea0c47bde053e44c69c23290aef24
---
M .pre-commit-config.yaml
M conftest.py
M tox.ini
3 files changed, 5 insertions(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3ceb417..30067cc 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -124,6 +124,7 @@
files: >
^pywikibot/(__metadata__|config|echo|exceptions|fixes|logging|time)\.py$|
^pywikibot/(comms|data|families|specialbots)/__init__\.py$|
+ ^pywikibot/data/memento\.py$|
^pywikibot/families/[a-z][a-z\d]+_family\.py$|
^pywikibot/page/(__init__|_decorators|_revision)\.py$|
^pywikibot/pagegenerators/__init__\.py$|
diff --git a/conftest.py b/conftest.py
index c49444b..c009871 100644
--- a/conftest.py
+++ b/conftest.py
@@ -18,6 +18,7 @@
r'(?:'
r'(__metadata__|config|echo|exceptions|fixes|logging|time)|'
r'(comms|data|families|specialbots)/__init__|'
+ r'data/memento|'
r'families/[a-z][a-z\d]+_family|'
r'page/(__init__|_decorators|_revision)|'
r'pagegenerators/__init__|'
diff --git a/tox.ini b/tox.ini
index 396c5f1..a949b3d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -64,7 +64,9 @@
[testenv:typing]
basepython = python3.9
-deps = pytest-mypy
+deps =
+ pytest-mypy
+ types-requests
commands =
mypy --version
pytest --mypy -m mypy pywikibot
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1187984?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I36237d7ec6eea0c47bde053e44c69c23290aef24
Gerrit-Change-Number: 1187984
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]