@@ -17,161 +17,131 @@ jobs:
1717 steps :
1818 - name : ⤵️ Check out code from GitHub
1919 uses : actions/checkout@v4.2.2
20- - name : 🏗 Set up Poetry
21- run : pipx install poetry
20+ - name : 🏗 Set up uv
21+ run : pipx install uv
2222 - name : 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
2323 id : python
2424 uses : actions/setup-python@v5.6.0
2525 with :
2626 python-version : ${{ env.DEFAULT_PYTHON }}
27- cache : " poetry"
28- - name : 🏗 Install workflow dependencies
29- run : |
30- poetry config virtualenvs.create true
31- poetry config virtualenvs.in-project true
3227 - name : 🏗 Install Python dependencies
33- run : poetry install --no-interaction
28+ run : uv sync --dev
3429 - name : 🚀 Check code for common misspellings
35- run : poetry run pre-commit run codespell --all-files
30+ run : uv run pre-commit run codespell --all-files
3631
3732 ruff :
3833 name : Ruff
3934 runs-on : ubuntu-latest
4035 steps :
4136 - name : ⤵️ Check out code from GitHub
4237 uses : actions/checkout@v4.2.2
43- - name : 🏗 Set up Poetry
44- run : pipx install poetry
38+ - name : 🏗 Set up uv
39+ run : pipx install uv
4540 - name : 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
4641 id : python
4742 uses : actions/setup-python@v5.6.0
4843 with :
4944 python-version : ${{ env.DEFAULT_PYTHON }}
50- cache : " poetry"
51- - name : 🏗 Install workflow dependencies
52- run : |
53- poetry config virtualenvs.create true
54- poetry config virtualenvs.in-project true
5545 - name : 🏗 Install Python dependencies
56- run : poetry install --no-interaction
46+ run : uv sync --dev
5747 - name : 🚀 Run ruff linter
58- run : poetry run ruff check --output-format=github .
48+ run : uv run ruff check --output-format=github .
5949 - name : 🚀 Run ruff formatter
60- run : poetry run ruff format --check .
50+ run : uv run ruff format --check .
6151
6252 pre-commit-hooks :
6353 name : pre-commit-hooks
6454 runs-on : ubuntu-latest
6555 steps :
6656 - name : ⤵️ Check out code from GitHub
6757 uses : actions/checkout@v4.2.2
68- - name : 🏗 Set up Poetry
69- run : pipx install poetry
58+ - name : 🏗 Set up uv
59+ run : pipx install uv
7060 - name : 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
7161 id : python
7262 uses : actions/setup-python@v5.6.0
7363 with :
7464 python-version : ${{ env.DEFAULT_PYTHON }}
75- cache : " poetry"
76- - name : 🏗 Install workflow dependencies
77- run : |
78- poetry config virtualenvs.create true
79- poetry config virtualenvs.in-project true
8065 - name : 🏗 Install Python dependencies
81- run : poetry install --no-interaction
66+ run : uv sync --dev
8267 - name : 🚀 Check Python AST
83- run : poetry run pre-commit run check-ast --all-files
68+ run : uv run pre-commit run check-ast --all-files
8469 - name : 🚀 Check for case conflicts
85- run : poetry run pre-commit run check-case-conflict --all-files
70+ run : uv run pre-commit run check-case-conflict --all-files
8671 - name : 🚀 Check docstring is first
87- run : poetry run pre-commit run check-docstring-first --all-files
72+ run : uv run pre-commit run check-docstring-first --all-files
8873 - name : 🚀 Check that executables have shebangs
89- run : poetry run pre-commit run check-executables-have-shebangs --all-files
74+ run : uv run pre-commit run check-executables-have-shebangs --all-files
9075 - name : 🚀 Check JSON files
91- run : poetry run pre-commit run check-json --all-files
76+ run : uv run pre-commit run check-json --all-files
9277 - name : 🚀 Check for merge conflicts
93- run : poetry run pre-commit run check-merge-conflict --all-files
78+ run : uv run pre-commit run check-merge-conflict --all-files
9479 - name : 🚀 Check for broken symlinks
95- run : poetry run pre-commit run check-symlinks --all-files
80+ run : uv run pre-commit run check-symlinks --all-files
9681 - name : 🚀 Check TOML files
97- run : poetry run pre-commit run check-toml --all-files
82+ run : uv run pre-commit run check-toml --all-files
9883 - name : 🚀 Check XML files
99- run : poetry run pre-commit run check-yaml --all-files
84+ run : uv run pre-commit run check-yaml --all-files
10085 - name : 🚀 Check YAML files
101- run : poetry run pre-commit run check-yaml --all-files
86+ run : uv run pre-commit run check-yaml --all-files
10287 - name : 🚀 Detect Private Keys
103- run : poetry run pre-commit run detect-private-key --all-files
88+ run : uv run pre-commit run detect-private-key --all-files
10489 - name : 🚀 Check End of Files
105- run : poetry run pre-commit run end-of-file-fixer --all-files
90+ run : uv run pre-commit run end-of-file-fixer --all-files
10691 - name : 🚀 Trim Trailing Whitespace
107- run : poetry run pre-commit run trailing-whitespace --all-files
92+ run : uv run pre-commit run trailing-whitespace --all-files
10893
10994 pylint :
11095 name : pylint
11196 runs-on : ubuntu-latest
11297 steps :
11398 - name : ⤵️ Check out code from GitHub
11499 uses : actions/checkout@v4.2.2
115- - name : 🏗 Set up Poetry
116- run : pipx install poetry
100+ - name : 🏗 Set up uv
101+ run : pipx install uv
117102 - name : 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
118103 id : python
119104 uses : actions/setup-python@v5.6.0
120105 with :
121106 python-version : ${{ env.DEFAULT_PYTHON }}
122- cache : " poetry"
123- - name : 🏗 Install workflow dependencies
124- run : |
125- poetry config virtualenvs.create true
126- poetry config virtualenvs.in-project true
127107 - name : 🏗 Install Python dependencies
128- run : poetry install --no-interaction
108+ run : uv sync --dev
129109 - name : 🚀 Run pylint
130- run : poetry run pre-commit run pylint --all-files
110+ run : uv run pre-commit run pylint --all-files
131111
132112 yamllint :
133113 name : yamllint
134114 runs-on : ubuntu-latest
135115 steps :
136116 - name : ⤵️ Check out code from GitHub
137117 uses : actions/checkout@v4.2.2
138- - name : 🏗 Set up Poetry
139- run : pipx install poetry
118+ - name : 🏗 Set up uv
119+ run : pipx install uv
140120 - name : 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
141121 id : python
142122 uses : actions/setup-python@v5.6.0
143123 with :
144124 python-version : ${{ env.DEFAULT_PYTHON }}
145- cache : " poetry"
146- - name : 🏗 Install workflow dependencies
147- run : |
148- poetry config virtualenvs.create true
149- poetry config virtualenvs.in-project true
150125 - name : 🏗 Install Python dependencies
151- run : poetry install --no-interaction
126+ run : uv sync --dev
152127 - name : 🚀 Run yamllint
153- run : poetry run yamllint .
128+ run : uv run yamllint .
154129
155130 prettier :
156131 name : Prettier
157132 runs-on : ubuntu-latest
158133 steps :
159134 - name : ⤵️ Check out code from GitHub
160135 uses : actions/checkout@v4.2.2
161- - name : 🏗 Set up Poetry
162- run : pipx install poetry
136+ - name : 🏗 Set up uv
137+ run : pipx install uv
163138 - name : 🏗 Set up Python ${{ env.DEFAULT_PYTHON }}
164139 id : python
165140 uses : actions/setup-python@v5.6.0
166141 with :
167142 python-version : ${{ env.DEFAULT_PYTHON }}
168- cache : " poetry"
169- - name : 🏗 Install workflow dependencies
170- run : |
171- poetry config virtualenvs.create true
172- poetry config virtualenvs.in-project true
173143 - name : 🏗 Install Python dependencies
174- run : poetry install --no-interaction
144+ run : uv sync --dev
175145 - name : 🏗 Set up Node.js
176146 uses : actions/setup-node@v4.4.0
177147 with :
@@ -180,4 +150,4 @@ jobs:
180150 - name : 🏗 Install NPM dependencies
181151 run : npm install
182152 - name : 🚀 Run prettier
183- run : poetry run pre-commit run prettier --all-files
153+ run : uv run pre-commit run prettier --all-files
0 commit comments