Test Setup Failed
Push — master ( 4c7575...8ed87e )
by Jace
01:18
created

init_config()   A

Complexity

Conditions 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 11
rs 9.4285
1
import logging
2
3
from .models import Config, Environment
4
5
6
log = logging.getLogger(__name__)
7
8
9
def init_config():
10
    """Generate a configuration file with sample data."""
11
    config = Config()
12
13
    config.files = ["app.json", ".env"]
14
    config.environments = [
15
        Environment("localhost"),
16
        Environment("production", command="heroku run env"),
17
    ]
18
19
    return config
20