-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config with default template #509
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a1ae898
Configuring with plone/meta
gforcada e509192
cleanup(tox): drop duplicated environments
gforcada a434613
cleanup(gha): drop duplicated targets
gforcada 003d246
cleanup: stop testing on python 3.7
gforcada 1ac974e
fix(gha): bump actions
gforcada 88a8870
chore: pyupgrade
gforcada 09da742
chore: isort
gforcada ff83150
chore: black
gforcada bcaa325
chore: zpretty
gforcada 974b997
feat: codespell
gforcada 86418cc
Use allowlist_externals mkdir.
mauritsvanrees File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated from: | ||
# https://github.com/plone/meta/tree/master/config/default | ||
name: Coverage | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
coverage: | ||
uses: plone/meta/.github/workflows/coverage.yml@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
# Generated from: | ||
# https://github.com/plone/meta/tree/master/config/default | ||
[meta] | ||
template = "default" | ||
commit-id = "54c96fb5" | ||
|
||
[editorconfig] | ||
extra_lines = """ | ||
[*.bat] | ||
indent_style = tab | ||
end_of_line = crlf | ||
|
||
[LICENSE] | ||
insert_final_newline = false""" | ||
|
||
[setup] | ||
check_manifest_ignore = """ | ||
*.cfg | ||
constraints_plone52.txt | ||
constraints_plone60.txt | ||
constraints.txt | ||
fix-converted-myst.py | ||
Makefile | ||
netlify.toml | ||
requirements-docs.txt | ||
requirements.txt""" | ||
extra_lines = """ | ||
[coverage:run] | ||
branch = True | ||
source = | ||
src | ||
|
||
omit = | ||
*.rst | ||
*/doctests/* | ||
*/tests/* | ||
|
||
[coverage:report] | ||
precision = 2 | ||
include = src | ||
omit = | ||
*.rst | ||
*/doctests/* | ||
*/tests/* | ||
|
||
[coverage:html] | ||
directory = _build/coverage""" | ||
|
||
[tox] | ||
envlist_lines = """ | ||
py{38,39}-plone{52} | ||
py{38,39}-plone{60} | ||
# towncrier | ||
# coverage-report | ||
linkcheck | ||
plone6docs | ||
docs""" | ||
config_lines = "skip_missing_interpreters = True" | ||
testenv_lines = "skip_install = True" | ||
extra_lines = """ | ||
[gh-actions] | ||
python = | ||
3.8: py38 | ||
3.9: py39 | ||
|
||
[gh-actions:env] | ||
PLONE = | ||
52: plone52 | ||
60: plone60 | ||
|
||
commands = | ||
python -VV | ||
pip install -r requirements.txt | ||
pip list | ||
{envbindir}/buildout -c /{toxinidir}/{env:BUILDOUT_FILE} buildout:directory={envdir} buildout:develop={toxinidir} install test | ||
{envbindir}/buildout -c {toxinidir}/{env:BUILDOUT_FILE} buildout:directory={envdir} buildout:develop={toxinidir} annotate | ||
{envbindir}/test | ||
|
||
setenv = | ||
BUILDOUT_FILE=test_plone-60.cfg | ||
plone52: BUILDOUT_FILE=test_plone-52.cfg | ||
|
||
deps = | ||
pdbpp | ||
manuel | ||
|
||
[testenv:coverage-report] | ||
basepython = python3.9 | ||
deps = coverage | ||
|
||
setenv = | ||
COVERAGE_FILE=.coverage | ||
|
||
skip_install = True | ||
|
||
commands = | ||
python -VV | ||
coverage erase | ||
coverage combine | ||
coverage report | ||
coverage html | ||
coverage xml | ||
|
||
[testenv:plone6docs] | ||
# New docs with sphinx-book-theme | ||
# See [testenv:docs] for classic documentation | ||
basepython = python3.9 | ||
skip_install = False | ||
usedevelop = True | ||
extras = | ||
tests | ||
|
||
deps = | ||
-r requirements-docs.txt | ||
|
||
commands = | ||
python -VV | ||
mkdir -p {toxinidir}/_build/plone6docs | ||
sphinx-build -b html -d _build/plone6docs/doctrees docs _build/plone6docs/html | ||
|
||
allowlist_externals = | ||
mkdir | ||
|
||
|
||
[testenv:docs] | ||
basepython = python3.9 | ||
skip_install = False | ||
usedevelop = True | ||
extras = | ||
tests | ||
|
||
deps = | ||
-r requirements-docs.txt | ||
|
||
commands = | ||
python -VV | ||
mkdir -p {toxinidir}/_build/docs | ||
sphinx-build -b html -D html_theme=alabaster -d _build/docs/doctrees docs _build/docs/html | ||
|
||
allowlist_externals = | ||
mkdir | ||
|
||
|
||
[testenv:linkcheck] | ||
basepython = python | ||
skip_install = False | ||
usedevelop = True | ||
extras = | ||
{[testenv:plone6docs]extras} | ||
deps = | ||
{[testenv:plone6docs]deps} | ||
commands = | ||
python -VV | ||
mkdir -p {toxinidir}/_build/plone6docs | ||
sphinx-build -b linkcheck -d _build/plone6docs/doctrees docs _build/plone6docs/linkcheck | ||
allowlist_externals = | ||
mkdir | ||
|
||
|
||
[testenv:towncrier] | ||
basepython = python | ||
skip_install = True | ||
|
||
deps= | ||
towncrier | ||
|
||
commands = | ||
towncrier --draft""" | ||
|
||
[pre_commit] | ||
codespell_extra_lines = " exclude: .*\\.po(t)*$" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Generated from: | ||
# https://github.com/plone/meta/tree/master/config/default | ||
ci: | ||
autofix_prs: false | ||
autoupdate_schedule: monthly | ||
|
||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.3.2 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py38-plus] | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/collective/zpretty | ||
rev: 3.0.4 | ||
hooks: | ||
- id: zpretty | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.4 | ||
hooks: | ||
- id: codespell | ||
additional_dependencies: | ||
- tomli | ||
exclude: .*\.po(t)*$ | ||
- repo: https://github.com/mgedmin/check-manifest | ||
rev: "0.49" | ||
hooks: | ||
- id: check-manifest | ||
- repo: https://github.com/regebro/pyroma | ||
rev: "4.2" | ||
hooks: | ||
- id: pyroma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not test Plone 5.2 on Python 3.9. But that is already happening on current master I think, so could be handled separately.