From 68606da2c599d981e6a25f8a1571e9e9edfa0b3c Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Sun, 3 May 2020 19:19:27 +0200
Subject: [PATCH] [Reformat] black

---
 aleksis/core/admin.py |  2 +-
 docs/conf.py          | 73 ++++++++++++++++++++++---------------------
 manage.py             |  4 +--
 3 files changed, 40 insertions(+), 39 deletions(-)

diff --git a/aleksis/core/admin.py b/aleksis/core/admin.py
index b8fc1bca8..e35910f59 100644
--- a/aleksis/core/admin.py
+++ b/aleksis/core/admin.py
@@ -1,4 +1,4 @@
-#noqa
+# noqa
 
 from django.contrib import admin
 
diff --git a/docs/conf.py b/docs/conf.py
index 24652c538..6d5096b20 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -15,22 +15,22 @@
 import django
 import os
 import sys
-sys.path.insert(0, os.path.abspath('..'))
-os.environ['DJANGO_SETTINGS_MODULE'] = 'aleksis.core.settings'
-os.environ['LOCAL_SETTINGS_FILE'] = os.path.abspath(
-    os.path.join('..', 'local.cfg'))
+
+sys.path.insert(0, os.path.abspath(".."))
+os.environ["DJANGO_SETTINGS_MODULE"] = "aleksis.core.settings"
+os.environ["LOCAL_SETTINGS_FILE"] = os.path.abspath(os.path.join("..", "local.cfg"))
 django.setup()
 
 # -- Project information -----------------------------------------------------
 
-project = 'AlekSIS'
-copyright = '2019, 2020, AlekSIS team'
-author = 'AlekSIS team'
+project = "AlekSIS"
+copyright = "2019, 2020, AlekSIS team"
+author = "AlekSIS team"
 
 # The short X.Y version
-version = '2.0'
+version = "2.0"
 # The full version, including alpha/beta/rc tags
-release = '2.0a1'
+release = "2.0a1"
 
 
 # -- General configuration ---------------------------------------------------
@@ -43,24 +43,24 @@ release = '2.0a1'
 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
 # ones.
 extensions = [
-    'sphinx.ext.autodoc',
-    'sphinxcontrib_django',
-    'sphinx_autodoc_typehints',
-    'sphinx.ext.intersphinx',
-    'sphinx.ext.viewcode',
+    "sphinx.ext.autodoc",
+    "sphinxcontrib_django",
+    "sphinx_autodoc_typehints",
+    "sphinx.ext.intersphinx",
+    "sphinx.ext.viewcode",
 ]
 
 # 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.
@@ -72,7 +72,7 @@ language = None
 # 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
@@ -83,7 +83,7 @@ pygments_style = None
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
 #
-html_theme = 'alabaster'
+html_theme = "alabaster"
 
 # 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
@@ -94,7 +94,7 @@ html_theme = 'alabaster'
 # 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.
@@ -110,7 +110,7 @@ html_static_path = ['_static']
 # -- Options for HTMLHelp output ---------------------------------------------
 
 # Output file base name for HTML help builder.
-htmlhelp_basename = 'AlekSISdoc'
+htmlhelp_basename = "AlekSISdoc"
 
 
 # -- Options for LaTeX output ------------------------------------------------
@@ -119,15 +119,12 @@ latex_elements = {
     # 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',
@@ -137,8 +134,7 @@ latex_elements = {
 # (source start file, target name, title,
 #  author, documentclass [howto, manual, or own class]).
 latex_documents = [
-    (master_doc, 'AlekSIS.tex', 'AlekSIS Documentation',
-     'AlekSIS team', 'manual'),
+    (master_doc, "AlekSIS.tex", "AlekSIS Documentation", "AlekSIS team", "manual"),
 ]
 
 
@@ -146,10 +142,7 @@ latex_documents = [
 
 # One entry per manual page. List of tuples
 # (source start file, name, description, authors, manual section).
-man_pages = [
-    (master_doc, 'aleksis', 'AlekSIS Documentation',
-     [author], 1)
-]
+man_pages = [(master_doc, "aleksis", "AlekSIS Documentation", [author], 1)]
 
 
 # -- Options for Texinfo output ----------------------------------------------
@@ -158,9 +151,15 @@ man_pages = [
 # (source start file, target name, title, author,
 #  dir menu entry, description, category)
 texinfo_documents = [
-    (master_doc, 'AlekSIS', 'AlekSIS Documentation',
-     author, 'AlekSIS', 'One line description of project.',
-     'Miscellaneous'),
+    (
+        master_doc,
+        "AlekSIS",
+        "AlekSIS Documentation",
+        author,
+        "AlekSIS",
+        "One line description of project.",
+        "Miscellaneous",
+    ),
 ]
 
 
@@ -179,7 +178,7 @@ epub_title = project
 # 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 -------------------------------------------------
@@ -187,5 +186,7 @@ epub_exclude_files = ['search.html']
 # -- Options for intersphinx extension ---------------------------------------
 
 # Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'https://docs.python.org/': None,
-                       'https://docs.djangoproject.com/en/stable': 'https://docs.djangoproject.com/en/stable/_objects'}
+intersphinx_mapping = {
+    "https://docs.python.org/": None,
+    "https://docs.djangoproject.com/en/stable": "https://docs.djangoproject.com/en/stable/_objects",
+}
diff --git a/manage.py b/manage.py
index 80c8e8118..023e9fd47 100755
--- a/manage.py
+++ b/manage.py
@@ -2,8 +2,8 @@
 import os
 import sys
 
-if __name__ == '__main__':
-    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'aleksis.core.settings')
+if __name__ == "__main__":
+    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "aleksis.core.settings")
     try:
         from django.core.management import execute_from_command_line
     except ImportError as exc:
-- 
GitLab