-
Notifications
You must be signed in to change notification settings - Fork 1
/
jinja-tree.toml
101 lines (72 loc) · 3.75 KB
/
jinja-tree.toml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#############################
### General configuration ###
#############################
# (Note: all values here are the default values)
[general]
# Search paths to jinja"
extra_search_paths = []
# Add root dir to search path (if true)
add_root_dir_to_search_path = true
# Add current working dir (CWD at script start) to search path (if true)
add_cwd_to_search_path = true
# Add processed file dir to search path (if true)
add_processed_file_dir_to_search_path = false
# Change working directory when tree walking (if true)
change_cwd = true
# Crash when templates use undefined variables (if true)
strict_undefined = true
# Disable embedded jinja extensions (if true)
# List of embedded jinja extensions (for information only):
# - jinja_tree.app.embedded_extensions.from_json.FromJsonExtension
# - jinja_tree.app.embedded_extensions.from_toml.FromTomlExtension
# - jinja_tree.app.embedded_extensions.shell.ShellExtension
# - jinja_tree.app.embedded_extensions.fnmatch.FnMatchExtension
# - jinja_tree.app.embedded_extensions.double_quotes.DoubleQuotesExtension
# - jinja_tree.app.embedded_extensions.urlencode.UrlEncodeExtension
disable_embedded_jinja_extensions = false
# Jinja extensions to add (full paths)
# Notes:
# - jinja-tree provides embedded extensions which will be added automatically to this list
# - you can disable embedded extensions with 'disable_embedded_jinja_extensions = true'
jinja_extensions = []
# Context plugin full classpaths
context_plugins = ["jinja_tree.infra.adapters.context.ConfigurationContextAdapter", "jinja_tree.infra.adapters.context.EnvContextAdapter", "jinja_tree.infra.adapters.context.DotEnvContextAdapter"]
# Generated comment template: line1 for context
# Available placeholders: {{utcnow}}, {{absolute_path}}, {{dirname}}, {{basename}}, {{relative_filepath}}
context_generated_comment_line1 = "*** GENERATED FILE - DO NOT EDIT ***"
# Generated comment template: line2 for context
# Available placeholders: {{utcnow}}, {{absolute_path}}, {{dirname}}, {{basename}}, {{relative_filepath}}
context_generated_comment_line2 = "This file was generated by jinja-tree (https://github.com/fabien-marty/jinja-tree) from the template file: {{relative_filepath}}"
# Action plugin full classpaths
action_plugins = ["jinja_tree.infra.adapters.action.ExtensionsActionAdapter"]
######################################
### Context plugins configurations ###
######################################
[context.env]
# Fnmatch patterns (for environment variable names) to ignore
# Example: ["FOO*", "*BAR"] for ignoring all env var starting with FOO or ending with BAR
ignores = []
[context.dotenv]
# dotenv file path (absolute or relative), if set to an empty string (""), dotenv support is disabled
path = ".env"
# Fnmatch patterns (for dotenv variable names) to ignore
# Example: ["FOO*", "*BAR"] for ignoring all dotenv var starting with FOO or ending with BAR
ignores = []
[context.config]
# With the ConfigurationContextAdapter plugin, you can add key/values below, they will be available in Jinja2 context
# [...]
##########################################
### File-action plugins configurations ###
##########################################
[action.extension]
# File extensions to process
# Example: [".j2", ".jinja2", ".template"] for processing all files ending with .j2, .jinja2 or .template
extensions = [".template"]
# Filename patterns to ignore (fnmatch patterns to match against basename only)
filename_ignores = [ ".*" ]
# Dirname patterns to ignore recursively (fnmatch patterns to match against dirname only)
dirname_ignores = [ "venv", "site-packages", "__pypackages__", "node_modules", "__pycache__", ".*" ]
# Replace target files if they already exist (if true)
replace = true
# Delete original (template) file after processing (if true)
delete_original = false