File tree Expand file tree Collapse file tree 1 file changed +4
-31
lines changed
Expand file tree Collapse file tree 1 file changed +4
-31
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments