Skip to content

Commit 4dab5c5

Browse files
authored
Merge pull request #2 from taskiq-python/issue-1
Add redis async backend
2 parents bbcac69 + ddf03b5 commit 4dab5c5

File tree

7 files changed

+1668
-0
lines changed

7 files changed

+1668
-0
lines changed

.flake8

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
[flake8]
2+
max-complexity = 6
3+
inline-quotes = double
4+
max-line-length = 88
5+
extend-ignore = E203
6+
docstring_style=sphinx
7+
max-cognitive-score=20
8+
max-arguments=8
9+
max-line-complexity=20
10+
11+
ignore =
12+
; Found `f` string
13+
WPS305,
14+
; Missing docstring in public module
15+
D100,
16+
; Missing docstring in magic method
17+
D105,
18+
; Missing docstring in __init__
19+
D107,
20+
; Found `__init__.py` module with logic
21+
WPS412,
22+
; Found class without a base class
23+
WPS306,
24+
; Missing docstring in public nested class
25+
D106,
26+
; First line should be in imperative mood
27+
D401,
28+
; Found wrong variable name
29+
WPS110,
30+
; Found `__init__.py` module with logic
31+
WPS326,
32+
; Found string constant over-use
33+
WPS226,
34+
; Found upper-case constant in a class
35+
WPS115,
36+
; Found nested function
37+
WPS602,
38+
; Found method without arguments
39+
WPS605,
40+
; Found overused expression
41+
WPS204,
42+
; Found too many module members
43+
WPS202,
44+
; Found too high module cognitive complexity
45+
WPS232,
46+
; line break before binary operator
47+
W503,
48+
; Found module with too many imports
49+
WPS201,
50+
; Inline strong start-string without end-string.
51+
RST210,
52+
; Found nested class
53+
WPS431,
54+
; Found wrong module name
55+
WPS100,
56+
; Found too many methods
57+
WPS214,
58+
; Found too long ``try`` body
59+
WPS229,
60+
; Found unpythonic getter or setter
61+
WPS615,
62+
; Found a line that starts with a dot
63+
WPS348,
64+
; Found complex default value (for dependency injection)
65+
WPS404,
66+
; not perform function calls in argument defaults (for dependency injection)
67+
B008,
68+
; Model should define verbose_name in its Meta inner class
69+
DJ10,
70+
; Model should define verbose_name_plural in its Meta inner class
71+
DJ11,
72+
; Found mutable module constant.
73+
WPS407,
74+
; Found walrus operator
75+
WPS332
76+
; Found a too complex `f` string
77+
WPS237
78+
; Consider possible security implications associated with pickle module
79+
; Pickle and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
80+
S403, S301
81+
82+
per-file-ignores =
83+
; all tests
84+
test_*.py,tests.py,tests_*.py,*/tests/*,conftest.py:
85+
; Use of assert detected
86+
S101,
87+
; Found outer scope names shadowing
88+
WPS442,
89+
; Found too many local variables
90+
WPS210,
91+
; Found magic number
92+
WPS432,
93+
; Missing parameter(s) in Docstring
94+
DAR101,
95+
; Found too many arguments
96+
WPS211,
97+
98+
; all init files
99+
__init__.py:
100+
; ignore not used imports
101+
F401,
102+
; ignore import with wildcard
103+
F403,
104+
; Found wrong metadata variable
105+
WPS410,
106+
107+
exclude =
108+
./.cache,
109+
./.git,
110+
./.idea,
111+
./.mypy_cache,
112+
./.pytest_cache,
113+
./.venv,
114+
./venv,
115+
./env,
116+
./cached_venv,
117+
./docs,
118+
./deploy,
119+
./var,
120+
./.vscode,
121+
*migrations*,

.gitignore

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
### Python template
2+
3+
.idea/
4+
.vscode/
5+
# Byte-compiled / optimized / DLL files
6+
__pycache__/
7+
*.py[cod]
8+
*$py.class
9+
10+
# C extensions
11+
*.so
12+
13+
# Distribution / packaging
14+
.Python
15+
build/
16+
develop-eggs/
17+
dist/
18+
downloads/
19+
eggs/
20+
.eggs/
21+
lib/
22+
lib64/
23+
parts/
24+
sdist/
25+
var/
26+
wheels/
27+
share/python-wheels/
28+
*.egg-info/
29+
.installed.cfg
30+
*.egg
31+
MANIFEST
32+
33+
# PyInstaller
34+
# Usually these files are written by a python script from a template
35+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
36+
*.manifest
37+
*.spec
38+
39+
# Installer logs
40+
pip-log.txt
41+
pip-delete-this-directory.txt
42+
43+
# Unit test / coverage reports
44+
htmlcov/
45+
.tox/
46+
.nox/
47+
.coverage
48+
.coverage.*
49+
.cache
50+
nosetests.xml
51+
coverage.xml
52+
*.cover
53+
*.py,cover
54+
.hypothesis/
55+
.pytest_cache/
56+
cover/
57+
58+
# Translations
59+
*.mo
60+
*.pot
61+
62+
# Django stuff:
63+
*.log
64+
local_settings.py
65+
db.sqlite3
66+
db.sqlite3-journal
67+
68+
# Flask stuff:
69+
instance/
70+
.webassets-cache
71+
72+
# Scrapy stuff:
73+
.scrapy
74+
75+
# Sphinx documentation
76+
docs/_build/
77+
78+
# PyBuilder
79+
.pybuilder/
80+
target/
81+
82+
# Jupyter Notebook
83+
.ipynb_checkpoints
84+
85+
# IPython
86+
profile_default/
87+
ipython_config.py
88+
89+
# pyenv
90+
# For a library or package, you might want to ignore these files since the code is
91+
# intended to run in multiple environments; otherwise, check them in:
92+
# .python-version
93+
94+
# pipenv
95+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
96+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
97+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
98+
# install all needed dependencies.
99+
#Pipfile.lock
100+
101+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
102+
__pypackages__/
103+
104+
# Celery stuff
105+
celerybeat-schedule
106+
celerybeat.pid
107+
108+
# SageMath parsed files
109+
*.sage.py
110+
111+
# Environments
112+
.env
113+
.gen.env
114+
.venv
115+
env/
116+
venv/
117+
ENV/
118+
env.bak/
119+
venv.bak/
120+
121+
# Spyder project settings
122+
.spyderproject
123+
.spyproject
124+
125+
# Rope project settings
126+
.ropeproject
127+
128+
# mkdocs documentation
129+
/site
130+
131+
# mypy
132+
.mypy_cache/
133+
.dmypy.json
134+
dmypy.json
135+
136+
# Pyre type checker
137+
.pyre/
138+
139+
# pytype static type analyzer
140+
.pytype/
141+
142+
# Cython debug symbols
143+
cython_debug/

__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.1.0"

0 commit comments

Comments
 (0)