Skip to content

Commit

Permalink
Use ruff==0.1.9 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Dec 30, 2023
1 parent b0e9b45 commit 8eb9acf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,12 @@ jobs:
run: |
pip install .
- name: Lint with flake8
- name: Run ruff
shell: bash -l {0}
if: matrix.os != 'windows-latest'
run: |
flake8 labelme/
- name: Black
shell: bash -l {0}
if: matrix.os != 'windows-latest'
run: |
black --line-length 79 --check --diff labelme/
ruff format --check
ruff check
- name: Test with pytest
shell: bash -l {0}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ See `.github/workflows/ci.yml` for more detail.
```bash
pip install -r requirements-dev.txt

flake8 .
black --line-length 79 --check labelme/
ruff format --check # `ruff format` to auto-fix
ruff check # `ruff check --fix` to auto-fix
MPLBACKEND='agg' pytest -vsx tests/
```

Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github2pypi==1.0.0
pytest
pytest-qt
ruff
ruff==0.1.9
twine

0 comments on commit 8eb9acf

Please sign in to comment.