mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-02-27 13:56:25 +00:00
Compare commits
2 Commits
feature-py
...
chore/enab
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4064cc0e07 | ||
|
|
e67e28a509 |
@@ -1,9 +1,4 @@
|
|||||||
# This file configures pre-commit hooks.
|
|
||||||
# See https://pre-commit.com/ for general information
|
|
||||||
# See https://pre-commit.com/hooks.html for a listing of possible hooks
|
|
||||||
# We actually run via https://github.com/j178/prek which is compatible
|
|
||||||
repos:
|
repos:
|
||||||
# General hooks
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v6.0.0
|
rev: v6.0.0
|
||||||
hooks:
|
hooks:
|
||||||
@@ -11,21 +6,16 @@ repos:
|
|||||||
- id: check-json
|
- id: check-json
|
||||||
exclude: "tsconfig.*json"
|
exclude: "tsconfig.*json"
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
args:
|
args: ["--unsafe"]
|
||||||
- "--unsafe"
|
|
||||||
- id: check-toml
|
- id: check-toml
|
||||||
- id: check-executables-have-shebangs
|
- id: check-executables-have-shebangs
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
exclude_types:
|
exclude_types: [svg, pofile]
|
||||||
- svg
|
|
||||||
- pofile
|
|
||||||
exclude: "(^LICENSE$|^src/documents/static/bootstrap.min.css$)"
|
exclude: "(^LICENSE$|^src/documents/static/bootstrap.min.css$)"
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
args:
|
args: ["--fix=lf"]
|
||||||
- "--fix=lf"
|
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
exclude_types:
|
exclude_types: [svg]
|
||||||
- svg
|
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
- id: detect-private-key
|
- id: detect-private-key
|
||||||
- repo: https://github.com/codespell-project/codespell
|
- repo: https://github.com/codespell-project/codespell
|
||||||
@@ -33,53 +23,29 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: codespell
|
- id: codespell
|
||||||
additional_dependencies: [tomli]
|
additional_dependencies: [tomli]
|
||||||
exclude_types:
|
exclude_types: [pofile, json]
|
||||||
- pofile
|
- repo: https://github.com/google/yamlfmt
|
||||||
- json
|
rev: v0.21.0
|
||||||
# See https://github.com/prettier/prettier/issues/15742 for the fork reason
|
|
||||||
- repo: https://github.com/rbubley/mirrors-prettier
|
|
||||||
rev: 'v3.8.1'
|
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: yamlfmt
|
||||||
types_or:
|
exclude: "^src-ui/pnpm-lock.yaml"
|
||||||
- javascript
|
types: [yaml]
|
||||||
- ts
|
|
||||||
- markdown
|
|
||||||
additional_dependencies:
|
|
||||||
- prettier@3.3.3
|
|
||||||
- 'prettier-plugin-organize-imports@4.1.0'
|
|
||||||
# Python hooks
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
||||||
rev: v0.15.0
|
|
||||||
hooks:
|
|
||||||
- id: ruff-check
|
|
||||||
- id: ruff-format
|
|
||||||
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
||||||
rev: "v2.12.1"
|
|
||||||
hooks:
|
|
||||||
- id: pyproject-fmt
|
|
||||||
# Dockerfile hooks
|
|
||||||
- repo: https://github.com/AleksaC/hadolint-py
|
- repo: https://github.com/AleksaC/hadolint-py
|
||||||
rev: v2.14.0
|
rev: v2.14.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: hadolint
|
- id: hadolint
|
||||||
# Shell script hooks
|
|
||||||
- repo: https://github.com/lovesegfault/beautysh
|
- repo: https://github.com/lovesegfault/beautysh
|
||||||
rev: v6.4.2
|
rev: v6.4.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: beautysh
|
- id: beautysh
|
||||||
types: [file]
|
types: [file]
|
||||||
files: (\.sh$|/run$|/finish$)
|
files: (\.sh$|/run$|/finish$)
|
||||||
args:
|
args: ["--tab"]
|
||||||
- "--tab"
|
|
||||||
- repo: https://github.com/shellcheck-py/shellcheck-py
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
||||||
rev: "v0.11.0.1"
|
rev: "v0.11.0.1"
|
||||||
hooks:
|
hooks:
|
||||||
- id: shellcheck
|
- id: shellcheck
|
||||||
- repo: https://github.com/google/yamlfmt
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
||||||
rev: v0.21.0
|
rev: "v2.16.2"
|
||||||
hooks:
|
hooks:
|
||||||
- id: yamlfmt
|
- id: pyproject-fmt
|
||||||
exclude: "^src-ui/pnpm-lock.yaml"
|
|
||||||
types:
|
|
||||||
- yaml
|
|
||||||
|
|||||||
6
docker/.pre-commit-config.yaml
Normal file
6
docker/.pre-commit-config.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
|
rev: v0.15.4
|
||||||
|
hooks:
|
||||||
|
- id: ruff-check
|
||||||
|
- id: ruff-format
|
||||||
6
docs/.markdownlint.yaml
Normal file
6
docs/.markdownlint.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
default: true
|
||||||
|
MD013: false # line length -- mdformat handles this
|
||||||
|
MD033: false # inline HTML -- MkDocs uses it
|
||||||
|
MD041: false # first line heading -- not always true in MkDocs
|
||||||
|
MD046: # code block style
|
||||||
|
style: fenced
|
||||||
13
docs/.pre-commit-config.yaml
Normal file
13
docs/.pre-commit-config.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/executablebooks/mdformat
|
||||||
|
rev: 1.0.0
|
||||||
|
hooks:
|
||||||
|
- id: mdformat
|
||||||
|
additional_dependencies:
|
||||||
|
- mdformat-mkdocs
|
||||||
|
- mdformat-ruff
|
||||||
|
- repo: https://github.com/DavidAnson/markdownlint-cli2
|
||||||
|
rev: v0.21.0
|
||||||
|
hooks:
|
||||||
|
- id: markdownlint-cli2
|
||||||
|
args: ["--config", ".markdownlint.yaml"]
|
||||||
9
src-ui/.pre-commit-config.yaml
Normal file
9
src-ui/.pre-commit-config.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/rbubley/mirrors-prettier
|
||||||
|
rev: 'v3.8.1'
|
||||||
|
hooks:
|
||||||
|
- id: prettier
|
||||||
|
types_or: [javascript, ts]
|
||||||
|
additional_dependencies:
|
||||||
|
- prettier@3.3.3
|
||||||
|
- 'prettier-plugin-organize-imports@4.1.0'
|
||||||
10
src/.pre-commit-config.yaml
Executable file
10
src/.pre-commit-config.yaml
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
orphan: true
|
||||||
|
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
|
rev: v0.15.4
|
||||||
|
hooks:
|
||||||
|
- id: ruff-check
|
||||||
|
- id: ruff-format
|
||||||
|
|
||||||
|
|
||||||
6
uv.lock
generated
6
uv.lock
generated
@@ -2811,7 +2811,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nltk"
|
name = "nltk"
|
||||||
version = "3.9.2"
|
version = "3.9.3"
|
||||||
source = { registry = "https://pypi.org/simple" }
|
source = { registry = "https://pypi.org/simple" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "click", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" },
|
{ name = "click", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" },
|
||||||
@@ -2819,9 +2819,9 @@ dependencies = [
|
|||||||
{ name = "regex", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" },
|
{ name = "regex", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" },
|
||||||
{ name = "tqdm", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" },
|
{ name = "tqdm", marker = "sys_platform == 'darwin' or sys_platform == 'linux'" },
|
||||||
]
|
]
|
||||||
sdist = { url = "https://files.pythonhosted.org/packages/f9/76/3a5e4312c19a028770f86fd7c058cf9f4ec4321c6cf7526bab998a5b683c/nltk-3.9.2.tar.gz", hash = "sha256:0f409e9b069ca4177c1903c3e843eef90c7e92992fa4931ae607da6de49e1419", size = 2887629, upload-time = "2025-10-01T07:19:23.764Z" }
|
sdist = { url = "https://files.pythonhosted.org/packages/e1/8f/915e1c12df07c70ed779d18ab83d065718a926e70d3ea33eb0cd66ffb7c0/nltk-3.9.3.tar.gz", hash = "sha256:cb5945d6424a98d694c2b9a0264519fab4363711065a46aa0ae7a2195b92e71f", size = 2923673, upload-time = "2026-02-24T12:05:53.833Z" }
|
||||||
wheels = [
|
wheels = [
|
||||||
{ url = "https://files.pythonhosted.org/packages/60/90/81ac364ef94209c100e12579629dc92bf7a709a84af32f8c551b02c07e94/nltk-3.9.2-py3-none-any.whl", hash = "sha256:1e209d2b3009110635ed9709a67a1a3e33a10f799490fa71cf4bec218c11c88a", size = 1513404, upload-time = "2025-10-01T07:19:21.648Z" },
|
{ url = "https://files.pythonhosted.org/packages/c2/7e/9af5a710a1236e4772de8dfcc6af942a561327bb9f42b5b4a24d0cf100fd/nltk-3.9.3-py3-none-any.whl", hash = "sha256:60b3db6e9995b3dd976b1f0fa7dec22069b2677e759c28eb69b62ddd44870522", size = 1525385, upload-time = "2026-02-24T12:05:46.54Z" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|||||||
Reference in New Issue
Block a user