]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
chore: Removes duplication and spread out config for codespell (#10560)
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Mon, 11 Aug 2025 20:55:36 +0000 (13:55 -0700)
committerGitHub <noreply@github.com>
Mon, 11 Aug 2025 20:55:36 +0000 (13:55 -0700)
.codespellrc [deleted file]
.pre-commit-config.yaml
pyproject.toml

diff --git a/.codespellrc b/.codespellrc
deleted file mode 100644 (file)
index 9b2cf62..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-[codespell]
-write-changes = True
-ignore-words-list = criterias,afterall,valeu,ureue,equest,ure,assertIn
index 2c50e81a6f1bde2a8ba55b7232b20491f8281d52..ab94a22b8148e63f18e88039cee4ec2e2cabbee5 100644 (file)
@@ -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
index ca77b74c51ff3804dc37695b7ea7dfba76249703..3f3846cf8f995088ba8e3e9e02436bb625a50d17 100644 (file)
@@ -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 = [