Skip to content

Commit bc2199f

Browse files
authored
Spellcheck (#302)
* spelling, take1 * some spelling fixes * one more
1 parent b4c20b2 commit bc2199f

8 files changed

+109
-8
lines changed

.github/spellcheck-settings.yml

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

.github/wordlist.txt

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
APIs
2+
Bader's
3+
CLI
4+
Config
5+
Deserializing
6+
FastAPI
7+
HashModel
8+
Homebrew
9+
JSON
10+
JsonModel
11+
MacOS
12+
OM's
13+
ORM
14+
Pipenv
15+
PrimaryKeyCreator
16+
Pydantic
17+
Pydantic
18+
Pydantic's
19+
README
20+
README.md
21+
RediSearch
22+
RediSearch
23+
RedisJSON
24+
SQLAlchemy
25+
SSL
26+
TOC
27+
ULIDs
28+
UlidPrimaryKey
29+
WSL
30+
aioredis
31+
async
32+
asyncio
33+
cls
34+
coroutines
35+
doctoc
36+
fastapi
37+
indexable
38+
io
39+
js
40+
localhost
41+
md
42+
migrator
43+
py
44+
pyenv
45+
redis
46+
redisearch
47+
redisjson
48+
rediss
49+
runtime
50+
sortable
51+
subclasses
52+
subclassing
53+
subscripted
54+
unix
55+
utf
56+
validator
57+
validators
58+
virtualenv

.github/workflows/spellcheck.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: spellcheck
2+
on:
3+
pull_request:
4+
jobs:
5+
check-spelling:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v3
10+
- name: Check Spelling
11+
uses: rojopolis/[email protected]
12+
with:
13+
config_path: .github/spellcheck-settings.yml
14+
task_name: Markdown

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,6 @@ tests_sync/
138138

139139
# Apple Files
140140
.DS_Store
141+
142+
# spelling cruft
143+
*.dic

docs/connections.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Use the "unix" prefix to connect to Redis over Unix domain sockets:
5252

5353
### To Learn More
5454

55-
To learn more about the URL format that Redis OM Python uses, consult [redis-py's URL documentation](https://redis-py.readthedocs.io/en/stable/#redis.Redis.from_url).
55+
To learn more about the URL format that Redis OM Python uses, consult the [redis-py URL documentation](https://redis-py.readthedocs.io/en/stable/#redis.Redis.from_url).
5656

5757
**TIP:** The URL format is the same if you're using async or sync mode with Redis OM (i.e., importing `aredis_om` for async or `redis_om` for sync).
5858

docs/fastapi_integration.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This example shows how to manage these two uses of Redis within the same applica
3030

3131
Let's look at an example FastAPI app that uses Redis OM.
3232

33-
**NOTE**: This example code requires dependencies to run. To install the dependencies, first clone the [redis-om-fastapi](https://github.com/redis-developer/redis-om-fastapi) repository from GitHub. Then follow the installation steps later in this document or in that repository's README.md file.
33+
**NOTE**: This example code requires dependencies to run. To install the dependencies, first clone the [redis-om-fastapi](https://github.com/redis-developer/redis-om-fastapi) repository from GitHub. Then follow the installation steps later in this document or in that repository's README.md file.
3434

3535
```python
3636
import datetime
@@ -131,7 +131,7 @@ Get a copy of the value for "pk," which is the model's primary key, and make ano
131131
$ curl "http://localhost:8000/customer/01FM2G8EP38AVMH7PMTAJ123TA"
132132
{"pk":"01FM2G8EP38AVMH7PMTAJ123TA","first_name":"Andrew","last_name":"Brookins","email":"[email protected]","join_date":"2020-01-02","age":38,"bio":""}
133133

134-
You can also get a list of all customer PKs:
134+
You can also get a list of all customer primary keys:
135135

136136
$ curl "http://localhost:8000/customers"
137137
{"customers":["01FM2G8EP38AVMH7PMTAJ123TA"]}

docs/getting_started.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ python --version
1717
Python 3.7.0
1818
```
1919

20-
If you don't have Python installed, you can download it from [Python.org](https://www.python.org/downloads/), use [Pyenv](https://github.com/pyenv/pyenv), or install Python with your operating system's package manager.
20+
If you don't have Python installed, you can download it from [Python.org](https://www.python.org/downloads/), use [pyenv](https://github.com/pyenv/pyenv), or install Python with your operating system's package manager.
2121

2222
## Redis
2323

@@ -71,7 +71,7 @@ Otherwise, you can start the server manually:
7171

7272
$ redis-server start
7373

74-
### macOS with Homebrew
74+
### MacOS with Homebrew
7575

7676
$ brew services start redis
7777

@@ -427,7 +427,7 @@ type(andrew.join_date)
427427
# > datetime.date # The model parsed the string automatically!
428428
```
429429

430-
This ability to combine parsing (in this case, a YYYY-MM-DD date string) with validation can save you a lot of work.
430+
This ability to combine parsing (in this case, a date string) with validation can save you a lot of work.
431431

432432
However, you can turn off coercion -- check the next section on using strict validation.
433433

@@ -697,7 +697,7 @@ Customer.find(Customer.last_name == "Brookins").all()
697697
# Find all customers that do NOT have the last name "Brookins"
698698
Customer.find(Customer.last_name != "Brookins").all()
699699

700-
# Find all customers whose last name is "Brookins" OR whose age is
700+
# Find all customers whose last name is "Brookins" OR whose age is
701701
# 100 AND whose last name is "Smith"
702702
Customer.find((Customer.last_name == "Brookins") | (
703703
Customer.age == 100

docs/validation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Once again, we get the validation error:
131131

132132
## Constrained Values
133133

134-
If you want to use any of the constr
134+
If you want to use any of the constraints.
135135

136136
Pydantic includes many type annotations to introduce constraints to your model field values.
137137

0 commit comments

Comments
 (0)