[Haik]: fixed custom linter error msg in ide to be more verbose for num items in file. Also modded the exceptions a bit. Also abstracted nine_router into a normal subapp typa format. Also made the linter functionally prevent publishing or merging if theres any errors.

This commit is contained in:
haikdc
2026-03-30 09:12:43 -07:00
parent 6deebbd052
commit 6ea5235a01
9 changed files with 254 additions and 158 deletions
+32
View File
@@ -0,0 +1,32 @@
name: Lint
on:
pull_request:
branches: [main]
jobs:
structlint:
name: Structure lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: python3 linter/structlint.py --root .
typecheck:
name: Type check (backend)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install pyright
- run: pyright --project linter/pyrightconfig.json