Skip to content

Commit

Permalink
Switched linter to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
furechan committed Sep 18, 2024
1 parent 7789d43 commit 9561285
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,9 @@ jobs:
- name: Install packages
run: |
python -m pip install --upgrade pip
python -m pip install . flake8 pytest ruff
python -m pip install . ruff pytest
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Lint with Ruff
run: ruff check --output-format=github .
- name: Test with pytest
run: |
pytest
run: pytest
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ exclude = [".*"]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"*.ipynb" = ["F401", "F811"]

[tool.pydev]
allow-publish = true
Expand Down

0 comments on commit 9561285

Please sign in to comment.