Skip to content

Commit

Permalink
Create a code-analysis.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
boulch committed Apr 27, 2021
1 parent c21bb70 commit 43a321b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
18 changes: 2 additions & 16 deletions base.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ extensions = mr.developer
parts =
instance
test
code-analysis
createcoverage
releaser
i18ndude
Expand All @@ -29,10 +28,11 @@ collective = https://github.com/collective
collective_push = git@github.com:collective

[sources]
collective.behavior.talcondition = git ${remotes:collective}/collective.behavior.talcondition.git pushurl=${remotes:collective_push}/collective.behavior.talcondition.git
collective.behavior.talcondition = git ${remotes:collective}/collective.behavior.talcondition.git pushurl=${remotes:collective_push}/collective.behavior.talcondition.git branch=issue_3

[instance]
recipe = plone.recipe.zope2instance
zodb-temporary-storage = off
user = admin:admin
http-address = 8080
debug-mode = on
Expand All @@ -50,20 +50,6 @@ zcml =
environment-vars =
zope_i18n_compile_mo_files true


[code-analysis]
recipe = plone.recipe.codeanalysis[recommended]
directory = ${buildout:directory}/src/collective
flake8-exclude = bootstrap.py,bootstrap-buildout.py,docs,*.egg.,omelette
flake8-ignore = W391
flake8-max-complexity = 15
flake8-max-line-length = 119
flake8-extensions =
flake8-blind-except
flake8-debugger
flake8-coding
return-status-codes = False

[omelette]
recipe = collective.recipe.omelette
eggs = ${instance:eggs}
Expand Down
16 changes: 16 additions & 0 deletions code-analysis.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[buildout]

parts += code-analysis

[code-analysis]
recipe = plone.recipe.codeanalysis[recommended]
directory = ${buildout:directory}/src/collective
flake8-exclude = bootstrap.py,bootstrap-buildout.py,docs,*.egg.,omelette
flake8-ignore = W391
flake8-max-complexity = 15
flake8-max-line-length = 119
flake8-extensions =
flake8-blind-except
flake8-debugger
flake8-coding
return-status-codes = False
1 change: 1 addition & 0 deletions plone-4.3.x.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
extends =
http://dist.plone.org/release/4.3-latest/versions.cfg
base.cfg
code-analysis.cfg

[instance]
eggs +=
Expand Down
1 change: 1 addition & 0 deletions plone-5.1.x.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
extends =
http://dist.plone.org/release/5.1-latest/versions.cfg
base.cfg
code-analysis.cfg

[versions]
traitlets = 4.3.2
Expand Down

0 comments on commit 43a321b

Please sign in to comment.