From 81726acd51b9deeadf0eb863ea434b77e588f7d3 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 25 Sep 2023 13:09:33 -0400 Subject: add pyright ci --- .github/workflows/lint.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b88fc242..232ea2e2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,12 +12,23 @@ jobs: steps: - uses: actions/checkout@v3 # Check out the repository first. - - name: Install TypeScript dependencies + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + [ -f requirements.txt ] && pip install -r requirements.txt + + - name: Install JavaScript dependencies working-directory: frontend run: | npm i -g pnpm pnpm i --frozen-lockfile - - name: Run prettier (TypeScript) + - name: Run pyright (Python) + uses: jakebailey/pyright-action@v1 + with: + python-version: "3.10.6" + no-comments: true + + - name: Run prettier (JavaScript & TypeScript) working-directory: frontend run: pnpm run lint \ No newline at end of file -- cgit v1.2.3