This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pre-commit/pre-commit-hooks](https://redirect.github.com/pre-commit/pre-commit-hooks) | repository | major | `v5.0.0` -> `v6.0.0` | Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://redirect.github.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>pre-commit/pre-commit-hooks (pre-commit/pre-commit-hooks)</summary> ### [`v6.0.0`](https://redirect.github.com/pre-commit/pre-commit-hooks/releases/tag/v6.0.0): pre-commit-hooks v6.0.0 [Compare Source](https://redirect.github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) #### Fixes - `check-shebang-scripts-are-executable`: improve error message. - [#​1115](https://redirect.github.com/pre-commit/pre-commit-hooks/issues/1115) PR by [@​homebysix](https://redirect.github.com/homebysix). #### Migrating - now requires python >= 3.9. - [#​1098](https://redirect.github.com/pre-commit/pre-commit-hooks/issues/1098) PR by [@​asottile](https://redirect.github.com/asottile). - `file-contents-sorter`: disallow `--unique` and `--ignore-case` at the same time. - [#​1095](https://redirect.github.com/pre-commit/pre-commit-hooks/issues/1095) PR by [@​nemacysts](https://redirect.github.com/nemacysts). - [#​794](https://redirect.github.com/pre-commit/pre-commit-hooks/issues/794) issue by [@​teksturi](https://redirect.github.com/teksturi). - Removed `check-byte-order-marker` and `fix-encoding-pragma`. - `check-byte-order-marker`: migrate to `fix-byte-order-marker`. - `fix-encoding-pragma`: migrate to `pyupgrade`. - [#​1034](https://redirect.github.com/pre-commit/pre-commit-hooks/issues/1034) PR by [@​mxr](https://redirect.github.com/mxr). - [#​1032](https://redirect.github.com/pre-commit/pre-commit-hooks/issues/1032) issue by [@​mxr](https://redirect.github.com/mxr). - [#​522](https://redirect.github.com/pre-commit/pre-commit-hooks/issues/522) PR by [@​jgowdy](https://redirect.github.com/jgowdy). </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/libretime/libretime). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS42MC40IiwidXBkYXRlZEluVmVyIjoiNDEuNjAuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
126 lines
3.4 KiB
YAML
126 lines
3.4 KiB
YAML
---
|
|
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: check-case-conflict
|
|
- id: check-executables-have-shebangs
|
|
- id: check-shebang-scripts-are-executable
|
|
- id: check-symlinks
|
|
- id: destroyed-symlinks
|
|
|
|
- id: check-json
|
|
- id: check-yaml
|
|
- id: check-xml
|
|
- id: check-toml
|
|
|
|
- id: check-merge-conflict
|
|
- id: end-of-file-fixer
|
|
exclude: \.json$
|
|
- id: mixed-line-ending
|
|
args: [--fix=lf]
|
|
- id: trailing-whitespace
|
|
exclude: \.ambr$
|
|
|
|
- id: name-tests-test
|
|
exclude: ^api
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: prettier
|
|
name: prettier
|
|
entry: prettier --write --ignore-unknown
|
|
language: node
|
|
types: [text]
|
|
additional_dependencies: [prettier@3.6.2]
|
|
|
|
files: \.(md|mdx|yml|yaml|js|jsx|ts|tsx|json|css)$
|
|
exclude: ^(legacy/public(?!/js/airtime)|CHANGELOG.md$|.github/release-please-manifest.json)
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v3.20.0
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: [--py38-plus]
|
|
|
|
- repo: https://github.com/adamchainz/django-upgrade
|
|
rev: 1.25.0
|
|
hooks:
|
|
- id: django-upgrade
|
|
args: [--target-version, "4.2"]
|
|
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 6.0.1
|
|
hooks:
|
|
- id: isort
|
|
args: [--resolve-all-configs]
|
|
|
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
rev: 25.1.0
|
|
hooks:
|
|
- id: black
|
|
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: v2.4.1
|
|
hooks:
|
|
- id: codespell
|
|
args: [--ignore-words=.codespellignore]
|
|
exclude: (^api/schema.yml|^legacy.*|yarn\.lock)$
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: shfmt
|
|
name: shfmt
|
|
language: docker_image
|
|
entry: mvdan/shfmt -i 2 -ci -sr -kp -w
|
|
types: [shell]
|
|
|
|
- id: shellcheck
|
|
name: shellcheck
|
|
language: docker_image
|
|
entry: koalaman/shellcheck --color=always --severity=warning
|
|
types: [shell]
|
|
|
|
- id: requirements.txt
|
|
name: requirements.txt
|
|
description: Generate requirements.txt
|
|
entry: tools/extract_requirements.py dev sentry
|
|
pass_filenames: false
|
|
language: script
|
|
files: setup.py$
|
|
|
|
- id: config.yml
|
|
name: config.yml
|
|
description: Update config files
|
|
entry: tools/update-config-files.sh
|
|
pass_filenames: false
|
|
language: script
|
|
files: ^installer/config.yml$
|
|
|
|
- id: legacy-migrations-version
|
|
name: legacy-migrations-version
|
|
description: Ensure valid schema version for migrations
|
|
entry: tools/legacy-migrations-version.sh
|
|
pass_filenames: false
|
|
language: script
|
|
files: ^api/libretime_api/legacy/migrations
|
|
|
|
- id: legacy-assets-checksum-update
|
|
name: legacy-assets-checksum-update
|
|
description: Update legacy assets checksum
|
|
entry: legacy/tools/assets-checksum-update.py
|
|
pass_filenames: false
|
|
language: script
|
|
files: ^legacy
|
|
|
|
- id: api-schema-update
|
|
name: api-schema-update
|
|
description: Ensure API schema is up to date
|
|
entry: make -C api schema
|
|
pass_filenames: false
|
|
language: system
|
|
files: ^api
|