소스 검색

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

tags/1.1.0
QuantumGhost 7 달 전
부모
커밋
e5d6047fb4
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      web/.husky/pre-commit

+ 2
- 1
web/.husky/pre-commit 파일 보기

@@ -1,3 +1,4 @@
#!/bin/sh
# get the list of modified files
files=$(git diff --cached --name-only)

@@ -32,7 +33,7 @@ if $api_modified; then
ruff check --fix ./api

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

status=${status:-0}


Loading…
취소
저장