-
Notifications
You must be signed in to change notification settings - Fork 10
/
toast.yml
41 lines (41 loc) · 1.03 KB
/
toast.yml
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
image: python:3.9-slim
command_prefix: set -euo pipefail
tasks:
install-packages:
command:
# gcc python3-dev needed to build psutil
apt-get update && apt-get install -y curl git make gcc python3-dev
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
- .python-version
- pyproject.toml
- package.json
- .pre-commit-config.yaml
environment:
# don't install hooks
CI: true
command: 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
- fakesnow/
- tests/
command: |
# needed for pre-commit to work and see files
git init . --initial-branch=main
git add fakesnow tests
make hooks