-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpixi.toml
More file actions
149 lines (124 loc) · 3.84 KB
/
pixi.toml
File metadata and controls
149 lines (124 loc) · 3.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[workspace]
authors = ["Felix Häcker <felix@prefix.dev>"]
channels = ["https://prefix.dev/conda-forge"]
description = "Package Management Made Easy!"
name = "pixi-gui"
platforms = ["osx-arm64", "linux-64", "win-64", "osx-64"]
preview = ["pixi-build"]
[workspace.target.win.build-variants]
c_compiler = ["vs2019"]
[system-requirements]
libc = "2.34"
[activation.env]
RUSTC_WRAPPER = "sccache"
#
# Feature: Default
#
[dependencies]
compilers = ">=1.11.0,<2"
pnpm = ">=10.15.0,<11"
rust = ">=1.94,<1.95"
rust-src = ">=1.94,<1.95"
sccache = ">=0.14,<0.15"
tauri = ">=2.9.2,<3"
[target.linux-64.dependencies]
cairo = ">=1.18.4,<2"
expat = ">=2.7.1,<3"
fontconfig = ">=2.15.0,<3"
gdk-pixbuf = ">=2.42.12,<3"
glib = ">=2.84.3,<3"
gtk3 = ">=3.24.43,<4"
pango = ">=1.56.4,<2"
pkg-config = ">=0.29.2,<0.30"
"webkit2gtk4.1" = ">=2.48.5,<3"
xorg-xorgproto = ">=2025.1,<2026"
zlib = ">=1.3.1,<2"
[tasks]
app = { cmd = "pnpm tauri dev", depends-on = ["frontend-install-deps"] }
frontend-install-deps = "pnpm install"
react-devtools = { cmd = "pnpm react-devtools", depends-on = [
"frontend-install-deps",
], env = { HOST = "localhost" } }
#
# Feature: Lint
#
[feature.lint.dependencies]
actionlint = ">=1.7.9,<2"
cargo-deny = ">=0.19,<0.20"
lefthook = ">=2.0.1,<3"
mypy = ">=1.17.1,<2"
ruff = ">=0.15,<0.16"
shellcheck = ">=0.11,<0.12"
taplo = ">=0.10.0,<0.11"
typos = ">=1.36.1,<2"
[feature.lint.tasks]
lefthook = { cmd = "lefthook", description = "Run lefthook" }
pre-commit-install = "lefthook install"
pre-commit-install-minimal = "lefthook install pre-commit"
# Backend
backend-format = "cargo fmt --manifest-path src-tauri/Cargo.toml --all"
backend-lint = "cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets --workspace -- -D warnings"
# Frontend
frontend-format = { cmd = "pnpm exec prettier . --write" }
frontend-lint = { cmd = "pnpm exec eslint . --fix --max-warnings=0 ", depends-on = [
"frontend-install-deps",
] }
# Other
actionlint = { cmd = "actionlint" }
cargo-deny = "cargo deny --manifest-path src-tauri/Cargo.toml check license --deny warnings"
license-check = { cmd = "pnpm license-checker --onlyAllow 'Apache-2.0;BSD-3-Clause;MIT;ISC'", depends-on = [
"frontend-install-deps",
] }
python-typecheck = "mypy ./scripts"
ruff-format = "ruff format --exit-non-zero-on-format --force-exclude"
ruff-lint = "ruff check --fix --exit-non-zero-on-fix --force-exclude"
toml-format = { cmd = "taplo fmt *.toml src-tauri/*.toml", env = { RUST_LOG = "warn" } }
toml-lint = "taplo lint *.toml src-tauri/*.toml --verbose"
typos = "typos --force-exclude"
# Combined
lint = { depends-on = [
"frontend-install-deps",
"lint-fast",
"lint-slow",
], description = "Run all linters and formatters on all code" }
lint-fast = { cmd = "lefthook run pre-commit --all-files --force", description = "Run all fast linters and formatters on all code (no clippy)" }
lint-slow = { cmd = "lefthook run pre-push --all-files --force", description = "Run all slow linters and formatters on all code" }
#
# Feature: Packaging
#
[feature.packaging.dependencies]
python = ">=3.14,<3.15"
rattler-build = ">=0.62,<0.63"
[feature.packaging.tasks]
build-package = "python scripts/build_package.py"
upload-package = "python scripts/upload_package.py"
#
# Feature: Automation
#
[feature.automation.dependencies]
pygithub = ">=2,<3"
python = ">=3.14,<3.15"
tomlkit = ">=0.13,<1"
[feature.automation.tasks]
create-pixi-update-pr = { cmd = "python scripts/bump_pixi.py pr", depends-on = [
"update-pixi",
] }
update-pixi = "python scripts/bump_pixi.py update"
#
# Environments
#
[environments]
default = ["lint", "automation"]
packaging = { features = ["packaging"], no-default-feature = true }
#
# Packaging / Pixi Build
#
[package]
name.workspace = true
[package.build.backend]
channels = [
"https://prefix.dev/pixi-build-backends",
"https://prefix.dev/conda-forge",
]
name = "pixi-build-rattler-build"
version = "*"