mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 12:19:06 +00:00
* style: deactivate PLC0415 only on part that it's ok + re-run pre-commit run --all * ci: add pre-commit hook * build: move from yarn to pnpm * build: move from yarn to pnpm * build: fix node-version * ci: install pnpm prior node (?) * build: update deps and pnpm trying to fix vercel build * feat: docker www corepack * style: pre-commit --------- Co-authored-by: Igor Loskutov <igor.loskutoff@gmail.com>
30 lines
744 B
YAML
30 lines
744 B
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: format
|
|
name: run format
|
|
language: system
|
|
entry: bash -c 'cd www && pnpm format'
|
|
pass_filenames: false
|
|
files: ^www/
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: debug-statements
|
|
- id: trailing-whitespace
|
|
- id: detect-private-key
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.8.2
|
|
hooks:
|
|
- id: ruff
|
|
args:
|
|
- --fix
|
|
# Uses select rules from server/pyproject.toml
|
|
files: ^server/
|
|
- id: ruff-format
|
|
files: ^server/
|