[Pki-devel] [PATCH 45/46] Run flake8 and pylint --py3k and fix violations

Christian Heimes cheimes at redhat.com
Fri Jan 15 13:06:00 UTC 2016


The first patch add flake8 tests and pylint --py3k to RPM build. The
second patch fixes a couple of flake8 violations that have accumulated
in the past month.

I'm still having a problem with sphinx autodocs. It can't build
documentation for pki.crypto. It looks like autodocs doesn't do relative
imports correctly and picks up pki/nss.py as nss.

SphinxWarning: /home/heimes/redhat/pki/base/common/python/pki.rst:39:
WARNING: autodoc: failed to import module u'pki.crypto'; the following
exception was raised:
Traceback (most recent call last):
  File
"/home/heimes/redhat/pki/.tox/docs/lib/python2.7/site-packages/sphinx/ext/autodoc.py",
line 385, in import_object
    __import__(self.modname)
  File
"/home/heimes/redhat/pki/.tox/docs/lib/python2.7/site-packages/pki/crypto.py",
line 26, in <module>
    import nss.nss as nss
ImportError: No module named nss


Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pki-cheimes-0045-Run-flake8-and-pylint-py3k-tests-during-RPM-build.patch
Type: text/x-patch
Size: 2258 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20160115/ffd545ad/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pki-cheimes-0046-Fix-flake8-PEP-8-violations.patch
Type: text/x-patch
Size: 17028 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20160115/ffd545ad/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20160115/ffd545ad/attachment.sig>


More information about the Pki-devel mailing list