From 3e102cdad35bb27bfd4cd5b17ff4781ca1242aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregor=20Jer=C5=A1e?= Date: Wed, 6 Mar 2024 09:43:07 +0100 Subject: [PATCH] Remove unused imports --- docs/conf.py | 74 ++++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 1e1e35432..a3aaf742b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,14 +1,10 @@ # -*- coding: utf-8 -*- """Sphinx configuration file.""" -import imp -import sys import os -import shlex import django from django.conf import settings - base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) # Manual setup is required for standalone Django usage @@ -16,46 +12,46 @@ # using Tox, it can't use the 'test.settings' Django settings module. settings.configure( INSTALLED_APPS=( - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'resolwe.observers', - 'resolwe.permissions', - 'resolwe.flow', - 'resolwe.storage', - 'resolwe_bio', + "django.contrib.auth", + "django.contrib.contenttypes", + "resolwe.observers", + "resolwe.permissions", + "resolwe.flow", + "resolwe.storage", + "resolwe_bio", ), ) django.setup() # Get package metadata from 'resolwe_bio/__about__.py' file about = {} -with open(os.path.join(base_dir, 'resolwe_bio', '__about__.py')) as f: +with open(os.path.join(base_dir, "resolwe_bio", "__about__.py")) as f: exec(f.read(), about) # -- General configuration ------------------------------------------------ # The extension modules to enable. extensions = [ - 'sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.intersphinx', - 'sphinx.ext.coverage', - 'sphinx.ext.viewcode', - 'resolwe.flow.utils.docs.autoprocess' + "sphinx.ext.autodoc", + "sphinx.ext.doctest", + "sphinx.ext.intersphinx", + "sphinx.ext.coverage", + "sphinx.ext.viewcode", + "resolwe.flow.utils.docs.autoprocess", ] # The suffix(es) of source filenames. -source_suffix = '.rst' +source_suffix = ".rst" # The master toctree document. -master_doc = 'index' +master_doc = "index" # General information about the project. -project = about['__title__'] -version = about['__version__'] +project = about["__title__"] +version = about["__version__"] release = version -author = about['__author__'] -copyright = about['__copyright__'] +author = about["__author__"] +copyright = about["__copyright__"] # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -66,39 +62,43 @@ # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. -exclude_patterns = ['_build'] +exclude_patterns = ["_build"] # 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 = False # Parent directory of all process definitions: -autoprocess_process_dir = os.path.join(base_dir, 'resolwe_bio', 'processes') +autoprocess_process_dir = os.path.join(base_dir, "resolwe_bio", "processes") # Base of the url to process source code: -autoprocess_source_base_url = 'https://github.com/genialis/resolwe-bio/blob/master/resolwe_bio/processes/' +autoprocess_source_base_url = ( + "https://github.com/genialis/resolwe-bio/blob/master/resolwe_bio/processes/" +) # Process definitions url -autoprocess_definitions_uri = 'catalog-definitions.html' +autoprocess_definitions_uri = "catalog-definitions.html" # -- Options for HTML output ---------------------------------------------- # The theme to use for HTML and HTML Help pages. -html_theme = 'sphinx_rtd_theme' +html_theme = "sphinx_rtd_theme" -templates_path = ['_templates'] -html_static_path = ['_static'] +templates_path = ["_templates"] +html_static_path = ["_static"] # Output file base name for HTML help builder. -htmlhelp_basename = 'Resolwebiodoc' +htmlhelp_basename = "Resolwebiodoc" # Configuration for intersphinx _django_major_version = "{}.{}".format(*django.VERSION[:2]) intersphinx_mapping = { - 'python': ('https://docs.python.org/3', None), - 'django': ('https://docs.djangoproject.com/en/{}/'.format(_django_major_version), - 'https://docs.djangoproject.com/en/{}/_objects/'.format(_django_major_version)), - 'resolwe': ('https://resolwe.readthedocs.io/en/latest', None), + "python": ("https://docs.python.org/3", None), + "django": ( + "https://docs.djangoproject.com/en/{}/".format(_django_major_version), + "https://docs.djangoproject.com/en/{}/_objects/".format(_django_major_version), + ), + "resolwe": ("https://resolwe.readthedocs.io/en/latest", None), }