@@ -19,47 +19,31 @@ jobs:
1919 steps :
2020 - name : ⤵️ Check out code from GitHub
2121 uses : actions/checkout@v6.0.2
22- - name : 🏗 Set up Poetry
23- run : pipx install poetry
24- - name : 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
25- id : python
26- uses : actions/setup-python@v6.2.0
22+ - name : 🏗 Install uv
23+ uses : astral-sh/setup-uv@v8.1.0
2724 with :
2825 python-version : ${{ env.DEFAULT_PYTHON }}
29- cache : " poetry"
30- - name : 🏗 Install workflow dependencies
31- run : |
32- poetry config virtualenvs.create true
33- poetry config virtualenvs.in-project true
3426 - name : 🏗 Install Python dependencies
35- run : poetry install --no-interaction
27+ run : uv sync --all-groups
3628 - name : 🚀 Check code for common misspellings
37- run : poetry run prek run codespell --all-files
29+ run : uv run prek run codespell --all-files
3830
3931 ruff :
4032 name : Ruff
4133 runs-on : ubuntu-latest
4234 steps :
4335 - name : ⤵️ Check out code from GitHub
4436 uses : actions/checkout@v6.0.2
45- - name : 🏗 Set up Poetry
46- run : pipx install poetry
47- - name : 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
48- id : python
49- uses : actions/setup-python@v6.2.0
37+ - name : 🏗 Install uv
38+ uses : astral-sh/setup-uv@v8.1.0
5039 with :
5140 python-version : ${{ env.DEFAULT_PYTHON }}
52- cache : " poetry"
53- - name : 🏗 Install workflow dependencies
54- run : |
55- poetry config virtualenvs.create true
56- poetry config virtualenvs.in-project true
5741 - name : 🏗 Install Python dependencies
58- run : poetry install --no-interaction
42+ run : uv sync --all-groups
5943 - name : 🚀 Run ruff linter
60- run : poetry run ruff check --output-format=github .
44+ run : uv run ruff check --output-format=github .
6145 - name : 🚀 Run ruff formatter
62- run : poetry run ruff format --check .
46+ run : uv run ruff format --check .
6347
6448 prek-builtin-hooks :
6549 name : prek-builtin-hooks
@@ -98,91 +82,59 @@ jobs:
9882 steps :
9983 - name : ⤵️ Check out code from GitHub
10084 uses : actions/checkout@v6.0.2
101- - name : 🏗 Set up Poetry
102- run : pipx install poetry
103- - name : 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
104- id : python
105- uses : actions/setup-python@v6.2.0
85+ - name : 🏗 Install uv
86+ uses : astral-sh/setup-uv@v8.1.0
10687 with :
10788 python-version : ${{ env.DEFAULT_PYTHON }}
108- cache : " poetry"
109- - name : 🏗 Install workflow dependencies
110- run : |
111- poetry config virtualenvs.create true
112- poetry config virtualenvs.in-project true
11389 - name : 🏗 Install Python dependencies
114- run : poetry install --no-interaction
90+ run : uv sync --all-groups
11591 - name : 🚀 Check Python AST
116- run : poetry run prek run check-ast --all-files
92+ run : uv run prek run check-ast --all-files
11793 - name : 🚀 Check docstring is first
118- run : poetry run prek run check-docstring-first --all-files
94+ run : uv run prek run check-docstring-first --all-files
11995
12096 pylint :
12197 name : pylint
12298 runs-on : ubuntu-latest
12399 steps :
124100 - name : ⤵️ Check out code from GitHub
125101 uses : actions/checkout@v6.0.2
126- - name : 🏗 Set up Poetry
127- run : pipx install poetry
128- - name : 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
129- id : python
130- uses : actions/setup-python@v6.2.0
102+ - name : 🏗 Install uv
103+ uses : astral-sh/setup-uv@v8.1.0
131104 with :
132105 python-version : ${{ env.DEFAULT_PYTHON }}
133- cache : " poetry"
134- - name : 🏗 Install workflow dependencies
135- run : |
136- poetry config virtualenvs.create true
137- poetry config virtualenvs.in-project true
138106 - name : 🏗 Install Python dependencies
139- run : poetry install --no-interaction
107+ run : uv sync --all-groups
140108 - name : 🚀 Run pylint
141- run : poetry run prek run pylint --all-files
109+ run : uv run prek run pylint --all-files
142110
143111 yamllint :
144112 name : yamllint
145113 runs-on : ubuntu-latest
146114 steps :
147115 - name : ⤵️ Check out code from GitHub
148116 uses : actions/checkout@v6.0.2
149- - name : 🏗 Set up Poetry
150- run : pipx install poetry
151- - name : 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
152- id : python
153- uses : actions/setup-python@v6.2.0
117+ - name : 🏗 Install uv
118+ uses : astral-sh/setup-uv@v8.1.0
154119 with :
155120 python-version : ${{ env.DEFAULT_PYTHON }}
156- cache : " poetry"
157- - name : 🏗 Install workflow dependencies
158- run : |
159- poetry config virtualenvs.create true
160- poetry config virtualenvs.in-project true
161121 - name : 🏗 Install Python dependencies
162- run : poetry install --no-interaction
122+ run : uv sync --all-groups
163123 - name : 🚀 Run yamllint
164- run : poetry run yamllint .
124+ run : uv run yamllint .
165125
166126 prettier :
167127 name : Prettier
168128 runs-on : ubuntu-latest
169129 steps :
170130 - name : ⤵️ Check out code from GitHub
171131 uses : actions/checkout@v6.0.2
172- - name : 🏗 Set up Poetry
173- run : pipx install poetry
174- - name : 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
175- id : python
176- uses : actions/setup-python@v6.2.0
132+ - name : 🏗 Install uv
133+ uses : astral-sh/setup-uv@v8.1.0
177134 with :
178135 python-version : ${{ env.DEFAULT_PYTHON }}
179- cache : " poetry"
180- - name : 🏗 Install workflow dependencies
181- run : |
182- poetry config virtualenvs.create true
183- poetry config virtualenvs.in-project true
184136 - name : 🏗 Install Python dependencies
185- run : poetry install --no-interaction
137+ run : uv sync --all-groups
186138 - name : 🏗 Set up Node.js
187139 uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
188140 with :
@@ -191,4 +143,4 @@ jobs:
191143 - name : 🏗 Install NPM dependencies
192144 run : npm install
193145 - name : 🚀 Run prettier
194- run : poetry run prek run prettier --all-files
146+ run : uv run prek run prettier --all-files
0 commit comments