File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : ci
2- on : [pull_request]
2+ on :
3+ pull_request :
4+ push :
35
46permissions :
57 contents : read
810 format_python_code :
911 runs-on : ubuntu-latest
1012 steps :
13+ - name : Check out the repo
1114 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1215 with :
1316 submodules : " recursive"
1417 ref : ${{ github.ref }}
15- - name : Blacken Python code
16- uses : jpetrucciani/black-check@master
18+
19+ - name : Install uv
20+ uses : astral-sh/setup-uv@v6
21+
22+ - name : Run Ruff Checks
23+ uses : astral-sh/ruff-action@39f75e526a505e26a302f8796977b50c13720edf # v3.2.1
1724 with :
18- path : " ."
19- black_flags : " --safe --verbose --diff"
25+ args : " check --select I ."
26+
27+ - name : Run Ruff Format
28+ uses : astral-sh/ruff-action@39f75e526a505e26a302f8796977b50c13720edf # v3.2.1
29+ with :
30+ args : " format --check --diff"
31+
2032 build :
2133 runs-on : ubuntu-latest
2234 if : " !contains(github.event.head_commit.message, '[ci skip]')"
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ dev = [
2424 " flake8>=7.0.0,<8" ,
2525]
2626
27+
28+
2729[tool .uv ]
2830default-groups = [
2931 " test" ,
You can’t perform that action at this time.
0 commit comments