diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml deleted file mode 100644 index b95fb1dd..00000000 --- a/.github/workflows/black.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Lint - -on: [push] - -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: install black - run: pip install black - - - name: run linter - uses: wearerequired/lint-action@v1 - with: - black: true - black_args: ". --line-length 120" - auto_fix: true \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4dd5c56..27a7e1d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: [push, pull_request] jobs: - lint: + pyright: runs-on: ubuntu-latest steps: - name: checkout @@ -22,5 +22,17 @@ jobs: - name: Run type checking run: | npm install -g pyright - pip install -r requirements.txt + pip install . pyright --lib --verifytypes discord --ignoreexternal + + black: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Run linter + uses: psf/black@stable + with: + options: "--line-length 120 --check" + src: "./discord" \ No newline at end of file