diff --git a/.editorconfig b/.editorconfig index 1c8741fd2..284569845 100644 --- a/.editorconfig +++ b/.editorconfig @@ -24,6 +24,9 @@ indent_style = space [*.rst] indent_style = space +[*.md] +indent_style = space + # Tests don't get a line width restriction. It's still a good idea to follow # the 79 character rule, but in the interests of clarity, tests often need to # violate it. diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1588bd08b..e86da9300 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -58,7 +58,7 @@ repos: files: ^src/ exclude: "(migrations)|(paperless/settings.py)|(.*\\.tox)|(.*/tests/.*)" args: - - --max-line-length=88 + - "--max-line-length=88" - "--ignore=E121,E123,E126,E226,E24,E704,W503,W504,E203" - repo: https://github.com/psf/black rev: 22.1.0 @@ -74,6 +74,8 @@ repos: rev: v6.2.1 hooks: - id: beautysh + args: + - "--tab" - repo: https://github.com/shellcheck-py/shellcheck-py rev: "v0.8.0.4" hooks: diff --git a/Pipfile.lock b/Pipfile.lock index 12a8e597b..e6df94c89 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "bafe3532f43c32b22b2ed12e24f9f4d6834695ccda21fc3312e650f3232e2904" + "sha256": "40578bc68ece067aa20def00b1041c93b4e6fbef7cdd9749b63d32c298081f24" }, "pipfile-spec": 6, "requires": {}, @@ -627,28 +627,28 @@ }, "numpy": { "hashes": [ - "sha256:03ae5850619abb34a879d5f2d4bb4dcd025d6d8fb72f5e461dae84edccfe129f", - "sha256:076aee5a3763d41da6bef9565fdf3cb987606f567cd8b104aded2b38b7b47abf", - "sha256:0b536b6840e84c1c6a410f3a5aa727821e6108f3454d81a5cd5900999ef04f89", - "sha256:15efb7b93806d438e3bc590ca8ef2f953b0ce4f86f337ef4559d31ec6cf9d7dd", - "sha256:168259b1b184aa83a514f307352c25c56af111c269ffc109d9704e81f72e764b", - "sha256:2638389562bda1635b564490d76713695ff497242a83d9b684d27bb4a6cc9d7a", - "sha256:3556c5550de40027d3121ebbb170f61bbe19eb639c7ad0c7b482cd9b560cd23b", - "sha256:4a176959b6e7e00b5a0d6f549a479f869829bfd8150282c590deee6d099bbb6e", - "sha256:515a8b6edbb904594685da6e176ac9fbea8f73a5ebae947281de6613e27f1956", - "sha256:55535c7c2f61e2b2fc817c5cbe1af7cb907c7f011e46ae0a52caa4be1f19afe2", - "sha256:59153979d60f5bfe9e4c00e401e24dfe0469ef8da6d68247439d3278f30a180f", - "sha256:60cb8e5933193a3cc2912ee29ca331e9c15b2da034f76159b7abc520b3d1233a", - "sha256:6767ad399e9327bfdbaa40871be4254d1995f4a3ca3806127f10cec778bd9896", - "sha256:76a4f9bce0278becc2da7da3b8ef854bed41a991f4226911a24a9711baad672c", - "sha256:8cf33634b60c9cef346663a222d9841d3bbbc0a2f00221d6bcfd0d993d5543f6", - "sha256:94dd11d9f13ea1be17bac39c1942f527cbf7065f94953cf62dfe805653da2f8f", - "sha256:aafa46b5a39a27aca566198d3312fb3bde95ce9677085efd02c86f7ef6be4ec7", - "sha256:badca914580eb46385e7f7e4e426fea6de0a37b9e06bec252e481ae7ec287082", - "sha256:d76a26c5118c4d96e264acc9e3242d72e1a2b92e739807b3b69d8d47684b6677" + "sha256:07a8c89a04997625236c5ecb7afe35a02af3896c8aa01890a849913a2309c676", + "sha256:08d9b008d0156c70dc392bb3ab3abb6e7a711383c3247b410b39962263576cd4", + "sha256:201b4d0552831f7250a08d3b38de0d989d6f6e4658b709a02a73c524ccc6ffce", + "sha256:2c10a93606e0b4b95c9b04b77dc349b398fdfbda382d2a39ba5a822f669a0123", + "sha256:3ca688e1b9b95d80250bca34b11a05e389b1420d00e87a0d12dc45f131f704a1", + "sha256:48a3aecd3b997bf452a2dedb11f4e79bc5bfd21a1d4cc760e703c31d57c84b3e", + "sha256:568dfd16224abddafb1cbcce2ff14f522abe037268514dd7e42c6776a1c3f8e5", + "sha256:5bfb1bb598e8229c2d5d48db1860bcf4311337864ea3efdbe1171fb0c5da515d", + "sha256:639b54cdf6aa4f82fe37ebf70401bbb74b8508fddcf4797f9fe59615b8c5813a", + "sha256:8251ed96f38b47b4295b1ae51631de7ffa8260b5b087808ef09a39a9d66c97ab", + "sha256:92bfa69cfbdf7dfc3040978ad09a48091143cffb778ec3b03fa170c494118d75", + "sha256:97098b95aa4e418529099c26558eeb8486e66bd1e53a6b606d684d0c3616b168", + "sha256:a3bae1a2ed00e90b3ba5f7bd0a7c7999b55d609e0c54ceb2b076a25e345fa9f4", + "sha256:c34ea7e9d13a70bf2ab64a2532fe149a9aced424cd05a2c4ba662fd989e3e45f", + "sha256:dbc7601a3b7472d559dc7b933b18b4b66f9aa7452c120e87dfb33d02008c8a18", + "sha256:e7927a589df200c5e23c57970bafbd0cd322459aa7b1ff73b7c2e84d6e3eae62", + "sha256:f8c1f39caad2c896bc0018f699882b345b2a63708008be29b1f355ebf6f933fe", + "sha256:fade0d4f4d292b6f39951b6836d7a3c7ef5b2347f3c420cd9820a1d90d794802", + "sha256:fdf3c08bce27132395d3c3ba1503cac12e17282358cb4bddc25cc46b0aca07aa" ], "markers": "python_version >= '3.8'", - "version": "==1.22.2" + "version": "==1.22.3" }, "ocrmypdf": { "hashes": [ @@ -1582,7 +1582,9 @@ "version": "==8.0.4" }, "coverage": { - "extras": [], + "extras": [ + "toml" + ], "hashes": [ "sha256:03e2a7826086b91ef345ff18742ee9fc47a6839ccd517061ef8fa1976e652ce9", "sha256:07e6db90cd9686c767dcc593dff16c8c09f9814f5e9c51034066cad3373b914d", @@ -1676,11 +1678,11 @@ }, "faker": { "hashes": [ - "sha256:618b140c77475786dbe3a5409ad53521cb76746ab7a5c77b99c663f3ef1b1bc2", - "sha256:7e878365aaf2f6a3f88a689c5f8209b8b93f45e3e9c991272552553006856637" + "sha256:c88c8b5ee9376a242deca8fe829f9a3215ffa43c31da6f66d9594531fb344453", + "sha256:fa060e331ffffb57cfa4c07f95d54911e339984ed72596ba6a9e7b6fa569d799" ], "markers": "python_version >= '3.6'", - "version": "==13.3.0" + "version": "==13.3.1" }, "filelock": { "hashes": [ diff --git a/requirements.txt b/requirements.txt index 36ca69f97..e675e643a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -55,7 +55,7 @@ joblib==1.1.0; python_version >= '3.6' langdetect==1.0.9 lxml==4.8.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' msgpack==1.0.3 -numpy==1.22.2; python_version >= '3.8' +numpy==1.22.3; python_version >= '3.8' ocrmypdf==13.4.0 packaging==21.3; python_version >= '3.6' pathvalidate==2.5.0 @@ -91,7 +91,7 @@ sqlparse==0.4.2; python_version >= '3.5' threadpoolctl==3.1.0; python_version >= '3.6' tika==1.24 tqdm==4.63.0 -twisted[tls]==22.1.0; python_full_version >= '3.6.7' +twisted[tls]==22.2.0; python_full_version >= '3.6.7' txaio==22.2.1; python_version >= '3.6' typing-extensions==4.1.1; python_version >= '3.6' tzdata==2021.5; python_version >= '3.6'