Skip to content

Commit 0e56165

Browse files
authored
DOC-2544: Adding new doctest to support updated VSS article (#2886)
Co-authored-by: Viktor Ivanov <viktor@infogrid.io> Co-authored-by: Sergey Prokazov <sergey.prokazov@redis.com> Co-authored-by: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com> Co-authored-by: Alex Schmitz <aschmitz@box.com> Co-authored-by: Alex Schmitz <alex.schmitz@gmail.com> Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: Bar Shaul <88437685+barshaul@users.noreply.github.com> Co-authored-by: CrimsonGlory <CrimsonGlory@users.noreply.github.com> Co-authored-by: Raymond Yin <raymond@tryevergreen.com> Co-authored-by: zach.lee <zach.lee@sendbird.com> Co-authored-by: James R T <jamestiotio@gmail.com> Co-authored-by: dvora-h <dvora.heller@redis.com> Co-authored-by: Marc Schöchlin <marc.schoechlin@flipapp.de> Co-authored-by: Nick Gerow <nick.gerow@enlightedinc.com> Co-authored-by: Igor Malinovskiy <u.glide@gmail.com> Co-authored-by: Chayim I. Kirshen <c@kirshen.com> Co-authored-by: Leibale Eidelman <me@leibale.com> Co-authored-by: Thiago Bellini Ribeiro <hackedbellini@gmail.com> Co-authored-by: woutdenolf <woutdenolf@users.sf.net> Co-authored-by: shacharPash <93581407+shacharPash@users.noreply.github.com> Co-authored-by: Mirek Długosz <miniopl+github@gmail.com> Co-authored-by: Oran Avraham <252748+oranav@users.noreply.github.com> Co-authored-by: mzdehbashi-github <85902780+mzdehbashi-github@users.noreply.github.com> Co-authored-by: Tyler Hutcherson <tyler.hutcherson@redis.com> Co-authored-by: Felipe Machado <462154+felipou@users.noreply.github.com> Co-authored-by: AYMEN Mohammed <53928879+AYMENJD@users.noreply.github.com> Co-authored-by: Marc Schöchlin <ms-github@256bit.org> Co-authored-by: Avasam <samuel.06@hotmail.com> Co-authored-by: Markus Gerstel <2102431+Anthchirp@users.noreply.github.com> Co-authored-by: Kristján Valur Jónsson <sweskman@gmail.com> Co-authored-by: Nick Gerow <Nick.G.123@hotmail.com> Co-authored-by: Cristian Matache <cristianmatache@hotmail.com> Co-authored-by: Anurag Bandyopadhyay <angbpy@gmail.com> Co-authored-by: Seongchuel Ahn <aciddust20@gmail.com> Co-authored-by: Alibi <aliby.bbb@gmail.com> Co-authored-by: Smit Parmar <smitraj333@gmail.com> Co-authored-by: Brad MacPhee <macphee@gmail.com> Co-authored-by: Shahar Lev <shahar_lev@hotmail.com> Co-authored-by: Vladimir Mihailenco <vladimir.webdev@gmail.com> Co-authored-by: Kevin James <KevinJames@thekev.in> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Pacsuta <34983281+ant1fact@users.noreply.github.com> Co-authored-by: Rich Bowen <rbowen@rcbowen.com> Co-authored-by: gmbnomis <gmbnomis@users.noreply.github.com> Co-authored-by: Vivanov98 <66319645+Vivanov98@users.noreply.github.com> Co-authored-by: Kosuke <kosuke.zhang@gmail.com> Co-authored-by: Sergey Prokazov <prokazov@users.noreply.github.com> Co-authored-by: jmcbailey <jmcbailey@gmail.com> Co-authored-by: Galtozzy <14139502+Galtozzy@users.noreply.github.com> Co-authored-by: Abhishek Kumar Sinha <aksinha334@gmail.com> Co-authored-by: Eom Taegyung "Iggy <iggy.eom@sendbird.com> Co-authored-by: Mehdi ABAAKOUK <sileht@sileht.net> Co-authored-by: Dongkeun Lee <3315213+zakaf@users.noreply.github.com> Co-authored-by: woutdenolf <wout.de_nolf@esrf.eu> Co-authored-by: Kurt McKee <contactme@kurtmckee.org> Co-authored-by: Juraj Páll <palljuraj1@gmail.com> Co-authored-by: Joan Fontanals <jfontanalsmartinez@gmail.com> Co-authored-by: Stanislav Zmiev <zmievsa@gmail.com> fix (#2566) Fix unlink in cluster pipeline (#2562) Fix issue 2540: Synchronise concurrent command calls to single-client mode. (#2568) Fix: tuple function cannot be passed more than one argument (#2573) Fix issue 2567: NoneType check before raising exception (#2569) Fix issue 2349: Let async HiredisParser finish parsing after a Connection.disconnect() (#2557) Fix issue with `pack_commands` returning an empty byte sequence (#2416) Fix #2581 UnixDomainSocketConnection' object has no attribute '_command_packer' (#2583) Fix #2581 UnixDomainSocketConnection' object has no attribute '_command_packer' . Fix for `lpop` and `rpop` return typing (#2590) Fixed CredentialsProvider examples (#2587) Fixed issue #2598 - make Document class subscriptable fix: replace async_timeout by asyncio.timeout (#2602) Fix behaviour of async PythonParser to match RedisParser as for issue #2349 (#2582) Fix (#2641) fix: do not use asyncio's timeout lib before 3.11.2 (#2659) Fix issue 2660: PytestUnraisableExceptionWarning from asycio client (#2669) Fixing cancelled async futures (#2666) Fix async (#2673) Fix memory leak caused by hiredis (#2693) (#2694) Fix incorrect usage of once flag in async Sentinel (#2718) Fix topk list example. (#2724) Fix `ClusterCommandProtocol` not itself being marked as a protocol (#2729) Fix potential race condition during disconnection (#2719) fix CI (#2748) fix parse_slowlog_get (#2732) fixes for issue #1128 fix create single_connection_client from url (#2752) Fix `xadd` allow non negative maxlen (#2739) Fix JSON.MERGE Summary (#2786) Fixed key error in parse_xinfo_stream (#2788) Fix dead weakref in sentinel connection causing ReferenceError (#2767) (#2771) Fix dead weakref in sentinel conn (#2767) fix redirects and some small cleanups (#2801) Fix type hint for retry_on_error in async cluster (#2804) Fix CI (#2809) Fix async client with resp3 (#2657) Fix `COMMAND` response in resp3 (redis 7+) (#2740) Fix protocol version checking (#2737) Fix parse resp3 dict response: don't use dict comprehension (#2757) Fixing asyncio import (#2759) fix (#2799) fix async tests (#2806) Fix socket garbage collection (#2859) Fixing doc builds (#2869) Fix a duplicate word in `CONTRIBUTING.md` (#2848) Fix timeout retrying on Redis pipeline execution (#2812) Fix type hints in SearchCommands (#2817)
1 parent 4251f12 commit 0e56165

File tree

182 files changed

+14214
-7385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+14214
-7385
lines changed

.flake8

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[flake8]
2+
max-line-length = 88
3+
exclude =
4+
*.egg-info,
5+
*.pyc,
6+
.git,
7+
.tox,
8+
.venv*,
9+
build,
10+
docs/*,
11+
dist,
12+
docker,
13+
venv*,
14+
.venv*,
15+
whitelist.py,
16+
tasks.py
17+
ignore =
18+
E126
19+
E203
20+
F405
21+
N801
22+
N802
23+
N803
24+
N806
25+
N815
26+
W503

.github/dependabot.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
labels:
6+
- "maintenance"
7+
schedule:
8+
interval: "monthly"

.github/spellcheck-settings.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
matrix:
2+
- name: Markdown
3+
expect_match: false
4+
apsell:
5+
lang: en
6+
d: en_US
7+
ignore-case: true
8+
dictionary:
9+
wordlists:
10+
- .github/wordlist.txt
11+
output: wordlist.dic
12+
pipeline:
13+
- pyspelling.filters.markdown:
14+
markdown_extensions:
15+
- markdown.extensions.extra:
16+
- pyspelling.filters.html:
17+
comments: false
18+
attributes:
19+
- alt
20+
ignores:
21+
- ':matches(code, pre)'
22+
- code
23+
- pre
24+
- blockquote
25+
- img
26+
sources:
27+
- '*.md'
28+
- 'docs/*.rst'
29+
- 'docs/*.ipynb'

.github/wordlist.txt

+142
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
APM
2+
ARGV
3+
BFCommands
4+
CFCommands
5+
CMSCommands
6+
ClusterNode
7+
ClusterNodes
8+
ClusterPipeline
9+
ClusterPubSub
10+
ConnectionPool
11+
CoreCommands
12+
EVAL
13+
EVALSHA
14+
GraphCommands
15+
Grokzen's
16+
INCR
17+
IOError
18+
Instrumentations
19+
JSONCommands
20+
Jaeger
21+
Ludovico
22+
Magnocavallo
23+
McCurdy
24+
NOSCRIPT
25+
NUMPAT
26+
NUMPT
27+
NUMSUB
28+
OSS
29+
OpenCensus
30+
OpenTelemetry
31+
OpenTracing
32+
Otel
33+
PubSub
34+
READONLY
35+
RediSearch
36+
RedisBloom
37+
RedisCluster
38+
RedisClusterCommands
39+
RedisClusterException
40+
RedisClusters
41+
RedisGraph
42+
RedisInstrumentor
43+
RedisJSON
44+
RedisTimeSeries
45+
SHA
46+
SearchCommands
47+
SentinelCommands
48+
SentinelConnectionPool
49+
Sharded
50+
Solovyov
51+
SpanKind
52+
Specfiying
53+
StatusCode
54+
TCP
55+
TOPKCommands
56+
TimeSeriesCommands
57+
Uptrace
58+
ValueError
59+
WATCHed
60+
WatchError
61+
api
62+
args
63+
async
64+
asyncio
65+
autoclass
66+
automodule
67+
backoff
68+
bdb
69+
behaviour
70+
bool
71+
boolean
72+
booleans
73+
bysource
74+
charset
75+
del
76+
dev
77+
eg
78+
exc
79+
firsttimersonly
80+
fo
81+
genindex
82+
gmail
83+
hiredis
84+
http
85+
idx
86+
iff
87+
ini
88+
json
89+
keyslot
90+
keyspace
91+
kwarg
92+
linters
93+
localhost
94+
lua
95+
makeapullrequest
96+
maxdepth
97+
mget
98+
microservice
99+
microservices
100+
mset
101+
multikey
102+
mykey
103+
nonatomic
104+
observability
105+
opentelemetry
106+
oss
107+
performant
108+
pmessage
109+
png
110+
pre
111+
psubscribe
112+
pubsub
113+
punsubscribe
114+
py
115+
pypi
116+
quickstart
117+
readonly
118+
readwrite
119+
redis
120+
redismodules
121+
reinitialization
122+
replicaof
123+
repo
124+
runtime
125+
sedrik
126+
sharded
127+
ssl
128+
str
129+
stunnel
130+
subcommands
131+
thevalueofmykey
132+
timeseries
133+
toctree
134+
topk
135+
tox
136+
triaging
137+
txt
138+
un
139+
unicode
140+
url
141+
virtualenv
142+
www

.github/workflows/docs.yaml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Docs CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- '[0-9].[0-9]'
8+
pull_request:
9+
branches:
10+
- master
11+
- '[0-9].[0-9]'
12+
schedule:
13+
- cron: '0 1 * * *' # nightly build
14+
15+
concurrency:
16+
group: ${{ github.event.pull_request.number || github.ref }}
17+
cancel-in-progress: true
18+
19+
permissions:
20+
contents: read # to fetch code (actions/checkout)
21+
22+
jobs:
23+
24+
build-docs:
25+
name: Build docs
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v3
29+
- uses: actions/setup-python@v4
30+
with:
31+
python-version: 3.9
32+
cache: 'pip'
33+
- name: install deps
34+
run: |
35+
sudo apt-get update -yqq
36+
sudo apt-get install -yqq pandoc make
37+
- name: run code linters
38+
run: |
39+
pip install -r requirements.txt -r dev_requirements.txt -r docs/requirements.txt
40+
invoke build-docs
41+
42+
- name: upload docs
43+
uses: actions/upload-artifact@v3
44+
with:
45+
name: redis-py-docs
46+
path: |
47+
docs/_build/html

.github/workflows/doctests.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
run: |
3333
pip install -r dev_requirements.txt
3434
pip install -r requirements.txt
35-
isort --check-only --diff doctests/*.py
35+
pip install -r doctests/requirements.txt
36+
isort -l 80 --profile black --check-only --diff doctests/*.py
3637
black -l 80 --target-version py39 --check --diff doctests/*.py
3738
3839
- name: run tests

0 commit comments

Comments
 (0)