-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc
43 lines (35 loc) · 1.61 KB
/
.envrc
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
# Environment variables go here, and can be read in by Python using `os.environ.get`:
#
# --------------------------------------------------------
# import os
#
# EXAMPLE_VARIABLE = os.environ.get("EXAMPLE_VARIABLE")
# --------------------------------------------------------
#
# DO NOT STORE SECRETS HERE - this file is version-controlled! You should store secrets in a `.secrets` file, which is
# not version-controlled - this can then be sourced here, using `source_env ".secrets"`.
# Add the working directory to PYTHONPATH; allows Jupyter notebooks in the `notebooks` folder to import `src`
export PYTHONPATH="$PYTHONPATH:$(pwd)"
# Import secrets from an untracked file `.secrets`
source_env ".secrets"
# Add environment variables for the `data` directories
export DIR_DATA=$(pwd)/data
export DIR_DATA_EXTERNAL=$DIR_DATA/external
export DIR_DATA_RAW=$DIR_DATA/raw
export DIR_DATA_INTERIM=$DIR_DATA/interim
export DIR_DATA_PROCESSED=$DIR_DATA/processed
# Add environment variables for the `docs` directory
export DIR_DOCS=$(pwd)/docs
# Add environment variables for the `notebooks` directory
export DIR_NOTEBOOKS=$(pwd)/notebooks
# Add environment variables for the `outputs` directory
export DIR_OUTPUTS=$(pwd)/outputs
# Add environment variables for the `src` directories
export DIR_SRC=$(pwd)/src
export DIR_SRC_MAKE_DATA=$DIR_SRC/make_data
export DIR_SRC_MAKE_FEATURES=$DIR_SRC/make_features
export DIR_SRC_MAKE_MODELS=$DIR_SRC/make_models
export DIR_SRC_MAKE_VISUALISATIONS=$DIR_SRC/make_visualisations
export DIR_SRC_UTILS=$DIR_SRC/utils
# Add environment variables for the `tests` directory
export DIR_TESTS=$(pwd)/tests