File tree 2 files changed +20
-39
lines changed
2 files changed +20
-39
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,6 @@ defaults:
8
8
shell : bash -l {0}
9
9
10
10
jobs :
11
- Lint :
12
- runs-on : ubuntu-latest
13
- steps :
14
- - uses : actions/checkout@v3
15
- - name : Set up Python
16
- uses : actions/setup-python@v4
17
- with :
18
- python-version : 3.11
19
- - name : Lint with Ruff
20
- run : |
21
- pip install ruff
22
- ruff --output-format=github --target-version=py39 .
23
- continue-on-error : true
24
-
25
11
Build :
26
12
runs-on : ubuntu-latest
27
13
steps :
41
27
run : |
42
28
python -m build
43
29
pip install dist/*.whl
44
- - uses : actions/upload-artifact@v3
30
+ - uses : actions/upload-artifact@v4
45
31
with :
46
32
path : ./dist/*
47
33
@@ -52,19 +38,19 @@ jobs:
52
38
python-version : ["3.9", "3.10", "3.11"]
53
39
os : [ubuntu-latest, windows-latest, macos-latest]
54
40
exclude :
55
- - os : windows-latest
56
- python-version : " 3.10"
57
- - os : windows-latest
58
- python-version : " 3.11"
59
- - os : macos-latest
60
- python-version : " 3.10"
61
- - os : macos-latest
62
- python-version : " 3.11"
41
+ - os : windows-latest
42
+ python-version : " 3.10"
43
+ - os : windows-latest
44
+ python-version : " 3.11"
45
+ - os : macos-latest
46
+ python-version : " 3.10"
47
+ - os : macos-latest
48
+ python-version : " 3.11"
63
49
runs-on : ${{ matrix.os }}
64
50
# runs-on: ubuntu-latest
65
51
steps :
66
52
- uses : actions/checkout@v3
67
- - uses : actions/download-artifact@v3
53
+ - uses : actions/download-artifact@v4
68
54
with :
69
55
name : artifact
70
56
path : dist
98
84
permissions :
99
85
id-token : write
100
86
steps :
101
- - uses : actions/download-artifact@v3
87
+ - uses : actions/download-artifact@v4
102
88
with :
103
89
name : artifact
104
90
path : dist
Original file line number Diff line number Diff line change 1
- repos :
1
+ ci :
2
+ autoupdate_schedule : quarterly
2
3
3
- # Automatic source code formatting
4
- - repo : https://github.com/psf/black
5
- rev : 23 .9.1
4
+ repos :
5
+ - repo : https://github.com/astral-sh/ruff-pre-commit
6
+ rev : v0 .9.2
6
7
hooks :
7
- - id : black
8
- args : [--safe, --quiet]
8
+ - id : ruff
9
+ args : [--fix, --exit-non-zero-on-fix, --show-fixes]
10
+ - id : ruff-format
9
11
10
- # Syntax check and some basic
11
12
- repo : https://github.com/pre-commit/pre-commit-hooks
12
- rev : v4.4 .0
13
+ rev : v5.0 .0
13
14
hooks :
14
15
- id : check-ast
15
16
16
- - repo : https://github.com/charliermarsh/ruff-pre-commit
17
- rev : v0.0.291
18
- hooks :
19
- - id : ruff
20
- args : ["--fix", "--show-fixes"]
21
-
You can’t perform that action at this time.
0 commit comments