The previous behaviour had a loop of requests between the front app and the api when querying the pwa manifest. This reduce the coupling around the pwa manifest file between the api and the front app, by uplicating the files so each "service" has a copy of it, while keeping them in sync and having the front pwa manifest as single source of truth. Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2291>
74 lines
1.8 KiB
YAML
74 lines
1.8 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: v4.4.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-vcs-permalinks
|
|
- id: check-merge-conflict
|
|
- id: end-of-file-fixer
|
|
exclude: ^(docs/locales/.*/LC_MESSAGES)
|
|
- id: mixed-line-ending
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v3.3.1
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: [--py37-plus]
|
|
exclude: ^(api/.*/migrations/.*)
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.12.0
|
|
hooks:
|
|
- id: black
|
|
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.10.1
|
|
hooks:
|
|
- id: isort
|
|
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 6.0.0
|
|
hooks:
|
|
- id: flake8
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: v2.7.1
|
|
hooks:
|
|
- id: prettier
|
|
files: \.(md|yml|yaml|json)$
|
|
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: v2.2.2
|
|
hooks:
|
|
- id: codespell
|
|
additional_dependencies: [tomli]
|
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
rev: v0.8.0.4
|
|
hooks:
|
|
- id: shellcheck
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: pwa-manifest.json
|
|
name: pwa-manifest.json
|
|
description: Sync pwa-manifest.json
|
|
entry: scripts/sync-pwa-manifest.sh
|
|
pass_filenames: false
|
|
language: script
|
|
files: pwa-manifest.json$
|