Skip to content

Commit 680004b

Browse files
committed
Fixup typing for test suite (async)
1 parent e903526 commit 680004b

File tree

11 files changed

+439
-376
lines changed

11 files changed

+439
-376
lines changed

.github/workflows/mypy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
run: |
2828
pip install mypy cryptography pyopenssl requests
2929
pip install types-setuptools
30+
pip install -r dev_requirements.txt
3031
pip install .[libvalkey]
3132
3233
- name: Run MyPy

.mypy.ini

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
11
[mypy]
2-
# strict = True
3-
warn_return_any = False
2+
strict = True
43
show_error_context = True
54
pretty = True
6-
exclude = docs
5+
exclude = docs|build
6+
7+
# These next few are various gradations of forcing use of type annotations
8+
disallow_untyped_calls = False
9+
disallow_incomplete_defs = False
10+
disallow_untyped_defs = False
11+
12+
# This one can be tricky to get passing if you use a lot of untyped libraries
13+
warn_return_any = False
714

815
[mypy-valkey._parsers.*]
916
ignore_errors = True
1017

1118
[mypy-valkey._cache]
1219
ignore_errors = True
1320

21+
1422
[mypy-tests.*]
1523
ignore_errors = True
1624

25+
[mypy-tests.test_commands]
26+
ignore_errors = False
27+
[mypy-tests.test_asyncio.test_commands]
28+
ignore_errors = False
29+
1730
[mypy-benchmarks.*]
1831
ignore_errors = True
1932

0 commit comments

Comments
 (0)