Currently tox ignores D204, D209 and D301:
D204: 1 blank line required after class docstring.
D209: Multi-line docstring closing quotes should be on a separate line.
D301: Use r""" if any backslashes in a docstring.
This change makes keystonemiddleware docstrings compliant with D204.
D209 and D301 is already passing, so this commit also enables them.
Change-Id: I11e02ef5af7fc793f1a2438e091bbfb18618a7f5
Currently tox ignores D400:
D400: First line should end with a period.
This change makes keystonemiddleware docstrings compliant with D400.
Change-Id: Icff2b744d72ae74492cfc6515b91f393fa2b50bf
This patch removes the bandit.yaml and just uses the defaults. As
such there are a few flagged issues that needed correcting.
The hits are now marked with "# nosec" so that they'll be ignored
since the hits were not security-related.
Co-Authored-By: Brant Knudson <bknudson@us.ibm.com>
Co-Authored-By: Eric Brown <browne@vmware.com>
Change-Id: Ib253a4a21156b6606c356ade46c72c6ace01a1af
This allows the echo WSGI app itself to be consumed directly by external
users (such as in a real deployment with Apache httpd), rather than
being run by wsgiref.
This also corrects the position of the docstring, which described
echo_app (a WSGI app), not EchoService (which served the app).
Change-Id: Ic3c69ad8bb08e4d45f5e2b8114b09ae10770161a
Move Keystonemiddleware's Echo service out of keystonemiddleware.auth_token and
into its own module.
Change-Id: I9e557582e8361d6c2aa6e73a357b0d6c9c88ea4e
Closes-Bug: 1433251