summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2023-09-25 13:09:33 -0400
committermarios8543 <marios8543@gmail.com>2023-10-31 23:13:00 +0200
commit81726acd51b9deeadf0eb863ea434b77e588f7d3 (patch)
treecf377a94db7d82b660eca422602bf29261d7b8d5
parent5582457c58c91d2e31e141bec1d2b139c9c2ff61 (diff)
downloaddecky-loader-81726acd51b9deeadf0eb863ea434b77e588f7d3.tar.gz
decky-loader-81726acd51b9deeadf0eb863ea434b77e588f7d3.zip
add pyright ci
-rw-r--r--.github/workflows/lint.yml15
-rw-r--r--pyrightconfig.json3
2 files changed, 16 insertions, 2 deletions
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
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