@@ -52,7 +52,6 @@ dev = [
5252]
5353
5454[tool .hatch .envs .quality ]
55- installer = " uv"
5655
5756[tool .hatch .envs .quality .scripts ]
5857check = [
@@ -66,7 +65,7 @@ format = [
6665]
6766typecheck = [
6867 """
69- pyright --pythonpath="$(uv run --active hatch run quality: python -c 'import sys; print(sys.executable)')" \
68+ pyright --pythonpath="$(pixi run python -c 'import sys; print(sys.executable)')" \
7069 {args:src/ tests/}
7170 """
7271]
@@ -129,34 +128,24 @@ lint.select = [
129128known-first-party = [" svirlpool" ]
130129
131130[tool .hatch .envs .tests ]
132- installer = " uv"
133131
134132[tool .hatch .envs .tests .scripts ]
135133run = " pytest --cov=svirlpool --cov-report=term-missing tests/ --durations 0 -s {args:tests}"
136134run-snapshot = " run --snapshot-update"
137135
138136[tool .hatch .envs .build ]
139- installer = " uv"
140- feature = [
141- " dev" ,
142- ]
143137
144138[tool .hatch .envs .build .scripts ]
145139run = " hatch build"
146140
147141[tool .hatch .envs .targets ]
148- installer = " uv"
149142
150143[tool .hatch .build ]
151144include = [
152145 " src/svirlpool/**/*.py" ,
153146 " src/**/py.typed" ,
154147]
155148
156- [tool .hatch .build .targets .wheel ]
157- sources = [" src" ]
158- ignore-vcs = true
159-
160149[tool .hatch .build .targets .sdist ]
161150ignore-vcs = true
162151
@@ -174,3 +163,25 @@ version_variables = [
174163version_toml = [
175164 " pyproject.toml:project.version" ,
176165]
166+
167+ [tool .pixi .workspace ]
168+ channels = [" conda-forge" ]
169+ platforms = [" linux-64" ]
170+
171+ [tool .pixi .pypi-dependencies ]
172+ svirlpool = { path = " ." , editable = true }
173+ [tool .pixi .dependencies ]
174+ python = " >=3.12"
175+ hatch = " >=1.14.0"
176+
177+ [tool .pixi .environments ]
178+ default = { solve-group = " default" }
179+ dev = { features = [" dev" ], solve-group = " default" }
180+
181+ [tool .pixi .tasks ]
182+ check = " black --check --diff --preview src tests && ruff check src tests"
183+ format = " black --preview src tests && ruff check --fix src tests"
184+ typecheck = " pyright src/ tests/"
185+ test = " pytest --cov=svirlpool --cov-report=term-missing tests/ --durations 0 -s"
186+ test-snapshot = " pytest --cov=svirlpool tests/ --snapshot-update"
187+ build = " hatch build"
0 commit comments