Skip to content

Commit

Permalink
Update CI to use ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Oct 25, 2023
1 parent 6d446a3 commit d6f6ed3
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
run-linter:
name: Lint
name: Ruff Lint
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -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
Expand All @@ -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 .

0 comments on commit d6f6ed3

Please sign in to comment.