Procházet zdrojové kódy

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

tags/1.1.0
QuantumGhost před 7 měsíci
rodič
revize
e5d6047fb4
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2
    1
      web/.husky/pre-commit

+ 2
- 1
web/.husky/pre-commit Zobrazit soubor

@@ -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}


Načítá se…
Zrušit
Uložit