File tree Expand file tree Collapse file tree 2 files changed +20
-39
lines changed
Expand file tree Collapse file tree 2 files changed +20
-39
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,6 @@ defaults:
88 shell : bash -l {0}
99
1010jobs :
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-
2511 Build :
2612 runs-on : ubuntu-latest
2713 steps :
4127 run : |
4228 python -m build
4329 pip install dist/*.whl
44- - uses : actions/upload-artifact@v3
30+ - uses : actions/upload-artifact@v4
4531 with :
4632 path : ./dist/*
4733
@@ -52,19 +38,19 @@ jobs:
5238 python-version : ["3.9", "3.10", "3.11"]
5339 os : [ubuntu-latest, windows-latest, macos-latest]
5440 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"
6349 runs-on : ${{ matrix.os }}
6450 # runs-on: ubuntu-latest
6551 steps :
6652 - uses : actions/checkout@v3
67- - uses : actions/download-artifact@v3
53+ - uses : actions/download-artifact@v4
6854 with :
6955 name : artifact
7056 path : dist
9884 permissions :
9985 id-token : write
10086 steps :
101- - uses : actions/download-artifact@v3
87+ - uses : actions/download-artifact@v4
10288 with :
10389 name : artifact
10490 path : dist
Original file line number Diff line number Diff line change 1- repos :
1+ ci :
2+ autoupdate_schedule : quarterly
23
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
67 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
911
10- # Syntax check and some basic
1112- repo : https://github.com/pre-commit/pre-commit-hooks
12- rev : v4.4 .0
13+ rev : v5.0 .0
1314 hooks :
1415 - id : check-ast
1516
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