/
toml.toml
36 lines (31 loc) · 1.14 KB
/
toml.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
# Keys are absent
["pyproject.toml".tool.poetry.dev-dependencies]
pep257__present = false
pycodestyle__present = false
pur__present = false
pep257 = "{{ nit.absent() }}" # Jinja
pycodestyle = "{{ nit.absent() }}" # Jinja
pur = "{{ nit.absent() }}" # Jinja
# Keys are absent
["pyproject.toml".tool.poetry.dependencies]
pep257__present = false
pycodestyle__present = false
pur__present = false
pep257 = "{{ nit.absent() }}" # Jinja
pycodestyle = "{{ nit.absent() }}" # Jinja
pur = "{{ nit.absent() }}" # Jinja
# TODO: pre-processing with Jinja to generate multiple sections with the same config? ["pyproject.toml".tool.poetry.{{ ['dependencies', 'dev-dependencies'] }}]
# Keys are present, with the expected types
["pyproject.toml".build-system]
requires__present = "List[str]"
build-backend__present = "str"
requires = "{{ nit.present(List[str]) }}" # Jinja
build-backend = "{{ nit.present(str) }}" # Jinja
# Integer key exists
["pyproject.toml".tool.black]
line-length__present = "int"
line-length = "{{ nit.present(int) }}" # Jinja
# Section exists with anything inside
["pyproject.toml".tool.black2]
__present = true
blabla = "{{ nit.section_present() }}" # Jinja