* Update icon dark mode comparison * [autofix.ci] apply automated fixes * coderabbit fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
35 lines
1 KiB
YAML
35 lines
1 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: check-case-conflict
|
|
- id: end-of-file-fixer
|
|
# python, js and ts only
|
|
files: \.(py|js|ts)$
|
|
- id: mixed-line-ending
|
|
files: \.(py|js|ts)$
|
|
args:
|
|
- --fix=lf
|
|
- id: trailing-whitespace
|
|
- repo: local
|
|
hooks:
|
|
- id: ruff
|
|
name: ruff check
|
|
entry: uv run ruff check
|
|
language: system
|
|
types_or: [python, pyi]
|
|
args: [--fix]
|
|
- id: ruff-format
|
|
name: ruff format
|
|
entry: uv run ruff format
|
|
language: system
|
|
types_or: [python, pyi]
|
|
args: [--config, pyproject.toml]
|
|
- repo: local
|
|
hooks:
|
|
- id: local-biome-check
|
|
name: biome check
|
|
entry: bash -c 'cd src/frontend && npx @biomejs/biome check --write --files-ignore-unknown=true --no-errors-on-unmatched --diagnostic-level=error'
|
|
language: system
|
|
types: [text]
|
|
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?)$"
|