Skip to content

Commit

Permalink
Upgrade plone/code-quality to 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Aug 21, 2023
1 parent 83f6cba commit 64d2407
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 37 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ PYBIN=${VENV_FOLDER}/bin/

# See https://github.com/plone/code-quality
# Our configuration is in pyproject.toml.
CODE_QUALITY_VERSION=2.0.0
CODE_QUALITY_VERSION=2.1.1
CURRENT_USER=$$(whoami)
USER_INFO=$$(id -u ${CURRENT_USER}):$$(id -g ${CURRENT_USER})
LINT=docker run --user="${USER_INFO}" --rm -v "$(PWD)":/github/workspace plone/code-quality:${CODE_QUALITY_VERSION} check
FORMAT=docker run --user="$(id -u $(whoami)):$(getent group $(whoami)|cut -d: -f3)" --rm -v "$(PWD)":/github/workspace plone/code-quality:${CODE_QUALITY_VERSION} format
LINT=docker run --rm -v "$(PWD)":/github/workspace plone/code-quality:${CODE_QUALITY_VERSION} check
FORMAT=docker run --rm -v "$(PWD)":/github/workspace plone/code-quality:${CODE_QUALITY_VERSION} format


all: build
Expand Down
30 changes: 2 additions & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,9 @@ target-version = ["py310"]
[tool.isort]
profile = "black"

[tool.flakeheaven]
format="grouped"
max_line_length=88
show_source=true
max-complexity=25

[tool.flakeheaven.plugins]
pycodestyle = ["+*"]
pyflakes = ["+*"]
"flake8-*" = ["+*"]

[tool.codespell]
ignore-words-list = "discreet,succeded"
skip = "*.po,"
##
# Add extra configuration options in .meta.toml:
# [pyproject]
# codespell_ignores = "foo,bar"
# codespell_skip = "*.po,*.map,package-lock.json"
##

[tool.plone-code-analysis]
checkers = ["black", "flake8", "isort", "pyroma", "zpretty"]
formatters = ["black", "isort", "zpretty"]
paths = "."
paths_pyroma = "."
paths_black = "."
paths_flake8 = "."
paths_isort = "."
# paths_pyroma = "."
paths_zpretty = "."
paths = "src"
paths_flake8 = "src"

2 changes: 1 addition & 1 deletion src/training/votable/profiles/default/browserlayer.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layers>
<layer interface="training.votable.interfaces.ITrainingVotableLayer"
name="training.votable"
Expand Down
2 changes: 1 addition & 1 deletion src/training/votable/profiles/default/catalog.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<object name="portal_catalog">
<!--<column value="my_meta_column"/>-->
</object>
2 changes: 1 addition & 1 deletion src/training/votable/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<version>1000</version>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion src/training/votable/profiles/default/rolemap.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<rolemap>
<permissions>
<!-- -*- extra stuff goes here -*- -->
Expand Down
2 changes: 1 addition & 1 deletion src/training/votable/profiles/testing/types/Document.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n"
meta_type="Dexterity FTI"
name="Document"
Expand Down
2 changes: 1 addition & 1 deletion src/training/votable/profiles/uninstall/browserlayer.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="utf-8"?>
<layers>
<layer name="training.votable"
remove="true"
Expand Down

0 comments on commit 64d2407

Please sign in to comment.