-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup mypy config and pre-commit hook
- Loading branch information
Showing
13 changed files
with
94 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ build/ | |
*.egg-info | ||
.tox | ||
.hypothesis | ||
.pytest_cache | ||
.mypy_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,34 @@ | ||
from cashews.cache_condition import NOT_NONE # noqa | ||
from cashews.cache_condition import NOT_NONE | ||
|
||
from .bloom import bloom, dual_bloom # noqa | ||
from .cache.defaults import CacheDetect, context_cache_detect # noqa | ||
from .cache.early import early # noqa | ||
from .cache.fail import failover, fast_condition # noqa | ||
from .cache.hit import hit # noqa | ||
from .cache.iterator import iterator # noqa | ||
from .cache.simple import cache # noqa | ||
from .cache.soft import soft # noqa | ||
from .circuit_breaker import circuit_breaker # noqa | ||
from .locked import locked, thunder_protection # noqa | ||
from .rate import rate_limit # noqa | ||
from .rate_slide import slice_rate_limit # noqa | ||
from .bloom import bloom, dual_bloom | ||
from .cache.defaults import CacheDetect, context_cache_detect | ||
from .cache.early import early | ||
from .cache.fail import failover, fast_condition | ||
from .cache.hit import hit | ||
from .cache.iterator import iterator | ||
from .cache.simple import cache | ||
from .cache.soft import soft | ||
from .circuit_breaker import circuit_breaker | ||
from .locked import locked, thunder_protection | ||
from .rate import rate_limit | ||
from .rate_slide import slice_rate_limit | ||
|
||
__all__ = [ | ||
"NOT_NONE", | ||
"bloom", | ||
"dual_bloom", | ||
"CacheDetect", | ||
"context_cache_detect", | ||
"early", | ||
"failover", | ||
"fast_condition", | ||
"hit", | ||
"iterator", | ||
"cache", | ||
"soft", | ||
"circuit_breaker", | ||
"locked", | ||
"thunder_protection", | ||
"rate_limit", | ||
"slice_rate_limit", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,9 @@ speedup = | |
hiredis | ||
dill = | ||
dill | ||
lint = | ||
mypy >= 1.5.0 | ||
types-redis | ||
tests = | ||
pytest | ||
pytest-asyncio | ||
|