-
Notifications
You must be signed in to change notification settings - Fork 1
/
base.cfg
153 lines (128 loc) · 3.64 KB
/
base.cfg
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[buildout]
show-picked-versions = true
extensions =
mr.developer
parts =
instance
test
# we use tox for testing and linting, by default
code-analysis
coverage
test-coverage
createcoverage
releaser
i18ndude
omelette
plone-helper-scripts
zpretty
zpretty-run
develop = .
sources-dir = extras
auto-checkout = *
always-checkout = force
[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
http-address = 8080
environment-vars =
zope_i18n_compile_mo_files true
eggs =
Plone
Pillow
design.plone.ioprenoto [test]
zcml-additional =
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:plone="http://namespaces.plone.org/plone">
<plone:CORSPolicy
allow_origin="http://localhost:3000,http://127.0.0.1:3000"
allow_methods="DELETE,GET,OPTIONS,PATCH,POST,PUT"
allow_credentials="true"
expose_headers="Content-Length,X-My-Header"
allow_headers="Accept,Authorization,Content-Type,X-Custom-Header,Origin"
max_age="3600"
/>
</configure>
[vscode]
recipe = collective.recipe.vscode
eggs = ${instance:eggs}
autocomplete-use-omelette = True
[code-analysis]
recipe = plone.recipe.codeanalysis
directory = ${buildout:directory}/src
flake8-exclude=bootstrap.py,bootstrap-buildout.py,docs,bin,*.egg,setup.py,overrides,omelette
flake8-max-complexity = 25
flake8-ignore = E203, E266, E501, W503, E999, C101
flake8-max-line-length = 200
# flake8-select = B,C,E,F,W,T4,B9
flake8-extensions =
flake8-coding
flake8-debugger
flake8-print
# flake8-isort
# additional pep8/flake8 rules, see docs for details
# https://pep8.readthedocs.io/en/1.4.6/intro.html#error-codes
# - E123: closing bracket does not match indentation of opening bracket’s line
# flake8-select = E123
[omelette]
recipe = collective.recipe.omelette
eggs = ${instance:eggs}
[test]
recipe = zc.recipe.testrunner
eggs = ${instance:eggs}
initialization =
os.environ['TZ'] = 'UTC'
defaults = ['-s', 'design.plone.ioprenoto', '--auto-color', '--auto-progress']
[coverage]
recipe = zc.recipe.egg
eggs = coverage
[test-coverage]
recipe = collective.recipe.template
input = inline:
#!/bin/bash
set -e
export TZ=UTC
${buildout:directory}/bin/coverage run bin/test $*
${buildout:directory}/bin/coverage html
${buildout:directory}/bin/coverage report -m --fail-under=90
# Fail (exit status 1) if coverage returns exit status 2 (this happens
# when test coverage is below 100%.
output = ${buildout:directory}/bin/test-coverage
mode = 755
[createcoverage]
recipe = zc.recipe.egg
eggs = createcoverage
[releaser]
recipe = zc.recipe.egg
eggs = zest.releaser
[i18ndude]
recipe = zc.recipe.egg
eggs = i18ndude
[plone-helper-scripts]
recipe = zc.recipe.egg
eggs =
plone.staticresources
${instance:eggs}
interpreter = zopepy
scripts =
zopepy
plone-compile-resources
[zpretty]
recipe = zc.recipe.egg
eggs =
zpretty
[zpretty-run]
recipe = collective.recipe.template
input = inline:
#!/bin/bash
find src -name '*.zcml' | xargs bin/zpretty -i
output = ${buildout:directory}/bin/zpretty-run
mode = 755
[versions]
# Don't use a released version of design.plone.ioprenoto
design.plone.ioprenoto =
setuptools =
redturtle.prenotazioni =
[sources]
# design.plone.contenttypes = git https://github.com/RedTurtle/design.plone.contenttypes.git [email protected]:RedTurtle/design.plone.contenttypes.git
#design.plone.policy = git https://github.com/RedTurtle/design.plone.policy.git [email protected]:RedTurtle/design.plone.policy.git
redturtle.prenotazioni = git https://github.com/RedTurtle/redturtle.prenotazioni.git [email protected]:RedTurtle/redturtle.prenotazioni.git