forked from gborelli/collective.blueprint.usersandgroups
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
109 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Code Analysis | ||
on: | ||
push: | ||
|
||
jobs: | ||
black: | ||
name: Black | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout codebase | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run check | ||
uses: plone/code-analysis-action@v2 | ||
with: | ||
check: 'black' | ||
|
||
flake8: | ||
name: flake8 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout codebase | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run check | ||
uses: plone/code-analysis-action@v2 | ||
with: | ||
check: 'flake8' | ||
|
||
isort: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout codebase | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run check | ||
uses: plone/code-analysis-action@v2 | ||
with: | ||
check: 'isort' | ||
|
||
pyroma: | ||
name: pyroma | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout codebase | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run check | ||
uses: plone/code-analysis-action@v2 | ||
with: | ||
check: 'pyroma' | ||
|
||
zpretty: | ||
name: zpretty | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout codebase | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run check | ||
uses: plone/code-analysis-action@v2 | ||
with: | ||
check: 'zpretty' |
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,27 @@ | ||
[tool.black] | ||
target-version = ['py38'] | ||
include = '\.pyi?$' | ||
|
||
[tool.isort] | ||
profile = "black" | ||
force_alphabetical_sort = true | ||
force_single_line = true | ||
lines_after_imports = 2 | ||
line_length = 88 | ||
|
||
[tool.flakeheaven.plugins] | ||
# Disable some checks. | ||
# - E501 line too long | ||
# flake8 is already testing this, with max-line-length=100000 in .flake8, | ||
# so pycodestyle should not test it. | ||
# - W503 line break before binary operator | ||
# Outdated recommendation, see https://www.flake8rules.com/rules/W503.html | ||
mccabe = ["+*"] | ||
pycodestyle = ["+*", "-E501", "-W503"] | ||
pyflakes = ["+*"] | ||
pylint = ["+*"] | ||
|
||
[tool.plone-code-analysis] | ||
checkers = ["black", "flake8", "isort", "pyroma", "zpretty"] | ||
formatters = ["black", "isort", "zpretty"] | ||
paths = "setup.py src/" |
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,25 +1,26 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
i18n_domain="collective.blueprint.usersandgroups"> | ||
i18n_domain="collective.blueprint.usersandgroups" | ||
> | ||
|
||
<utility | ||
component=".blueprint.CreateUser" | ||
name="collective.blueprint.usersandgroups.createuser" | ||
/> | ||
name="collective.blueprint.usersandgroups.createuser" | ||
component=".blueprint.CreateUser" | ||
/> | ||
|
||
<utility | ||
component=".blueprint.UpdateUserProperties" | ||
name="collective.blueprint.usersandgroups.updateuserproperty" | ||
/> | ||
name="collective.blueprint.usersandgroups.updateuserproperty" | ||
component=".blueprint.UpdateUserProperties" | ||
/> | ||
|
||
<utility | ||
component=".blueprint.CreateGroup" | ||
name="collective.blueprint.usersandgroups.creategroup" | ||
/> | ||
name="collective.blueprint.usersandgroups.creategroup" | ||
component=".blueprint.CreateGroup" | ||
/> | ||
|
||
<utility | ||
component=".blueprint.UpdateGroupProperties" | ||
name="collective.blueprint.usersandgroups.updategroupproperty" | ||
/> | ||
name="collective.blueprint.usersandgroups.updategroupproperty" | ||
component=".blueprint.UpdateGroupProperties" | ||
/> | ||
|
||
</configure> |