From bfce9ff8465365f0bbf434025479a71d20cea692 Mon Sep 17 00:00:00 2001 From: Yngve Mardal Moe Date: Fri, 19 Jul 2019 10:20:57 +0200 Subject: [PATCH] Ran black --- docs/conf.py | 59 +++++++++++++++++++++---------------- src/group_lasso/__init__.py | 4 ++- 2 files changed, 36 insertions(+), 27 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index f5fc1e8..02b0fd2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,14 +19,14 @@ # -- Project information ----------------------------------------------------- -project = 'Group Lasso' -copyright = '2019, Yngve Mardal Moe' -author = 'Yngve Mardal Moe' +project = "Group Lasso" +copyright = "2019, Yngve Mardal Moe" +author = "Yngve Mardal Moe" # The short X.Y version -version = '' +version = "" # The full version, including alpha/beta/rc tags -release = '0.1.4' +release = "0.1.4" # -- General configuration --------------------------------------------------- @@ -39,23 +39,23 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - 'sphinx.ext.autodoc', - 'sphinx.ext.mathjax', - 'sphinx.ext.viewcode', - 'sphinx.ext.napoleon', + "sphinx.ext.autodoc", + "sphinx.ext.mathjax", + "sphinx.ext.viewcode", + "sphinx.ext.napoleon", ] # Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] +templates_path = ["_templates"] # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # # source_suffix = ['.rst', '.md'] -source_suffix = '.rst' +source_suffix = ".rst" # The master toctree document. -master_doc = 'index' +master_doc = "index" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -67,7 +67,7 @@ # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] # The name of the Pygments (syntax highlighting) style to use. pygments_style = None @@ -90,7 +90,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +html_static_path = ["_static"] # Custom sidebar templates, must be a dictionary that maps document names # to template names. @@ -106,7 +106,7 @@ # -- Options for HTMLHelp output --------------------------------------------- # Output file base name for HTML help builder. -htmlhelp_basename = 'GroupLassodoc' +htmlhelp_basename = "GroupLassodoc" # -- Options for LaTeX output ------------------------------------------------ @@ -115,15 +115,12 @@ # The paper size ('letterpaper' or 'a4paper'). # # 'papersize': 'letterpaper', - # The font size ('10pt', '11pt' or '12pt'). # # 'pointsize': '10pt', - # Additional stuff for the LaTeX preamble. # # 'preamble': '', - # Latex figure (float) alignment # # 'figure_align': 'htbp', @@ -133,8 +130,13 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'GroupLasso.tex', 'Group Lasso Documentation', - 'Yngve Mardal Moe', 'manual'), + ( + master_doc, + "GroupLasso.tex", + "Group Lasso Documentation", + "Yngve Mardal Moe", + "manual", + ) ] @@ -143,8 +145,7 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'grouplasso', 'Group Lasso Documentation', - [author], 1) + (master_doc, "grouplasso", "Group Lasso Documentation", [author], 1) ] @@ -154,9 +155,15 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'GroupLasso', 'Group Lasso Documentation', - author, 'GroupLasso', 'One line description of project.', - 'Miscellaneous'), + ( + master_doc, + "GroupLasso", + "Group Lasso Documentation", + author, + "GroupLasso", + "One line description of project.", + "Miscellaneous", + ) ] @@ -175,7 +182,7 @@ # epub_uid = '' # A list of files that should not be packed into the epub file. -epub_exclude_files = ['search.html'] +epub_exclude_files = ["search.html"] # -- Extension configuration ------------------------------------------------- diff --git a/src/group_lasso/__init__.py b/src/group_lasso/__init__.py index 9ede5d9..c8d52d0 100644 --- a/src/group_lasso/__init__.py +++ b/src/group_lasso/__init__.py @@ -8,5 +8,7 @@ from group_lasso._group_lasso import ( - GroupLasso, LogisticGroupLasso, BaseGroupLasso + GroupLasso, + LogisticGroupLasso, + BaseGroupLasso, )