Skip to content

Commit 44669a4

Browse files
authored
Merge pull request #52 from cclauss/codespell
Fix typos discovered by codespell add codespell hook to pre-commit
2 parents b4d7fa1 + ff4e721 commit 44669a4

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ repos:
1010
hooks:
1111
- id: ruff-check
1212
- id: ruff-format
13+
14+
- repo: https://github.com/codespell-project/codespell
15+
rev: v2.4.1
16+
hooks:
17+
- id: codespell # See pyproject.toml for args
18+
additional_dependencies:
19+
- tomli

docs/cluster/basic_configurations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ CACHES = {
1919

2020
you need to point to at least one of the cluster nodes in `LOCATION`, or pass a list of multiple nodes
2121

22-
at the moment, only one client is avilable for cluster backend
22+
at the moment, only one client is available for cluster backend
2323

2424
most of the configurations you see in [basic configuration](../configure/basic_configurations.md) and [advanced configuration](../configure/advanced_configurations.md)
2525
apply here as well, except the following:
2626

2727

2828

2929
### Memcached exception behavior
30-
in [Memcahed exception behavior](../configure/basic_configurations.md#memcached-exception-behavior) we discussed how to ignore and log exceptitions,
31-
sadly, until we find a way around it, this is not accessable with cluster backend
30+
in [Memcached exception behavior](../configure/basic_configurations.md#memcached-exception-behavior) we discussed how to ignore and log exceptitions,
31+
sadly, until we find a way around it, this is not accessible with cluster backend
3232

3333

3434
## Multi-key Commands

docs/commands/raw_access.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def get_valkey_connection(alias: str="default", write: bool=True, key=None): ...
1818

1919
`alias` is the name you gave each server in django's `CACHES` setting.
2020
`write` is used to determine if the operation will write to the cache database, so it should be `True` for `set` and `False` for `get`.
21-
`key` is only used with the shard client, it'll be explaind below.
21+
`key` is only used with the shard client, it'll be explained below.
2222

2323
### get raw access while using shard client
2424
**note**: this only works as of v0.3.0

docs/configure/advanced_configurations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ the only thing you need to do is install libvalkey:
255255
pip install django-valkey[libvalkey]
256256
```
257257

258-
and valkey-py will take care of te rest
258+
and valkey-py will take care of the rest
259259

260260
### Use a custom parser
261261

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ DJANGO_SETTINGS_MODULE = "tests.settings.sqlite"
108108
plugins = ["django_coverage_plugin"]
109109
parallel = true
110110

111+
[tool.codespell]
112+
ignore-words-list = "aadd,asend,smove"
111113

112114
[tool.ruff.lint.per-file-ignores]
113115
"__init__.py" = ["E402", "F401", "F403"]

tests/tests_cluster/test_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
@pytest.fixture
1515
def patch_itersize_setting() -> Iterable[None]:
16-
# destroy cache to force recreation with overriden settings
16+
# destroy cache to force recreation with overridden settings
1717
del caches["default"]
1818
with override_settings(DJANGO_VALKEY_SCAN_ITERSIZE=30):
1919
yield

0 commit comments

Comments
 (0)