From 6bfaae415af7a89011df114c24be26f21eba9404 Mon Sep 17 00:00:00 2001 From: mhostetter Date: Wed, 25 Oct 2023 12:41:35 -0400 Subject: [PATCH] Update CI to use `ruff` --- .github/workflows/lint.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 6d7d024d8..d293322fc 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -12,7 +12,7 @@ on: jobs: run-linter: - name: Lint + name: Ruff Lint runs-on: ubuntu-latest strategy: matrix: @@ -31,14 +31,11 @@ jobs: - name: Install the `galois` package with [dev] run: python3 -m pip install .[dev] - - name: Lint code with pylint - run: python3 -m pylint src/galois/ - - - name: Lint tests with pylint - run: python3 -m pylint tests/ + - name: Lint with ruff + run: python3 -m ruff check --output-format=github . run-formatter: - name: Format + name: Ruff Format runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -54,5 +51,5 @@ jobs: - name: Install the `galois` package with [dev] run: python3 -m pip install .[dev] - - name: Format with black - run: python3 -m black . --check + - name: Format with ruff + run: python3 -m ruff format --check .