mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-03-14 13:11:24 +00:00
* Chore(deps): Bump the pre-commit-dependencies group with 4 updates --- updated-dependencies: - dependency-name: https://github.com/codespell-project/codespell dependency-version: 2.4.2 dependency-type: direct:production dependency-group: pre-commit-dependencies - dependency-name: prettier dependency-version: 3.8.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pre-commit-dependencies - dependency-name: prettier-plugin-organize-imports dependency-version: 4.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pre-commit-dependencies - dependency-name: https://github.com/lovesegfault/beautysh dependency-version: 6.4.3 dependency-type: direct:production dependency-group: pre-commit-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * Drop this, it seems more trouble than its worth * Re-run prek with new prettier --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
86 lines
2.3 KiB
YAML
86 lines
2.3 KiB
YAML
# 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:
|
|
# General hooks
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: check-docstring-first
|
|
- id: check-json
|
|
exclude: "tsconfig.*json"
|
|
- id: check-yaml
|
|
args:
|
|
- "--unsafe"
|
|
- id: check-toml
|
|
- id: check-executables-have-shebangs
|
|
- id: end-of-file-fixer
|
|
exclude_types:
|
|
- svg
|
|
- pofile
|
|
exclude: "(^LICENSE$|^src/documents/static/bootstrap.min.css$)"
|
|
- id: mixed-line-ending
|
|
args:
|
|
- "--fix=lf"
|
|
- id: trailing-whitespace
|
|
exclude_types:
|
|
- svg
|
|
- id: check-case-conflict
|
|
- id: detect-private-key
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: v2.4.2
|
|
hooks:
|
|
- id: codespell
|
|
additional_dependencies: [tomli]
|
|
exclude_types:
|
|
- pofile
|
|
- json
|
|
# See https://github.com/prettier/prettier/issues/15742 for the fork reason
|
|
- repo: https://github.com/rbubley/mirrors-prettier
|
|
rev: 'v3.8.1'
|
|
hooks:
|
|
- id: prettier
|
|
types_or:
|
|
- javascript
|
|
- ts
|
|
- markdown
|
|
additional_dependencies:
|
|
- prettier@3.8.1
|
|
- 'prettier-plugin-organize-imports@4.3.0'
|
|
# Python hooks
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.15.5
|
|
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
|
|
rev: v2.14.0
|
|
hooks:
|
|
- id: hadolint
|
|
# Shell script hooks
|
|
- repo: https://github.com/lovesegfault/beautysh
|
|
rev: v6.4.3
|
|
hooks:
|
|
- id: beautysh
|
|
types: [file]
|
|
files: (\.sh$|/run$|/finish$)
|
|
args:
|
|
- "--tab"
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
rev: "v0.11.0.1"
|
|
hooks:
|
|
- id: shellcheck
|
|
- repo: https://github.com/google/yamlfmt
|
|
rev: v0.21.0
|
|
hooks:
|
|
- id: yamlfmt
|
|
exclude: "^src-ui/pnpm-lock.yaml"
|
|
types:
|
|
- yaml
|