Skip to content

Commit 418aafc

Browse files
committed
updates CI
1 parent 668e774 commit 418aafc

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ jobs:
4545
base: ${{ github.ref }}
4646
token: ${{ github.token }}
4747
filters: .github/file-filters.yml
48-
49-
flake8:
48+
ruff:
5049
needs: changes
5150
runs-on: ubuntu-latest
5251
if: github.event.pull_request.draft == false && needs.changes.outputs.lint
@@ -56,36 +55,10 @@ jobs:
5655
with:
5756
python-version: '3.12'
5857
- name: Install requirements
59-
run: pip install flake8 pycodestyle
58+
run: pip install ruff
6059
- name: Check syntax
6160
# Stop the build if there are Python syntax errors or undefined names
62-
run: flake8 src/ --count --statistics --max-line-length=127
61+
run: ruff check src/
6362

6463
- name: Warnings
65-
run: flake8 src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --extend-exclude=""
66-
isort:
67-
needs: changes
68-
runs-on: ubuntu-latest
69-
if: github.event.pull_request.draft == false && needs.changes.outputs.lint
70-
steps:
71-
- uses: actions/checkout@v4
72-
- uses: actions/setup-python@v5
73-
with:
74-
python-version: '3.12'
75-
- name: Install requirements
76-
run: pip install isort
77-
- name: iSort
78-
run: isort src/ --check-only
79-
black:
80-
needs: changes
81-
runs-on: ubuntu-latest
82-
if: github.event.pull_request.draft == false && needs.changes.outputs.lint
83-
steps:
84-
- uses: actions/checkout@v4
85-
- uses: actions/setup-python@v5
86-
with:
87-
python-version: '3.12'
88-
- name: Install requirements
89-
run: pip install black
90-
- name: Black
91-
run: black src/ --check
64+
run: ruff format --check

0 commit comments

Comments
 (0)