From 11d731cf35de204f7ade36edeb624db265a87f06 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 | 24 ++++++++++++++++++++---- pyrightconfig.json | 3 +++ 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 pyrightconfig.json diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1d9444f6..6fb35586 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,8 +10,24 @@ jobs: steps: - uses: actions/checkout@v2 # Check out the repository first. - - name: Run prettier (JavaScript & TypeScript) + + - 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: | - pushd frontend - npm install - npm run lint + npm i -g pnpm + pnpm i --frozen-lockfile + + - 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 diff --git a/pyrightconfig.json b/pyrightconfig.json new file mode 100644 index 00000000..9937f227 --- /dev/null +++ b/pyrightconfig.json @@ -0,0 +1,3 @@ +{ + "strict": ["*"] +} \ No newline at end of file -- cgit v1.2.3