Skip to content

Commit

Permalink
Add ruff
Browse files Browse the repository at this point in the history
- replace black, flake8, isort
  • Loading branch information
ajparsons committed Jun 21, 2024
1 parent f55fd58 commit b4c09df
Show file tree
Hide file tree
Showing 4 changed files with 229 additions and 299 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: black Lint
uses: psf/black@stable
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
options: "--check --diff"
src: "."
version: "24.3.0"
- name: isort Lint
uses: isort/isort-action@master
- name: flake8 Lint
uses: py-actions/flake8@v2
python-version: '3.9'
- name: run ruff linter and formatter
run: |
pip install ruff==0.4.9
ruff check .
ruff format . --check
Loading

0 comments on commit b4c09df

Please sign in to comment.