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
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,30 @@ jobs:
- name: Mypy
run: uv run mypy py_src/taskito/ tests/python/ --no-incremental

dashboard-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: dashboard/package-lock.json

- name: Install dependencies
run: cd dashboard && npm ci

- name: Biome lint + format check
run: cd dashboard && npx biome ci src/

- name: TypeScript check
run: cd dashboard && npx tsc --noEmit

- name: Build check
run: cd dashboard && npx vite build

rust-test:
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,8 @@ Thumbs.db
htmlcov/
junk/

# Dashboard
node_modules/

# Docs
site/
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,17 @@ repos:
language: system
types: [python]
pass_filenames: false

- id: dashboard-lint
name: dashboard lint (biome)
entry: bash -c 'cd dashboard && npx biome ci src/'
language: system
files: ^dashboard/src/
pass_filenames: false

- id: dashboard-typecheck
name: dashboard typecheck
entry: bash -c 'cd dashboard && npx tsc --noEmit'
language: system
files: ^dashboard/src/
pass_filenames: false
39 changes: 39 additions & 0 deletions dashboard/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"noStaticElementInteractions": "off",
"useKeyWithClickEvents": "off"
},
"complexity": {
"noForEach": "off"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"semicolons": "always"
}
},
"css": {
"linter": {
"enabled": false
},
"formatter": {
"enabled": false
}
},
"files": {
"includes": ["src/**/*.ts", "src/**/*.tsx"]
}
}
12 changes: 12 additions & 0 deletions dashboard/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en" class="dark">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>taskito dashboard</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading
Loading