Browse Source

chore(api): Disable preview rules of Ruff while running pre-commit hook (#15999)

tags/1.1.0
QuantumGhost 7 months ago
parent
commit
e5d6047fb4
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      web/.husky/pre-commit

+ 2
- 1
web/.husky/pre-commit View File

#!/bin/sh
# get the list of modified files # get the list of modified files
files=$(git diff --cached --name-only) files=$(git diff --cached --name-only)


ruff check --fix ./api ruff check --fix ./api


# run Ruff linter checks # run Ruff linter checks
ruff check --preview ./api || status=$?
ruff check ./api || status=$?


status=${status:-0} status=${status:-0}



Loading…
Cancel
Save