-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtoast.yml
More file actions
46 lines (46 loc) · 1.22 KB
/
toast.yml
File metadata and controls
46 lines (46 loc) · 1.22 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
image: python:3.10-slim
command_prefix: set -euo pipefail
tasks:
install-packages:
command: |
apt-get update && apt-get install -y curl git make
curl -LsSf https://astral.sh/uv/install.sh | sh
install-node:
dependencies:
- install-packages
command: |
curl -sL https://deb.nodesource.com/setup_lts.x | bash -
apt-get install -y nodejs
install:
dependencies:
- install-node
input_paths:
- Makefile
- Makefile-common.mk
- pyproject.toml
- package.json
- .pre-commit-config.yaml
- .python-version
command: |
# add uv to path
export PATH="/root/.local/bin/:$PATH"
# needed so the editable package (.pth) we install points at src
mkdir src
# needed to install hooks
git init . --initial-branch=main
make install
hooks:
description: make hooks
dependencies:
- install
input_paths:
# needed to avoid running hooks on *.egg-info files generated by pip install -e .
- .gitignore
- src/
- tests/
command: |
# add uv to path
export PATH="/root/.local/bin/:$PATH"
# needed for prek to see files to run hooks on
git add src tests
make hooks