diff --git a/doc/autotodo.py b/doc/autotodo.py index 98b350c58f31eed7e8b17ef20b061d7f9523e323_ZG9jL2F1dG90b2RvLnB5..4fd3d3f64d452ba3472e7ceda387567f6a39ef2c_ZG9jL2F1dG90b2RvLnB5 100755 --- 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 index 98b350c58f31eed7e8b17ef20b061d7f9523e323_ZG9jL2NvbmYucHk=..4fd3d3f64d452ba3472e7ceda387567f6a39ef2c_ZG9jL2NvbmYucHk= 100644 --- 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 index 98b350c58f31eed7e8b17ef20b061d7f9523e323_ZG9jL21hbmlmZXN0LnB5..4fd3d3f64d452ba3472e7ceda387567f6a39ef2c_ZG9jL21hbmlmZXN0LnB5 100755 --- a/doc/manifest.py +++ b/doc/manifest.py @@ -24,6 +24,7 @@ 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) @@ -29,3 +30,3 @@ d = load_information_from_description_file(module) - with open('manifest', 'w') as out: + with open("manifest", "w") as out: manifest_content = ( @@ -31,7 +32,10 @@ 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)