Skip to content

Commit

Permalink
Configuring with plone/meta
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Mar 3, 2023
1 parent 63f5bab commit a81b1f9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ additional-ignores = [

[meta]
template = "default"
commit-id = "80b6e76b"
commit-id = "e42131fe"

[dependencies]
mappings = [
Expand Down
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# 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.1
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
Expand All @@ -25,6 +30,8 @@ repos:
rev: v2.2.2
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
Expand Down
2 changes: 2 additions & 0 deletions news/e42131fe.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Update configuration files.
[plone devs]
33 changes: 15 additions & 18 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
envlist =
format
lint
test

[testenv]
allowlist_externals =
sh

[testenv:format]
description = automatically reformat code
Expand All @@ -25,29 +30,21 @@ commands =
pre-commit run -a

[testenv:dependencies]
description = check if the package defines all its dependencies
deps =
z3c.dependencychecker
-c lint-requirements.txt
commands =
dependencychecker

[testenv:dependencies-graph]
description = generate a graph with the distribution dependencies
description = check if the package defines all its dependencies and generate a graph out of them
deps =
pipdeptree
z3c.dependencychecker==2.11
pipdeptree==2.5.1
graphviz # optional dependency of pipdeptree
-c lint-requirements.txt
commands =
sh -c 'pipdeptree --exclude setuptools,pipdeptree,wheel --graph-output svg > dependencies.svg'
dependencychecker
sh -c 'pipdeptree --exclude setuptools,pipdeptree,wheel,pipdeptree,z3c.dependencychecker,zope.interface,zope.component --graph-output svg > dependencies.svg'

[testenv:test]
description = run the distribution's tests
usedevelop = true
deps =
plone.batching[test]
pytest
gocept.pytestlayer
zope.testrunner
-c https://dist.plone.org/release/6.0-dev/constraints.txt
commands =
pip install -e .
pytest
zope-testrunner --test-path={toxinidir} -s plone.batching
extras =
test

0 comments on commit a81b1f9

Please sign in to comment.