From 9c9ad27751b830c8794e31f688d9b0ff93571b9b Mon Sep 17 00:00:00 2001 From: Shyue Ping Ong Date: Mon, 25 Nov 2024 08:07:52 -0800 Subject: [PATCH] Fix linting code. --- .github/workflows/linting.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 4923543..0ee6767 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -20,17 +20,15 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - pip install ruff black mypy + pip install --upgrade ruff mypy pyright + - name: ruff run: | - ruff --version ruff check . - - name: black - run: | - black --version - black --check --diff --color package + ruff format --check . + - name: mypy - run: | - mypy --version - rm -rf .mypy_cache - mypy package + run: mypy src + + - name: pyright + run: pyright