diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f9a04d5..bdefa2f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/collective/zpretty @@ -33,7 +33,7 @@ repos: # """ ## - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 diff --git a/Products/PortalTransforms/cache.py b/Products/PortalTransforms/cache.py index 1d54f8d..47ca03d 100644 --- a/Products/PortalTransforms/cache.py +++ b/Products/PortalTransforms/cache.py @@ -1,5 +1,6 @@ """Cache """ + from Acquisition import aq_base from time import time diff --git a/Products/PortalTransforms/setuphandlers.py b/Products/PortalTransforms/setuphandlers.py index 02ab700..32c6980 100644 --- a/Products/PortalTransforms/setuphandlers.py +++ b/Products/PortalTransforms/setuphandlers.py @@ -1,6 +1,7 @@ """ PortalTransforms setup handlers. """ + from io import StringIO as NativeStringIO from Products.CMFCore.utils import getToolByName diff --git a/Products/PortalTransforms/transforms/lynx_dump.py b/Products/PortalTransforms/transforms/lynx_dump.py index 27ddcc3..78f0a2d 100644 --- a/Products/PortalTransforms/transforms/lynx_dump.py +++ b/Products/PortalTransforms/transforms/lynx_dump.py @@ -1,6 +1,7 @@ """ Uses lynx -dump """ + from Products.PortalTransforms.interfaces import ITransform from Products.PortalTransforms.libtransforms.commandtransform import popentransform from zope.interface import implementer diff --git a/Products/PortalTransforms/transforms/pdf_to_html.py b/Products/PortalTransforms/transforms/pdf_to_html.py index c149176..6325001 100644 --- a/Products/PortalTransforms/transforms/pdf_to_html.py +++ b/Products/PortalTransforms/transforms/pdf_to_html.py @@ -2,6 +2,7 @@ Uses the http://sf.net/projects/pdftohtml bin to do its handy work """ + from Products.PortalTransforms.interfaces import ITransform from Products.PortalTransforms.libtransforms.commandtransform import commandtransform from Products.PortalTransforms.libtransforms.utils import bodyfinder diff --git a/Products/PortalTransforms/transforms/rtf_to_xml.py b/Products/PortalTransforms/transforms/rtf_to_xml.py index dc1b134..4f89dff 100644 --- a/Products/PortalTransforms/transforms/rtf_to_xml.py +++ b/Products/PortalTransforms/transforms/rtf_to_xml.py @@ -2,6 +2,7 @@ Uses the http://sf.net/projects/rtf2xml bin to do its handy work """ + from Products.PortalTransforms.interfaces import ITransform from Products.PortalTransforms.libtransforms.commandtransform import commandtransform from Products.PortalTransforms.libtransforms.utils import sansext diff --git a/Products/PortalTransforms/unsafe_transforms/build_transforms.py b/Products/PortalTransforms/unsafe_transforms/build_transforms.py index bf6ad5b..a8a2876 100644 --- a/Products/PortalTransforms/unsafe_transforms/build_transforms.py +++ b/Products/PortalTransforms/unsafe_transforms/build_transforms.py @@ -1,6 +1,7 @@ """try to build some useful transformations with the command and xml transforms and the available binaries """ + from command import ExternalCommandTransform from Products.PortalTransforms.libtransforms.utils import bin_search from Products.PortalTransforms.libtransforms.utils import MissingBinary diff --git a/Products/PortalTransforms/utils.py b/Products/PortalTransforms/utils.py index ef3695e..c0d3c8a 100644 --- a/Products/PortalTransforms/utils.py +++ b/Products/PortalTransforms/utils.py @@ -1,5 +1,6 @@ """some common utilities """ + # directory where template for the ZMI are located import logging import os.path