Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ repos:
- id: black
language_version: python3.9

- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell # See pyproject.toml for args
additional_dependencies:
- tomli

- repo: https://github.com/pycqa/flake8
rev: 7.2.0
hooks:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ target-version = [
profile = "black"
py_version = "39"

[tool.codespell]
skip = "AUTHORS.rst,*.po"

[tool.coverage.run]
parallel = true
branch = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Command(populate_history.Command):
args = "<app.model app.model ...>"
help = (
"Scans HistoricalRecords for identical sequencial entries "
"Scans HistoricalRecords for identical sequential entries "
"(duplicates) in a model and deletes them."
)

Expand Down
2 changes: 1 addition & 1 deletion simple_history/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def post_delete(self, instance, using=None, **kwargs):

def pre_delete(self, instance, **kwargs):
"""
pre_delete method to ensure all deferred fileds are loaded on the model
pre_delete method to ensure all deferred fields are loaded on the model
"""
# First check that history is enabled (on model and globally)
if not getattr(settings, "SIMPLE_HISTORY_ENABLED", True):
Expand Down