Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

chore: Removes duplication and spread out config for codespell (#10560)

Trenton Hb1a84c65ed8f
diff --git a/.codespellrc b/.codespellrc
deleted file mode 100644
index 9b2cf624d..000000000
--- a/.codespellrc
+++ /dev/null
@@ -1,3 +0,0 @@
-[codespell]
-write-changes = True
-ignore-words-list = criterias,afterall,valeu,ureue,equest,ure,assertIn
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2c50e81a6..ab94a22b8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -31,7 +31,6 @@ repos:
rev: v2.4.1
hooks:
- id: codespell
- exclude: "(^src-ui/src/locale/)|(^src-ui/pnpm-lock.yaml)|(^src-ui/e2e/)|(^src/paperless_mail/tests/samples/)|(^src/documents/tests/samples/)"
exclude_types:
- pofile
- json
diff --git a/pyproject.toml b/pyproject.toml
index ca77b74c5..3f3846cf8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -221,6 +221,11 @@ lint.per-file-ignores."src/paperless_tesseract/tests/test_parser.py" = [
]
lint.isort.force-single-line = true
+[tool.codespell]
+write-changes = true
+ignore-words-list = "criterias,afterall,valeu,ureue,equest,ure,assertIn"
+skip = "src-ui/src/locale/*,src-ui/pnpm-lock.yaml,src-ui/e2e/*,src/paperless_mail/tests/samples/*,src/documents/tests/samples/*,*.po,*.json"
+
[tool.pytest.ini_options]
minversion = "8.0"
pythonpath = [