Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Question Validation Sync Check
name: Validation Checks

on:
pull_request:
Expand All @@ -18,4 +18,20 @@ jobs:
- name: Setup Environment
run: pip3 install -r requirements.txt
- name: Validate prompt
run: python3 sync.py -t validate
run: python3 sync.py -t validate
validate-yaml:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js and cache dependencies
uses: actions/setup-node@v4
with:
node-version: '22.21'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable --frozen-lockfile
- name: Run Prettier
run: yarn verify
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ vector_db

values.env

.venv
.venv

node_modules
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"printWidth": 80
}
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,17 @@ To deploy on a cluster see [DEPLOYMENT.md](./docs/DEPLOYMENT.md).

## Contributing

### Local Development Requirements

- [Yarn](https://yarnpkg.com/)
- [Node.js >= v22](https://nodejs.org/en/about/previous-releases)

### Updating YAML Files

This repository implements Prettier to handle all YAML formatting.
```sh
yarn format # Runs Prettier to update the YAMl files in this repository
yarn verify # Runs Prettier to check the YAML files in this repository
```

If you wish to try new changes with Llama Stack, you can build your own image using the `Containerfile` in the root of this repository.
8 changes: 4 additions & 4 deletions lightspeed-stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ llama_stack:
# url: http://localhost:8321 # If running in cluster, use this
user_data_collection:
feedback_enabled: false
feedback_storage: "/tmp/data/feedback"
feedback_storage: '/tmp/data/feedback'
authentication:
module: "noop"
module: 'noop'
conversation_cache:
type: "sqlite"
type: 'sqlite'
sqlite:
db_path: "/tmp/cache.db"
db_path: '/tmp/cache.db'
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "formatter-tools",
"private": true,
"devDependencies": {
"prettier": "^3.2.0"
},
"scripts": {
"format": "prettier --write '{run,lightspeed-stack}.{yaml,yml}'",
"verify": "prettier --check '{run,lightspeed-stack}.{yaml,yml}'"
},
"version": "0.1.0"
}
Loading