Skip to content

Commit

Permalink
more black
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed May 10, 2024
1 parent dbe6f06 commit 6cce5d1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 32 deletions.
61 changes: 31 additions & 30 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 ---------------------------------------------
Expand All @@ -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',
Expand All @@ -143,19 +142,15 @@
# (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"),
]


# -- Options for manual page output ---------------------------------------

# 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 -------------------------------------------
Expand All @@ -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",
),
]
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6cce5d1

Please sign in to comment.