Skip to content

Commit 4049d37

Browse files
committed
Configuring with plone.meta
1 parent 48593b7 commit 4049d37

50 files changed

Lines changed: 1278 additions & 463 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coveragerc

Lines changed: 0 additions & 7 deletions
This file was deleted.

.editorconfig

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Generated from:
2+
# https://github.com/plone/meta/tree/2.x/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
#
5+
# EditorConfig Configuration file, for more details see:
6+
# http://EditorConfig.org
7+
# EditorConfig is a convention description, that could be interpreted
8+
# by multiple editors to enforce common coding conventions for specific
9+
# file types
10+
11+
# top-most EditorConfig file:
12+
# Will ignore other EditorConfig files in Home directory or upper tree level.
13+
root = true
14+
15+
16+
[*]
17+
# Default settings for all files.
18+
# Unix-style newlines with a newline ending every file
19+
end_of_line = lf
20+
insert_final_newline = true
21+
trim_trailing_whitespace = true
22+
# Set default charset
23+
charset = utf-8
24+
# Indent style default
25+
indent_style = space
26+
# Max Line Length - a hard line wrap, should be disabled
27+
max_line_length = off
28+
29+
[*.{py,cfg,ini}]
30+
# 4 space indentation
31+
indent_size = 4
32+
33+
[*.{yml,zpt,pt,dtml,zcml,html,xml}]
34+
# 2 space indentation
35+
indent_size = 2
36+
37+
[*.{json,jsonl,js,jsx,ts,tsx,css,less,scss}]
38+
# Frontend development
39+
# 2 space indentation
40+
indent_size = 2
41+
max_line_length = 80
42+
43+
[{Makefile,.gitmodules}]
44+
# Tab indentation (no size specified, but view as 4 spaces)
45+
indent_style = tab
46+
indent_size = unset
47+
tab_width = unset
48+
49+
50+
##
51+
# Add extra configuration options in .meta.toml:
52+
# [editorconfig]
53+
# extra_lines = """
54+
# _your own configuration lines_
55+
# """
56+
##

.flake8

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated from:
2+
# https://github.com/plone/meta/tree/2.x/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
[flake8]
5+
doctests = 1
6+
ignore =
7+
# black takes care of line length
8+
E501,
9+
# black takes care of where to break lines
10+
W503,
11+
# black takes care of spaces within slicing (list[:])
12+
E203,
13+
# black takes care of spaces after commas
14+
E231,
15+
16+
##
17+
# Add extra configuration options in .meta.toml:
18+
# [flake8]
19+
# extra_lines = """
20+
# _your own configuration lines_
21+
# """
22+
##

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Generated from:
2+
# https://github.com/plone/meta/tree/2.x/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
version: 2
5+
updates:
6+
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
# Check for updates to GitHub Actions every week
11+
interval: "weekly"

.github/workflows/meta.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Generated from:
2+
# https://github.com/plone/meta/tree/2.x/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
name: Meta
5+
6+
on:
7+
push:
8+
workflow_dispatch:
9+
10+
##
11+
# To set environment variables for all jobs, add in .meta.toml:
12+
# [github]
13+
# env = """
14+
# debug: 1
15+
# image-name: 'org/image'
16+
# image-tag: 'latest'
17+
# """
18+
##
19+
20+
jobs:
21+
qa:
22+
uses: plone/meta/.github/workflows/qa.yml@2.x
23+
coverage:
24+
uses: plone/meta/.github/workflows/coverage.yml@2.x
25+
release_ready:
26+
uses: plone/meta/.github/workflows/release_ready.yml@2.x
27+
circular:
28+
uses: plone/meta/.github/workflows/circular.yml@2.x
29+
30+
##
31+
# To modify the list of default jobs being created add in .meta.toml:
32+
# [github]
33+
# jobs = [
34+
# "qa",
35+
# "coverage",
36+
# "dependencies",
37+
# "release_ready",
38+
# "circular",
39+
# ]
40+
##
41+
42+
##
43+
# To request that some OS level dependencies get installed
44+
# when running tests/coverage jobs, add in .meta.toml:
45+
# [github]
46+
# os_dependencies = "git libxml2 libxslt"
47+
##
48+
49+
50+
##
51+
# Specify additional jobs in .meta.toml:
52+
# [github]
53+
# extra_lines = """
54+
# another:
55+
# uses: org/repo/.github/workflows/file.yml@main
56+
# """
57+
##

.github/workflows/test-matrix.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Generated from:
2+
# https://github.com/plone/meta/tree/2.x/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
name: Tests
5+
6+
on:
7+
push:
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
strategy:
16+
# We want to see all failures:
17+
fail-fast: false
18+
matrix:
19+
os:
20+
- ["ubuntu", "ubuntu-latest"]
21+
config:
22+
# [Python version, visual name, tox env]
23+
- ["3.14", "6.2 on py3.14", "py314-plone62"]
24+
- ["3.10", "6.2 on py3.10", "py310-plone62"]
25+
- ["3.13", "6.1 on py3.13", "py313-plone61"]
26+
- ["3.10", "6.1 on py3.10", "py310-plone61"]
27+
- ["3.13", "6.0 on py3.13", "py313-plone60"]
28+
- ["3.10", "6.0 on py3.10", "py310-plone60"]
29+
30+
runs-on: ${{ matrix.os[1] }}
31+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
32+
name: ${{ matrix.config[1] }}
33+
steps:
34+
- uses: actions/checkout@v6
35+
with:
36+
persist-credentials: false
37+
- name: Install uv + caching
38+
uses: astral-sh/setup-uv@v8.0.0
39+
with:
40+
enable-cache: true
41+
cache-dependency-glob: |
42+
setup.*
43+
tox.ini
44+
pyproject.toml
45+
python-version: ${{ matrix.config[0] }}
46+
47+
##
48+
# Add extra configuration options in .meta.toml:
49+
# [github]
50+
# extra_lines_after_os_dependencies = """
51+
# _your own configuration lines_
52+
# """
53+
##
54+
- name: Initialize tox
55+
# the bash one-liner below does not work on Windows
56+
if: contains(matrix.os, 'ubuntu')
57+
run: |
58+
if [ `uvx tox list --no-desc -f init|wc -l` = 1 ]; then uvx --with tox-uv tox -e init;else true; fi
59+
- name: Test
60+
run: uvx --with tox-uv tox -e ${{ matrix.config[2] }}
61+
62+
63+
##
64+
# Add extra configuration options in .meta.toml:
65+
# [github]
66+
# extra_lines = """
67+
# _your own configuration lines_
68+
# """
69+
##

.gitignore

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,58 @@
1+
# Generated from:
2+
# https://github.com/plone/meta/tree/2.x/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
# python related
5+
*.egg-info
16
*.pyc
2-
Paste*
3-
*egg-info
4-
.eggs
5-
.*.sw[op]
7+
*.pyo
8+
9+
# translation related
10+
*.mo
11+
12+
# tools related
13+
build/
14+
.coverage
15+
.*project
16+
coverage.xml
17+
dist/
18+
docs/_build
19+
__pycache__/
20+
.tox
21+
.vscode/
22+
node_modules/
23+
forest.dot
24+
forest.json
25+
26+
# venv / buildout related
27+
bin/
28+
develop-eggs/
29+
eggs/
30+
.eggs/
31+
etc/
32+
.installed.cfg
33+
include/
34+
lib/
35+
lib64
36+
.mr.developer.cfg
37+
parts/
38+
pyvenv.cfg
39+
var/
40+
local.cfg
41+
42+
# mxdev
43+
/instance/
44+
/.make-sentinels/
45+
/*-mxdev.txt
46+
/reports/
47+
/sources/
48+
/venv/
49+
.installed.txt
50+
51+
52+
##
53+
# Add extra configuration options in .meta.toml:
54+
# [gitignore]
55+
# extra_lines = """
56+
# _your own configuration lines_
57+
# """
58+
##

.meta.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Generated from:
2+
# https://github.com/plone/meta/tree/2.x/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
[meta]
5+
template = "default"
6+
commit-id = "2.8.0"
7+
8+
[tox]
9+
test_matrix = {"6.2" = ["3.14", "3.12", "3.10"], "6.1" = ["3.13", "3.11", "3.10"], "6.0" = ["3.13", "3.10"]}

.pre-commit-config.yaml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# Generated from:
2+
# https://github.com/plone/meta/tree/2.x/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
ci:
5+
autofix_prs: false
6+
autoupdate_schedule: monthly
7+
8+
repos:
9+
- repo: https://github.com/asottile/pyupgrade
10+
rev: v3.21.2
11+
hooks:
12+
- id: pyupgrade
13+
args: [--py310-plus]
14+
- repo: https://github.com/pycqa/isort
15+
rev: 8.0.1
16+
hooks:
17+
- id: isort
18+
- repo: https://github.com/psf/black-pre-commit-mirror
19+
rev: 26.3.1
20+
hooks:
21+
- id: black
22+
- repo: https://github.com/collective/zpretty
23+
rev: 3.1.1
24+
hooks:
25+
- id: zpretty
26+
27+
##
28+
# Add extra configuration options in .meta.toml:
29+
# [pre_commit]
30+
# zpretty_extra_lines = """
31+
# _your own configuration lines_
32+
# """
33+
##
34+
- repo: https://github.com/PyCQA/flake8
35+
rev: 7.3.0
36+
hooks:
37+
- id: flake8
38+
39+
##
40+
# Add extra configuration options in .meta.toml:
41+
# [pre_commit]
42+
# flake8_extra_lines = """
43+
# _your own configuration lines_
44+
# """
45+
##
46+
- repo: https://github.com/codespell-project/codespell
47+
rev: v2.4.2
48+
hooks:
49+
- id: codespell
50+
additional_dependencies:
51+
- tomli
52+
53+
##
54+
# Add extra configuration options in .meta.toml:
55+
# [pre_commit]
56+
# codespell_extra_lines = """
57+
# _your own configuration lines_
58+
# """
59+
##
60+
- repo: https://github.com/mgedmin/check-manifest
61+
rev: "0.51"
62+
hooks:
63+
- id: check-manifest
64+
- repo: https://github.com/regebro/pyroma
65+
rev: "5.0.1"
66+
hooks:
67+
- id: pyroma
68+
- repo: https://github.com/mgedmin/check-python-versions
69+
rev: "0.24.0"
70+
hooks:
71+
- id: check-python-versions
72+
args: ['--only', 'setup.py,tox.ini']
73+
- repo: https://github.com/collective/i18ndude
74+
rev: "6.3.0"
75+
hooks:
76+
- id: i18ndude
77+
78+
79+
##
80+
# Add extra configuration options in .meta.toml:
81+
# [pre_commit]
82+
# i18ndude_extra_lines = """
83+
# _your own configuration lines_
84+
# """
85+
##
86+
87+
88+
##
89+
# Add extra configuration options in .meta.toml:
90+
# [pre_commit]
91+
# extra_lines = """
92+
# _your own configuration lines_
93+
# """
94+
##

0 commit comments

Comments
 (0)