mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 18:19:51 +00:00
fix: disable ui-prettier & ui-eslint
This commit is contained in:
parent
5f6d5072b6
commit
587a4e29d3
1 changed files with 25 additions and 14 deletions
|
|
@ -146,20 +146,31 @@ repos:
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
require_serial: true
|
require_serial: true
|
||||||
files: ^.github/workflows/.*$
|
files: ^.github/workflows/.*$
|
||||||
- id: ui-prettier
|
# ui-prettier and ui-eslint are disabled until we can avoid `npm ci`, which is slow and may fail -
|
||||||
name: Format UI code with Prettier
|
# npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
|
||||||
entry: bash -c 'cd llama_stack/ui && npm ci && npm run format'
|
# npm error Invalid: lock file's llama-stack-client@0.2.17 does not satisfy llama-stack-client@0.2.18
|
||||||
language: system
|
# and until we have infra for installing prettier and next via npm -
|
||||||
files: ^llama_stack/ui/.*\.(ts|tsx)$
|
# Lint UI code with ESLint.....................................................Failed
|
||||||
pass_filenames: false
|
# - hook id: ui-eslint
|
||||||
require_serial: true
|
# - exit code: 127
|
||||||
- id: ui-eslint
|
# > ui@0.1.0 lint
|
||||||
name: Lint UI code with ESLint
|
# > next lint --fix --quiet
|
||||||
entry: bash -c 'cd llama_stack/ui && npm run lint -- --fix --quiet'
|
# sh: line 1: next: command not found
|
||||||
language: system
|
#
|
||||||
files: ^llama_stack/ui/.*\.(ts|tsx)$
|
# - id: ui-prettier
|
||||||
pass_filenames: false
|
# name: Format UI code with Prettier
|
||||||
require_serial: true
|
# entry: bash -c 'cd llama_stack/ui && npm ci && npm run format'
|
||||||
|
# language: system
|
||||||
|
# files: ^llama_stack/ui/.*\.(ts|tsx)$
|
||||||
|
# pass_filenames: false
|
||||||
|
# require_serial: true
|
||||||
|
# - id: ui-eslint
|
||||||
|
# name: Lint UI code with ESLint
|
||||||
|
# entry: bash -c 'cd llama_stack/ui && npm run lint -- --fix --quiet'
|
||||||
|
# language: system
|
||||||
|
# files: ^llama_stack/ui/.*\.(ts|tsx)$
|
||||||
|
# pass_filenames: false
|
||||||
|
# require_serial: true
|
||||||
|
|
||||||
ci:
|
ci:
|
||||||
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
|
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue