-
Notifications
You must be signed in to change notification settings - Fork 2
/
copier.yaml
30 lines (25 loc) · 960 Bytes
/
copier.yaml
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
_subdirectory: template
_exclude:
- copier
use_precommit:
type: bool
help: Do you want to use our pre-commit hooks?
default: no
setup_env:
type: bool
help: Should poetry take care of creating a virtual environment?
default: no
use_apple_silicon:
type: bool
help: Do you use Apple Silicon as a GPU?
default: no
use_dashboard:
type: bool
help: Do you want to use our awesome dashboard?
default: yes
_tasks:
- "mkdir -p data"
- "{% if setup_env %}poetry config virtualenvs.create true{% else %}poetry config virtualenvs.create false{% endif %}"
- "poetry lock && poetry install {% if use_apple_silicon %} -E tensorflow-macos {% endif %} {% if not use_apple_silicon %} -E tensorflow {% endif %} {% if use_dashboard %} -E visu {% endif%}"
- "{% if setup_env %}poetry shell{% endif %}"
- "{% if use_precommit %} cp {{ _copier_conf.src_path }}/.pre-commit-config.yaml .pre-commit-config.yaml && pre-commit install{% endif %}"