-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
60 changed files
with
1,272 additions
and
1,058 deletions.
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 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,11 @@ | ||
[flake8] | ||
doctests = 1 | ||
ignore = | ||
# black takes care of line length | ||
E501, | ||
# black takes care of where to break lines | ||
W503, | ||
# black takes care of spaces within slicing (list[:]) | ||
E203, | ||
# black takes care of spaces after commas | ||
E231, |
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 |
---|---|---|
@@ -1,3 +1 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [jensens] | ||
github: [plone] |
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 |
---|---|---|
|
@@ -2,66 +2,29 @@ name: Code Analysis | |
on: | ||
push: | ||
|
||
jobs: | ||
black: | ||
name: Black | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout codebase | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run check | ||
uses: plone/[email protected] | ||
with: | ||
check: 'black' | ||
env: | ||
PYTHON_VERSION: "3.12" | ||
|
||
flake8: | ||
name: flake8 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout codebase | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run check | ||
uses: plone/[email protected] | ||
with: | ||
check: 'flake8' | ||
|
||
isort: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout codebase | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run check | ||
uses: plone/[email protected] | ||
with: | ||
check: 'isort' | ||
- name: Install hatch | ||
run: pipx install hatch | ||
|
||
pyroma: | ||
name: pyroma | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout codebase | ||
uses: actions/checkout@v4 | ||
- name: Generate Constraints file | ||
run: pipx run mxdev -c mx.ini | ||
|
||
- name: Run check | ||
uses: plone/[email protected] | ||
- uses: actions/setup-python@v5 | ||
with: | ||
check: 'pyroma' | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: 'pip' | ||
|
||
zpretty: | ||
name: zpretty | ||
runs-on: ubuntu-latest | ||
- name: "Install Environment" | ||
run: hatch env create | ||
|
||
steps: | ||
- name: Checkout codebase | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run check | ||
uses: plone/[email protected] | ||
with: | ||
check: 'zpretty' | ||
- name: "Run checks" | ||
run: hatch run lint |
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 |
---|---|---|
@@ -1,67 +1,32 @@ | ||
|
||
name: Build and test | ||
name: Tests | ||
|
||
on: [push] | ||
on: | ||
push: | ||
|
||
env: | ||
PYTHON_VERSION: "3.12" | ||
|
||
jobs: | ||
build: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: | ||
- 3.7 | ||
- 3.8 | ||
- 3.9 | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
plone: | ||
- "6.1-latest" | ||
- "6.0-latest" | ||
- "5.2-latest" | ||
exclude: | ||
- plone: "5.2-latest" | ||
python: 3.9 | ||
- plone: "5.2-latest" | ||
python: "3.10" | ||
- plone: "5.2-latest" | ||
python: "3.11" | ||
- plone: "5.2-latest" | ||
python: "3.12" | ||
- plone: "6.0-latest" | ||
python: 3.7 | ||
- plone: "6.0-latest" | ||
python: "3.12" | ||
- plone: "6.1-latest" | ||
python: 3.7 | ||
- plone: "6.1-latest" | ||
python: 3.8 | ||
- plone: "6.1-latest" | ||
python: 3.9 | ||
- plone: "6.1-latest" | ||
python: "3.10" | ||
- plone: "6.1-latest" | ||
python: "3.11" | ||
- plone: "6.1-latest" | ||
python: "3.12" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout codebase | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install hatch | ||
run: pipx install hatch | ||
|
||
- name: Generate Constraints file | ||
run: pipx run mxdev -c mx.ini | ||
|
||
- name: Setup Plone ${{ matrix.plone }} with Python ${{ matrix.python }} | ||
id: setup | ||
uses: plone/[email protected] | ||
with: | ||
python-version: ${{ matrix.python }} | ||
plone-version: ${{ matrix.plone }} | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: 'pip' | ||
|
||
# Install pas.plugins.authomatic with test extras | ||
- name: Install pas.plugins.authomatic | ||
run: | | ||
pip install ".[test]" | ||
- name: "Install Environment" | ||
run: hatch env create | ||
|
||
# test | ||
- name: Test Codebase | ||
run: | | ||
zope-testrunner --auto-color --auto-progress --test-path src | ||
- name: "Test Codebase" | ||
run: hatch run test |
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 |
---|---|---|
@@ -1,42 +1,18 @@ | ||
!src/pas | ||
.coverage* | ||
.installed.cfg | ||
.mr.developer.cfg | ||
.project | ||
.pydevproject | ||
.pytest_cache | ||
.ruff_cache | ||
.python-version | ||
.settings/ | ||
.vscode/ | ||
.venv | ||
*.egg-info | ||
*.log | ||
*.mo | ||
*.pyc | ||
*.swp | ||
bin/ | ||
buildout-cache/ | ||
develop-eggs/ | ||
devsrc/* | ||
dist | ||
docs/doctrees/ | ||
docs/html/ | ||
docs/make.bat | ||
docs/Makefile | ||
downloads | ||
eggs | ||
etc/ | ||
Gruntfile.js | ||
htmlcov/ | ||
include/ | ||
inituser | ||
lib/ | ||
local/ | ||
log.html | ||
node_modules/ | ||
output.xml | ||
package.json | ||
parts/ | ||
pip-selfcheck.json | ||
report.html | ||
selenium-screenshot-*.png | ||
temp_resources | ||
var/ | ||
constraints-mxdev.txt | ||
constraints.txt | ||
instance | ||
requirements-mxdev.txt | ||
requirements.lock | ||
requirements.txt |
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,7 @@ | ||
{ | ||
"flake8.cwd": "${workspaceFolder}", | ||
"flake8.args": ["--config=pyproject.toml"], | ||
"black-formatter.cwd": "${workspaceFolder}", | ||
"isort.args": ["--settings-path=${workspaceFolder}/pyproject.toml"], | ||
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python" | ||
} |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
Maintainer is [Jens Klein](https://github.com/jensens) | ||
# Maintainers | ||
|
||
* [Érico Andrei](https://github.com/ericof) | ||
* [Jens Klein](https://github.com/jensens) | ||
|
||
# Contributors | ||
Several people helped to make this package work see [GitHub](https://github.com/collective/pas.plugins.authomatic/graphs/contributors) for the whole list. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.