# HG changeset patch # User Etienne Ferriere <etienne.ferriere@xcg-consulting.fr> # Date 1567010011 -7200 # Wed Aug 28 18:33:31 2019 +0200 # Branch 11.0 # Node ID 4fd3d3f64d452ba3472e7ceda387567f6a39ef2c # Parent 98b350c58f31eed7e8b17ef20b061d7f9523e323 Executed "black". diff --git a/doc/autotodo.py b/doc/autotodo.py --- a/doc/autotodo.py +++ b/doc/autotodo.py @@ -64,8 +64,7 @@ "\t\t:language: python\n" "\t\t:lines: %s-%s\n" "\t\t:emphasize-lines: %s\n" - % - ( + % ( class_name, "-" * len(class_name), line, diff --git a/doc/conf.py b/doc/conf.py --- a/doc/conf.py +++ b/doc/conf.py @@ -60,7 +60,7 @@ # |version| and |release|, also used in various other places throughout the # built documents. # -with open(os.path.join('..', '__manifest__.py'), 'r') as f: +with open(os.path.join("..", "__manifest__.py"), "r") as f: read_data = f.read() d = ast.literal_eval(read_data) # The full version, including alpha/beta/rc tags. @@ -335,8 +335,8 @@ sphinxodoo_addons_path = [] addon_dirs = set( - os.path.dirname(path) - for path in c.get("odoo_scripts", "modules").split()) + os.path.dirname(path) for path in c.get("odoo_scripts", "modules").split() +) for line in addon_dirs: sphinxodoo_addons_path.append(os.path.join(superproject_path, line)) diff --git a/doc/manifest.py b/doc/manifest.py --- a/doc/manifest.py +++ b/doc/manifest.py @@ -24,14 +24,18 @@ def main(): - module = os.path.basename(os.path.dirname(os.path.dirname( - os.path.realpath(__file__)))) + module = os.path.basename( + os.path.dirname(os.path.dirname(os.path.realpath(__file__))) + ) d = load_information_from_description_file(module) - with open('manifest', 'w') as out: + with open("manifest", "w") as out: manifest_content = ( - d['description'] - if 'description' in d - else d['summary'] if 'summary' in d else '') + d["description"] + if "description" in d + else d["summary"] + if "summary" in d + else "" + ) out.write(manifest_content)