Commit 800b860f authored by Laurent Peuch's avatar Laurent Peuch
Browse files

chore(format-source): autopep8 the code

parent ec4a466e03db
......@@ -78,3 +78,83 @@
{"pattern": "test/test_ureports_text.py", "tool": "pyupgrade"}
{"pattern": "test/test_xmlutils.py", "tool": "pyupgrade"}
{"pattern": "test/utils.py", "tool": "pyupgrade"}
{"pattern": "logilab/common/cache.py", "tool": "autopep8"}
{"pattern": "logilab/common/changelog.py", "tool": "autopep8"}
{"pattern": "logilab/common/clcommands.py", "tool": "autopep8"}
{"pattern": "logilab/common/compat.py", "tool": "autopep8"}
{"pattern": "logilab/common/configuration.py", "tool": "autopep8"}
{"pattern": "logilab/common/daemon.py", "tool": "autopep8"}
{"pattern": "logilab/common/date.py", "tool": "autopep8"}
{"pattern": "logilab/common/debugger.py", "tool": "autopep8"}
{"pattern": "logilab/common/decorators.py", "tool": "autopep8"}
{"pattern": "logilab/common/deprecation.py", "tool": "autopep8"}
{"pattern": "logilab/common/fileutils.py", "tool": "autopep8"}
{"pattern": "logilab/common/graph.py", "tool": "autopep8"}
{"pattern": "logilab/common/interface.py", "tool": "autopep8"}
{"pattern": "logilab/common/logging_ext.py", "tool": "autopep8"}
{"pattern": "logilab/common/modutils.py", "tool": "autopep8"}
{"pattern": "logilab/common/optik_ext.py", "tool": "autopep8"}
{"pattern": "logilab/common/optparser.py", "tool": "autopep8"}
{"pattern": "logilab/common/proc.py", "tool": "autopep8"}
{"pattern": "logilab/common/pytest.py", "tool": "autopep8"}
{"pattern": "logilab/common/registry.py", "tool": "autopep8"}
{"pattern": "logilab/common/shellutils.py", "tool": "autopep8"}
{"pattern": "logilab/common/sphinx_ext.py", "tool": "autopep8"}
{"pattern": "logilab/common/sphinxutils.py", "tool": "autopep8"}
{"pattern": "logilab/common/table.py", "tool": "autopep8"}
{"pattern": "logilab/common/tasksqueue.py", "tool": "autopep8"}
{"pattern": "logilab/common/testlib.py", "tool": "autopep8"}
{"pattern": "logilab/common/textutils.py", "tool": "autopep8"}
{"pattern": "logilab/common/tree.py", "tool": "autopep8"}
{"pattern": "logilab/common/types.py", "tool": "autopep8"}
{"pattern": "logilab/common/umessage.py", "tool": "autopep8"}
{"pattern": "logilab/common/ureports/__init__.py", "tool": "autopep8"}
{"pattern": "logilab/common/ureports/docbook_writer.py", "tool": "autopep8"}
{"pattern": "logilab/common/ureports/html_writer.py", "tool": "autopep8"}
{"pattern": "logilab/common/ureports/nodes.py", "tool": "autopep8"}
{"pattern": "logilab/common/ureports/text_writer.py", "tool": "autopep8"}
{"pattern": "logilab/common/urllib2ext.py", "tool": "autopep8"}
{"pattern": "logilab/common/vcgutils.py", "tool": "autopep8"}
{"pattern": "logilab/common/visitor.py", "tool": "autopep8"}
{"pattern": "logilab/common/xmlutils.py", "tool": "autopep8"}
{"pattern": "setup.py", "tool": "autopep8"}
{"pattern": "test/data/__pkginfo__.py", "tool": "autopep8"}
{"pattern": "test/data/deprecation.py", "tool": "autopep8"}
{"pattern": "test/data/find_test/__init__.py", "tool": "autopep8"}
{"pattern": "test/data/find_test/module.py", "tool": "autopep8"}
{"pattern": "test/data/find_test/module2.py", "tool": "autopep8"}
{"pattern": "test/data/find_test/noendingnewline.py", "tool": "autopep8"}
{"pattern": "test/data/find_test/nonregr.py", "tool": "autopep8"}
{"pattern": "test/data/find_test/sub/momo.py", "tool": "autopep8"}
{"pattern": "test/data/lmfp/__init__.py", "tool": "autopep8"}
{"pattern": "test/data/lmfp/foo.py", "tool": "autopep8"}
{"pattern": "test/data/module.py", "tool": "autopep8"}
{"pattern": "test/data/module2.py", "tool": "autopep8"}
{"pattern": "test/data/noendingnewline.py", "tool": "autopep8"}
{"pattern": "test/data/nonregr.py", "tool": "autopep8"}
{"pattern": "test/data/regobjects.py", "tool": "autopep8"}
{"pattern": "test/data/regobjects2.py", "tool": "autopep8"}
{"pattern": "test/data/sub/momo.py", "tool": "autopep8"}
{"pattern": "test/test_cache.py", "tool": "autopep8"}
{"pattern": "test/test_changelog.py", "tool": "autopep8"}
{"pattern": "test/test_configuration.py", "tool": "autopep8"}
{"pattern": "test/test_date.py", "tool": "autopep8"}
{"pattern": "test/test_decorators.py", "tool": "autopep8"}
{"pattern": "test/test_deprecation.py", "tool": "autopep8"}
{"pattern": "test/test_fileutils.py", "tool": "autopep8"}
{"pattern": "test/test_graph.py", "tool": "autopep8"}
{"pattern": "test/test_interface.py", "tool": "autopep8"}
{"pattern": "test/test_modutils.py", "tool": "autopep8"}
{"pattern": "test/test_pytest.py", "tool": "autopep8"}
{"pattern": "test/test_registry.py", "tool": "autopep8"}
{"pattern": "test/test_shellutils.py", "tool": "autopep8"}
{"pattern": "test/test_table.py", "tool": "autopep8"}
{"pattern": "test/test_taskqueue.py", "tool": "autopep8"}
{"pattern": "test/test_testlib.py", "tool": "autopep8"}
{"pattern": "test/test_textutils.py", "tool": "autopep8"}
{"pattern": "test/test_tree.py", "tool": "autopep8"}
{"pattern": "test/test_umessage.py", "tool": "autopep8"}
{"pattern": "test/test_ureports_html.py", "tool": "autopep8"}
{"pattern": "test/test_ureports_text.py", "tool": "autopep8"}
{"pattern": "test/test_xmlutils.py", "tool": "autopep8"}
{"pattern": "test/utils.py", "tool": "autopep8"}
......@@ -77,7 +77,6 @@ Exceptions
"""
__docformat__ = "restructuredtext en"
import sys
......
......@@ -124,7 +124,8 @@ class DocbookWriter(HTMLWriter):
def visit_link(self, layout):
"""display links (using <ulink>)"""
self.write(
'<ulink url="{}"{}>{}</ulink>'.format(layout.url, self.handle_attrs(layout), layout.label)
'<ulink url="{}"{}>{}</ulink>'.format(layout.url,
self.handle_attrs(layout), layout.label)
)
def visit_verbatimtext(self, layout):
......
......@@ -16,6 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License along
# with logilab-common. If not, see <http://www.gnu.org/licenses/>.
"""logilab.common packaging information"""
from os.path import join
__docformat__ = "restructuredtext en"
import sys
import os
......@@ -36,8 +37,6 @@ author = "Logilab"
author_email = "contact@logilab.fr"
from os.path import join
scripts = [join("bin", "logilab-pytest")]
include_dirs = [join("test", "data")]
......
......@@ -280,8 +280,8 @@ class get_modules_tc(ModutilsTestCase):
self.assertSetEqual(
set(modules),
{
".".join(mod_path + (mod,))
for mod in ("module", "module2", "noendingnewline", "nonregr")
".".join(mod_path + (mod,))
for mod in ("module", "module2", "noendingnewline", "nonregr")
},
)
......
......@@ -35,29 +35,29 @@ class FindTC(TestCase):
self.assertSetEqual(
files,
{
join(DATA_DIR, f)
for f in [
"__init__.py",
"module.py",
"module2.py",
"noendingnewline.py",
"nonregr.py",
join("sub", "momo.py"),
]
join(DATA_DIR, f)
for f in [
"__init__.py",
"module.py",
"module2.py",
"noendingnewline.py",
"nonregr.py",
join("sub", "momo.py"),
]
},
)
files = set(find(DATA_DIR, (".py",), blacklist=("sub",)))
self.assertSetEqual(
files,
{
join(DATA_DIR, f)
for f in [
"__init__.py",
"module.py",
"module2.py",
"noendingnewline.py",
"nonregr.py",
]
join(DATA_DIR, f)
for f in [
"__init__.py",
"module.py",
"module2.py",
"noendingnewline.py",
"nonregr.py",
]
},
)
......@@ -66,18 +66,18 @@ class FindTC(TestCase):
self.assertSetEqual(
files,
{
join(DATA_DIR, f)
for f in [
"foo.txt",
"newlines.txt",
"normal_file.txt",
"test.ini",
"test1.msg",
"test2.msg",
"spam.txt",
join("sub", "doc.txt"),
"write_protected_file.txt",
]
join(DATA_DIR, f)
for f in [
"foo.txt",
"newlines.txt",
"normal_file.txt",
"test.ini",
"test1.msg",
"test2.msg",
"spam.txt",
join("sub", "doc.txt"),
"write_protected_file.txt",
]
},
)
......@@ -86,15 +86,15 @@ class FindTC(TestCase):
self.assertSetEqual(
files,
{
join(DATA_DIR, f)
for f in [
"__init__.py",
"module.py",
"module2.py",
"noendingnewline.py",
"nonregr.py",
join("sub", "momo.py"),
]
join(DATA_DIR, f)
for f in [
"__init__.py",
"module.py",
"module2.py",
"noendingnewline.py",
"nonregr.py",
join("sub", "momo.py"),
]
},
)
files = set(globfind(DATA_DIR, "mo*.py"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment