Skip to content

Commit 135c2df

Browse files
authored
Fix typos discovered by codespell (#1530)
* Fix typos discovered by codespell * pre-commit: Add codespell
1 parent b55ea03 commit 135c2df

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ repos:
1212
- id: black
1313
language_version: python3.9
1414

15+
- repo: https://github.com/codespell-project/codespell
16+
rev: v2.4.1
17+
hooks:
18+
- id: codespell # See pyproject.toml for args
19+
additional_dependencies:
20+
- tomli
21+
1522
- repo: https://github.com/pycqa/flake8
1623
rev: 7.2.0
1724
hooks:

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ target-version = [
8686
profile = "black"
8787
py_version = "39"
8888

89+
[tool.codespell]
90+
skip = "AUTHORS.rst,*.po"
91+
8992
[tool.coverage.run]
9093
parallel = true
9194
branch = true

simple_history/management/commands/clean_duplicate_history.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class Command(populate_history.Command):
99
args = "<app.model app.model ...>"
1010
help = (
11-
"Scans HistoricalRecords for identical sequencial entries "
11+
"Scans HistoricalRecords for identical sequential entries "
1212
"(duplicates) in a model and deletes them."
1313
)
1414

simple_history/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ def post_delete(self, instance, using=None, **kwargs):
672672

673673
def pre_delete(self, instance, **kwargs):
674674
"""
675-
pre_delete method to ensure all deferred fileds are loaded on the model
675+
pre_delete method to ensure all deferred fields are loaded on the model
676676
"""
677677
# First check that history is enabled (on model and globally)
678678
if not getattr(settings, "SIMPLE_HISTORY_ENABLED", True):

0 commit comments

Comments
 (0)