From 6cce5d16bfdfb13927a8eb1ffb39996d8faec5bc Mon Sep 17 00:00:00 2001 From: Sasha Rahlin Date: Thu, 9 May 2024 19:37:02 -0500 Subject: [PATCH] more black --- docs/conf.py | 61 ++++++++++++++++++++++++++-------------------------- setup.py | 4 ++-- 2 files changed, 33 insertions(+), 32 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 74421a2..e66c6db 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -35,15 +35,17 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'sphinx.ext.mathjax', - 'sphinx.ext.ifconfig', - 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages', - 'sphinx.ext.napoleon'] +extensions = [ + "sphinx.ext.autodoc", + "sphinx.ext.doctest", + "sphinx.ext.todo", + "sphinx.ext.coverage", + "sphinx.ext.mathjax", + "sphinx.ext.ifconfig", + "sphinx.ext.viewcode", + "sphinx.ext.githubpages", + "sphinx.ext.napoleon", +] # Napoleon settings napoleon_use_rtype = False @@ -56,15 +58,15 @@ # 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" # General information about the project. -project = u'qpoint' -copyright = u'2017-2022, Alexandra Rahlin' -author = u'Alexandra Rahlin' +project = "qpoint" +copyright = "2017-2024, Alexandra Rahlin" +author = "Alexandra Rahlin" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -85,10 +87,10 @@ # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This patterns also effect to 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 = 'sphinx' +pygments_style = "sphinx" # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos = True @@ -99,7 +101,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'sphinxdoc' +html_theme = "sphinxdoc" # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the @@ -116,7 +118,7 @@ # -- Options for HTMLHelp output ------------------------------------------ # Output file base name for HTML help builder. -htmlhelp_basename = 'qpointdoc' +htmlhelp_basename = "qpointdoc" # -- Options for LaTeX output --------------------------------------------- @@ -125,15 +127,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', @@ -143,8 +142,7 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'qpoint.tex', u'qpoint Documentation', - u'Alexandra Rahlin', 'manual'), + (master_doc, "qpoint.tex", "qpoint Documentation", "Alexandra Rahlin", "manual"), ] @@ -152,10 +150,7 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'qpoint', u'qpoint Documentation', - [author], 1) -] +man_pages = [(master_doc, "qpoint", "qpoint Documentation", [author], 1)] # -- Options for Texinfo output ------------------------------------------- @@ -164,7 +159,13 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'qpoint', u'qpoint Documentation', - author, 'qpoint', 'A lightweight, quaternion-based library for telescope pointing.', - 'Miscellaneous'), + ( + master_doc, + "qpoint", + "qpoint Documentation", + author, + "qpoint", + "A lightweight, quaternion-based library for telescope pointing.", + "Miscellaneous", + ), ] diff --git a/setup.py b/setup.py index 27c59da..c1adb01 100644 --- a/setup.py +++ b/setup.py @@ -16,9 +16,9 @@ "src/sincos.c", ] -extra_args = ['-O3', '-Wall', '-std=c99', '-fPIC'] +extra_args = ["-O3", "-Wall", "-std=c99", "-fPIC"] -ext_qp = Extension('qpoint.libqpoint', src, extra_compile_args=extra_args) +ext_qp = Extension("qpoint.libqpoint", src, extra_compile_args=extra_args) # add openmp support if possible add_openmp_flags_if_available(ext_qp)