Skip to content

Commit ea795c3

Browse files
Format examples
1 parent d05145a commit ea795c3

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

examples/example-02.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This example shows how to load app settings from a TOML file, and from
33
environment variables, filtered by "APP_" prefix.
44
"""
5+
56
from config.common import ConfigurationBuilder
67
from config.env import EnvVars
78
from config.toml import TOMLFile

examples/example-03.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
environment variables, filtered by "APP_" prefix and obtained from a .env file
44
(this is optional!), and how values can be overridden.
55
"""
6+
67
from config.common import ConfigurationBuilder
78
from config.env import EnvVars
89
from config.json import JSONFile

examples/example-04.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This example illustrates a way to override settings from a common file, using an
33
environment specific settings file.
44
"""
5+
56
import os
67
from dataclasses import dataclass
78

examples/example-05.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This example shows how nested values can be overridden using strings.
33
"""
4+
45
from config.common import ConfigurationBuilder, MapSource
56

67
builder = ConfigurationBuilder(

examples/example-07.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This example shows how to override nested properties using environment
33
variables.
44
"""
5+
56
import os
67

78
from config.common import ConfigurationBuilder, MapSource

0 commit comments

Comments
 (0)