Skip to content

Commit

Permalink
Fully type annotate pybreaker.py (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Aug 11, 2022
1 parent aa51533 commit 369101f
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 136 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -7,3 +7,10 @@ repos:
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971
hooks:
- id: mypy
pass_filenames: false
additional_dependencies:
- "types-redis"
9 changes: 9 additions & 0 deletions pyproject.toml
@@ -0,0 +1,9 @@
[tool.mypy]
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
files = ["src/pybreaker.py"]

[tool.isort]
profile = "black"
10 changes: 3 additions & 7 deletions setup.py
Expand Up @@ -22,13 +22,9 @@
package_dir={"": "src"},
py_modules=["pybreaker"],
include_package_data=True,
install_requires=["typing_extensions>=3.10.0; python_version < '3.8'"],
zip_safe=False,
python_requires=">=3.7",
test_suite='tests',
tests_require=[
'mock',
'fakeredis==0.16.0',
'redis==2.10.6',
'tornado'
],
test_suite="tests",
tests_require=["mock", "fakeredis==0.16.0", "redis==2.10.6", "tornado"],
)

0 comments on commit 369101f

Please sign in to comment.