File tree Expand file tree Collapse file tree 1 file changed +10
-26
lines changed Expand file tree Collapse file tree 1 file changed +10
-26
lines changed Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
9
9
jobs :
10
- code-format :
10
+ lint_check_ruff :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v4
14
+ - uses : astral-sh/ruff-action@v3
14
15
with :
15
- fetch-depth : 10
16
- - name : Verify git status
17
- run : |
18
- git status
19
- git remote -v
20
- - name : Set up Python ${{ matrix.python-version }}
21
- uses : actions/setup-python@v5
16
+ args : " check "
17
+
18
+ lint_format_ruff :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ - uses : astral-sh/ruff-action@v3
22
23
with :
23
- python-version : " 3.12"
24
- - name : Display Python version
25
- run : python -c "import sys; print(sys.version)"
26
- - name : Display installed python package versions
27
- run : |
28
- pip list || :
29
- - name : Install build dependencies
30
- run : |
31
- pip install -r requirements.txt
32
- - name : Install black
33
- run : |
34
- pip install black==24.4.2
35
- - name : Display installed python package versions
36
- run : |
37
- pip list || :
38
- - name : Check formatting
39
- run : |
40
- black --check .
24
+ args : " format --check"
41
25
42
26
test :
43
27
runs-on : ${{ matrix.os }}
You can’t perform that action at this time.
0 commit comments