@@ -20,74 +20,51 @@ jobs:
20
20
runs-on : ubuntu-latest
21
21
steps :
22
22
- uses : actions/checkout@v3
23
- - name : Get changed Python files
24
- id : changed-py-files
25
- uses : tj-actions/changed-files@v23
26
- with :
27
- files : |
28
- *.py
29
- **/*.py
30
23
- uses : chartboost/ruff-action@v1
31
- if : steps.changed-py-files.outputs.any_changed == 'true'
32
24
with :
33
25
version : 0.3.5
34
26
args : ' format --check --config ./ruff.toml'
35
- src : ${{ steps.changed-py-files.outputs.all_changed_files }}
36
27
37
28
ruff-isort :
38
29
needs : [ ]
39
30
runs-on : ubuntu-latest
40
31
steps :
41
32
- uses : actions/checkout@v3
42
- - name : Get changed Python files
43
- id : changed-py-files
44
- uses : tj-actions/changed-files@v23
45
- with :
46
- files : |
47
- *.py
48
- **/*.py
49
33
- uses : chartboost/ruff-action@v1
50
- if : steps.changed-py-files.outputs.any_changed == 'true'
51
34
with :
52
35
version : 0.3.5
53
36
args : ' --select I --config ./ruff.toml'
54
- src : ${{ steps.changed-py-files.outputs.all_changed_files }}
55
37
56
38
ruff :
57
39
needs : []
58
40
runs-on : ubuntu-latest
59
41
steps :
60
42
- uses : actions/checkout@v3
61
- - name : Get changed Python files
62
- id : changed-py-files
63
- uses : tj-actions/changed-files@v23
64
- with :
65
- files : |
66
- *.py
67
- **/*.py
68
43
- uses : chartboost/ruff-action@v1
69
- if : steps.changed-py-files.outputs.any_changed == 'true'
70
44
with :
71
45
version : 0.3.5
72
46
args : ' --config ./ruff.toml'
73
- src : ${{ steps.changed-py-files.outputs.all_changed_files }}
74
47
75
48
mypy :
49
+ needs : []
50
+ runs-on : ubuntu-latest
51
+ steps :
52
+ - uses : actions/checkout@v3
53
+ - uses : actions/setup-python@v4
54
+ with :
55
+ python-version : ' 3.9'
56
+ - run : pip install mypy==1.5.1
57
+ - run : mypy
58
+
59
+ pre-commit :
76
60
needs : []
77
61
runs-on : ubuntu-latest
78
62
steps :
79
63
- uses : actions/checkout@v3
80
64
- uses : actions/setup-python@v4
81
65
with :
82
66
python-version : ' 3.9'
83
- - run : pip install mypy==1.5.1
84
- - name : Get changed Python files
85
- id : changed-py-files
86
- uses : tj-actions/changed-files@v23
87
- with :
88
- files : |
89
- *.py
90
- **/*.py
91
- - name : Run if any of the listed files above is changed
92
- if : steps.changed-py-files.outputs.any_changed == 'true'
93
- run : mypy ${{ steps.changed-py-files.outputs.all_changed_files }}
67
+ - uses : pre-commit/action@v3.0.0
68
+ name : pre-commit
69
+ env :
70
+ SKIP : ruff,ruff-format,ruff-isort
0 commit comments