From 162ae25f0e4693bb866d42042a18caa036956a82 Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Wed, 14 Apr 2021 16:15:43 +0200
Subject: [PATCH] [doc] Pre-commit cleanup

---
 doc/conf.py             | 12 ++++++------
 doc/get_dep_licenses.py | 12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/doc/conf.py b/doc/conf.py
index 6c24afc9..c9b21f53 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -4,14 +4,12 @@
 import os
 import time
 
-
 import pkg_resources
 import sphinx_rtd_theme
 
 from bob.extension.utils import link_documentation
 from bob.extension.utils import load_requirements
 
-
 # -- General configuration -----------------------------------------------------
 
 # If your documentation needs a minimal Sphinx version, state it here.
@@ -237,10 +235,12 @@ autodoc_default_options = {
     "show-inheritance": True,
 }
 
-if not 'BOB_DOCUMENTATION_SERVER' in os.environ:
-  # notice we need to overwrite this for BEAT projects - defaults from Bob are
-  # not OK
-  os.environ['BOB_DOCUMENTATION_SERVER'] = "https://www.idiap.ch/software/beat/docs/beat/%(name)s/%(version)s/|https://www.idiap.ch/software/beat/docs/beat/%(name)s/master/"
+if "BOB_DOCUMENTATION_SERVER" not in os.environ:
+    # notice we need to overwrite this for BEAT projects - defaults from Bob are
+    # not OK
+    os.environ[
+        "BOB_DOCUMENTATION_SERVER"
+    ] = "https://www.idiap.ch/software/beat/docs/beat/%(name)s/%(version)s/|https://www.idiap.ch/software/beat/docs/beat/%(name)s/master/"
 
 # For inter-documentation mapping:
 
diff --git a/doc/get_dep_licenses.py b/doc/get_dep_licenses.py
index 46a73624..5d626bfa 100755
--- a/doc/get_dep_licenses.py
+++ b/doc/get_dep_licenses.py
@@ -59,9 +59,9 @@ def _run_cmd(cmd_list):
 
 
 def _call_conda(extra_args):
-    """ call conda with the list of extra arguments, and return the tuple
-     stdout, stderr
-     """
+    """call conda with the list of extra arguments, and return the tuple
+    stdout, stderr
+    """
 
     cmd_list = [os.environ.get("CONDA_EXE")]
 
@@ -77,9 +77,9 @@ def _get_pip_info():
 
 
 def _clean_pkg_name(name):
-    """ Cleanup package name:
-        - lower case
-        - replace minus and underscore by only minus
+    """Cleanup package name:
+    - lower case
+    - replace minus and underscore by only minus
     """
 
     return re.sub(r"[_-]", "-", name.lower())
-- 
GitLab