diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b1e904d..fa4ea28 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,39 +9,26 @@ on: - '**.py' jobs: - Black: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: psf/black@stable - with: - options: "--check --verbose" - src: "./src ./tests" - Ruff: + Linting: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: 3.x - - name: Install ruff + - name: Install Project run: | python -m pip install --upgrade pip - python -m pip install ruff - - name: Run ruff + python -m pip install .[lint] + - name: Run Black + if: always() run: | - ruff src - MyPy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - with: - python-version: 3.x - - name: Install Project and MyPy + black --check --verbose src tests + - name: Run Ruff + if: always() run: | - python -m pip install --upgrade pip - python -m pip install .[lint] + ruff src - name: Run MyPy + if: always() run: | mypy src