Skip to content

Commit

Permalink
Fixup typing for test suite (async)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Sep 11, 2024
1 parent c9edd02 commit 1e9150b
Show file tree
Hide file tree
Showing 11 changed files with 439 additions and 376 deletions.
1 change: 1 addition & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
run: |
pip install mypy cryptography pyopenssl requests
pip install types-setuptools
pip install -r dev_requirements.txt
pip install .[libvalkey]
- name: Run MyPy
Expand Down
19 changes: 16 additions & 3 deletions .mypy.ini
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
[mypy]
# strict = True
warn_return_any = False
strict = True
show_error_context = True
pretty = True
exclude = docs
exclude = docs|build

# These next few are various gradations of forcing use of type annotations
disallow_untyped_calls = False
disallow_incomplete_defs = False
disallow_untyped_defs = False

# This one can be tricky to get passing if you use a lot of untyped libraries
warn_return_any = False

[mypy-valkey._parsers.*]
ignore_errors = True

[mypy-valkey._cache]
ignore_errors = True


[mypy-tests.*]
ignore_errors = True

[mypy-tests.test_commands]
ignore_errors = False
[mypy-tests.test_asyncio.test_commands]
ignore_errors = False

[mypy-benchmarks.*]
ignore_errors = True

Expand Down
Loading

0 comments on commit 1e9150b

Please sign in to comment.