Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

Commit 29f8a9c

Browse files
authored
Merge pull request #234 from eea/develop
Prepare Plone6 support
2 parents bb85f41 + b50d93b commit 29f8a9c

284 files changed

Lines changed: 18268 additions & 2246 deletions

File tree

Some content is hidden

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

.eslintrc.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
extends: ["eslint:recommended", "prettier"],
3+
root: true,
4+
env: {
5+
es6: "true",
6+
browser: true,
7+
node: true,
8+
jest: true,
9+
},
10+
parser: "@babel/eslint-parser",
11+
ignorePatterns: ["dist/", "docs/", "node_modules/"],
12+
rules: {
13+
"no-debugger": 1,
14+
"no-duplicate-imports": 1,
15+
// Do keep due avoid unintended consequences.
16+
"no-alert": 0,
17+
"no-control-regex": 0,
18+
"no-self-assign": 0,
19+
"no-useless-escape": 0,
20+
},
21+
globals: {},
22+
};

.github/workflows/black.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Black
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
python-version: [3.8]
10+
11+
steps:
12+
# git checkout
13+
- uses: actions/checkout@v2
14+
15+
# python setup
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
21+
# install black
22+
- name: install black
23+
run: pip install black
24+
25+
# run black
26+
- name: run black
27+
run: black eea/ --check --diff

.github/workflows/docker.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Run Tests with Docker
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: true
8+
matrix:
9+
plone: ["5.2.8"]
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
name: Testing on Plone ${{ matrix.plone }}
14+
id: setup
15+
with:
16+
plone-version: ${{ matrix.plone }}
17+
18+
- name: pyflakes
19+
run: |
20+
docker run -i --rm -v $(pwd)/eea:/code eeacms/pyflakes
21+
22+
- name: jslint
23+
run: |
24+
docker run -i --rm -v $(pwd)/eea:/code eeacms/jslint4java
25+
26+
- name: zptlint
27+
run: |
28+
docker run -i --rm -v $(pwd)/eea:/code eeacms/zptlint
29+
30+
- name: i18n
31+
run: |
32+
docker run -i --rm -v $(pwd)/eea:/code eeacms/i18ndude
33+
34+
- name: tests
35+
run: |
36+
docker run -i --rm -v $(pwd):/app/${{ github.event.repository.name }} -e DEVELOP="/app/${{ github.event.repository.name }}" -e ADDONS="/app/${{ github.event.repository.name }}[test]" plone/plone-backend:${{ matrix.plone }} bin/zope-testrunner --auto-color --auto-progress --test-path /app/${{ github.event.repository.name }}

.github/workflows/flake8.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Flake 8
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
python-version: [3.8]
10+
11+
steps:
12+
# git checkout
13+
- uses: actions/checkout@v2
14+
15+
# python setup
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
21+
# install flake8
22+
- name: install flake8
23+
run: pip install flake8
24+
25+
# run black
26+
- name: run flake8
27+
run: flake8 --ignore=E203,W503,C901 eea/ setup.py

.github/workflows/pyroma.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Pyroma
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
python-version: [3.8]
10+
11+
steps:
12+
# git checkout
13+
- uses: actions/checkout@v2
14+
15+
# python setup
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
21+
# install pyroma
22+
- name: install pyroma
23+
run: pip install pyroma
24+
25+
# run pyroma
26+
- name: run pyroma
27+
run: pyroma -n 10 -d .

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Tests
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
python: [ "3.8" ]
10+
plone: ["5.2.8"]
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Setup Plone ${{ matrix.plone }} with Python ${{ matrix.python }}
16+
id: setup
17+
uses: plone/setup-plone@v1.1.0
18+
with:
19+
python-version: ${{ matrix.python }}
20+
plone-version: ${{ matrix.plone }}
21+
22+
- name: Install
23+
run: |
24+
pip install -e ".[test]"
25+
26+
- name: test
27+
run: |
28+
zope-testrunner --auto-color --auto-progress --test-path .

.github/workflows/zpretty.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: zpretty
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
python-version: [3.8]
10+
11+
steps:
12+
# git checkout
13+
- uses: actions/checkout@v2
14+
15+
# python setup
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
21+
# install zpretty
22+
- name: install zpretty
23+
run: pip install zpretty
24+
25+
# run zpretty
26+
- name: run zpretty
27+
run: find eea/ -name *.zcml | xargs zpretty -i
28+
29+
# run git diff
30+
- name: run git diff
31+
run: git diff --exit-code

.gitignore

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,49 @@
1+
*.egg
12
*.egg-info
2-
*.pyc
3-
*.pyo
3+
*.graffle
4+
*.kate-swp
45
*.mo
6+
*.py?
7+
*.pyc
8+
*~
9+
._*
10+
.idea
511
*.swp
12+
.DS_Store
13+
.coverage
14+
.installed.cfg
15+
.mr.developer.cfg
16+
.Python
17+
inituser
18+
bin/
19+
buildout-cache/
20+
build/
21+
collective/easyform/tests/*.tar.gz
22+
develop-eggs/
623
dist
7-
.project
8-
.pydevproject
9-
.idea
24+
docs/Makefile
25+
docs/doctrees
26+
docs/html
27+
docs/make.bat
28+
etc/
29+
extras/
30+
htmlcov/
31+
include/
32+
/lib*
33+
local/
34+
parts/
1035
pip-selfcheck.json
11-
searchindex.js
12-
search.html
36+
share/
37+
var/
38+
pyvenv.cfg
39+
node_modules/
40+
.env
41+
42+
.python-version
43+
annotate.txt
44+
venv/
45+
.tox/
46+
reports/
47+
.coverage*
48+
local.cfg
49+
src-mrd

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist/
2+
docs/
3+
node_modules/
4+
stats.json

.prettierrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"tabWidth": 4,
3+
"quoteProps": "consistent",
4+
"printWidth": 89
5+
}

0 commit comments

Comments
 (0)