mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-11 12:17:45 +02:00
[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:
@@ -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
|
||||
Reference in New Issue
Block a user