Repository navigation
Expand file tree
/
Copy pathpixi.toml
More file actions
107 lines (100 loc) · 3.05 KB
/
Copy pathpixi.toml
File metadata and controls
107 lines (100 loc) · 3.05 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
[workspace]
authors = ["Tobias Fischer <info@tobiasfischer.info>"]
channels = ["https://prefix.dev/conda-forge"]
platforms = ["osx-arm64", "linux-64", "win-64"]
[feature.site.dependencies]
pnpm = ">=11.21.0,<12"
ghp-import = ">=2.1.0,<3"
[feature.site.tasks]
pnpm-install = {
cmd = "pnpm install",
description = "Install the site's npm dependencies",
}
serve = {
cmd = "pnpm run dev",
depends-on = ["pnpm-install", "ensure-tables"],
description = "Serve the site locally",
}
build-docs = {
cmd = "pnpm run build",
depends-on = ["pnpm-install", "ensure-tables"],
description = "Build the site",
}
gh-deploy = {
cmd = "ghp-import --no-jekyll --push --force --message 'Deploy site' dist",
depends-on = ["build-docs"],
description = "Build the site and publish it to the gh-pages branch",
}
prettier-format = {
cmd = "pnpm exec prettier --write .",
depends-on = ["pnpm-install"],
description = "Format the repository with prettier",
}
prettier-check = {
cmd = "pnpm exec prettier --check .",
depends-on = ["pnpm-install"],
description = "Check the repository's formatting with prettier",
}
astro-check = {
cmd = "pnpm exec astro check --minimumSeverity warning --minimumFailingSeverity warning",
depends-on = ["pnpm-install"],
description = "Type-check the site",
}
svelte-check = {
cmd = "pnpm exec svelte-check --tsconfig ./tsconfig.json --fail-on-warnings",
depends-on = ["pnpm-install"],
description = "Type-check the Svelte components",
}
[feature.lint.dependencies]
ruff = ">=0.16,<0.17"
typos = ">=1.49.0,<2"
zizmor = ">=1.29.0,<2"
ty = ">=0.0.69,<0.0.70"
[feature.lint.tasks]
ruff-check = {
cmd = "ruff check scripts",
description = "Lint the scripts in scripts/",
}
format-check = {
cmd = "ruff format --check scripts",
description = "Format-check the scripts in scripts/",
}
typos = {
cmd = "typos",
description = "Check the repository for typos",
}
zizmor = {
cmd = "zizmor .github/workflows",
description = "Lint the GitHub workflows",
}
ty-check = {
cmd = "ty check scripts",
description = "Type-check the scripts in scripts/",
}
lint = {
depends-on = ["ruff-check", "format-check", "typos", "zizmor", "ty-check", "prettier-check", "astro-check", "svelte-check"],
description = "Run all lint checks",
}
[feature.scripts.dependencies]
pyyaml = ">=6,<7"
py-rattler = ">=0.25,<0.26"
niquests = ">=3.21.0,<4"
[feature.scripts.tasks]
check-dependabot-merge = {
cmd = "python scripts/check_dependabot_merge.py",
description = "Check whether every Dependabot update qualifies for auto-merge",
}
compare-completeness = {
cmd = "python scripts/compare_pkg_completeness.py",
description = "Add two arguments to give it the DISTRO and CHANNEL",
}
update-tables = {
cmd = "python scripts/compare_pkg_completeness.py --all",
description = "Regenerate the package tables for every distro the pipeline maintains",
}
ensure-tables = {
cmd = "python scripts/ensure_tables.py",
description = "Download the deployed package tables where the local copy is missing or older than 6 hours",
}
[environments]
default = ["site", "lint", "scripts"]