Skip to content

Commit ce6091e

Browse files
committed
Use Ruff linter and formatter
1 parent 71fb26c commit ce6091e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
python -m pip install black mypy
26-
- name: Check code formatting
25+
python -m pip install ruff mypy
26+
- name: Check Ruff linting
2727
run: |
28-
black --check .
28+
ruff check --extend-select I
29+
- name: Check Ruff formatting
30+
run: |
31+
ruff format --check --line-length=120
2932
- name: Check static typing
3033
run: |
3134
mypy --strict diffplus/

0 commit comments

Comments
 (0)