[Pkg-bitcoin-commits] [python-quamash] 228/269: Make new pep8 happy

Jonas Smedegaard dr at jones.dk
Fri Nov 24 11:26:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository python-quamash.

commit 2d32ab6d03df1e36b017bbd84acd9d94083eb0a9
Author: Mark Harviston <mark.harviston at gmail.com>
Date:   Mon Feb 16 22:23:51 2015 -0800

    Make new pep8 happy
    
    A couple of new checks were added to PEP8.
    Update configuration.
    New ignores
    E402 -- this would seem to disallow __<whatever>__ type header
    variables and such
    E704 -- disabled by default, but since we have a custom ignore=... line,
    the default ignores are not used.
    
    Changes:
    x = lambda(...): ...
    ->
    def x(...): ...
    
    also need to add one space above the def
---
 quamash/__init__.py | 3 ++-
 tox.ini             | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/quamash/__init__.py b/quamash/__init__.py
index 670379c..cf0dca3 100644
--- a/quamash/__init__.py
+++ b/quamash/__init__.py
@@ -279,7 +279,8 @@ class QEventLoop(_baseclass):
 		"""Run until Future is complete."""
 		self._logger.debug('Running {} until complete'.format(future))
 		future = asyncio.async(future, loop=self)
-		stop = lambda *args: self.stop()
+
+		def stop(*args): self.stop()  # noqa
 		future.add_done_callback(stop)
 		try:
 			self.run_forever()
diff --git a/tox.ini b/tox.ini
index 4b44c8c..1ae64c7 100644
--- a/tox.ini
+++ b/tox.ini
@@ -46,5 +46,5 @@ commands=py.test --cov quamash
 
 [flake8]
 max-complexity=15
-ignore=D1,W191,E501
+ignore=D1,W191,E501,E402,E704
 exclude=build,.git,__pycache__,wheelhouse,htmlcov,dist,.cache,*.egg-info,appveyor

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/python-quamash.git



More information about the Pkg-bitcoin-commits mailing list