From 6a63ce2ed7849f95b5a2d4a14c1f5618d4d9718f Mon Sep 17 00:00:00 2001 From: Arnav Jindal Date: Wed, 22 Sep 2021 00:22:03 +0530 Subject: [PATCH] Add typechecking for PRS/Commits (#59) * Create ci.yml * Create .python-black * Remove linting --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ .python-black | 1 + 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .python-black diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..f4dd5c56 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: 3.8 + + - name: Setup node.js (for pyright) + uses: actions/setup-node@v1 + with: + node-version: "14" + + - name: Run type checking + run: | + npm install -g pyright + pip install -r requirements.txt + pyright --lib --verifytypes discord --ignoreexternal diff --git a/.python-black b/.python-black new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/.python-black @@ -0,0 +1 @@ +