"mmdet3d/vscode:/vscode.git/clone" did not exist on "c9ff18321d357554d33884ea80c57a7e2bb18b3c"
Commit 205d2215 authored by Jonas Kaufmann's avatar Jonas Kaufmann Committed by Antoine Kaufmann
Browse files

doc: auto-format Python files

parent 32b543cf
...@@ -78,22 +78,22 @@ lint-clang-format: ...@@ -78,22 +78,22 @@ lint-clang-format:
lint-yapf: lint-yapf:
yapf --recursive --diff \ yapf --recursive --diff \
--exclude experiments/simbricks/orchestration/utils/graphlib.py \ --exclude experiments/simbricks/orchestration/utils/graphlib.py \
-- results/ experiments/ -- results/ experiments/ doc/
format-yapf: format-yapf:
yapf --recursive --in-place \ yapf --recursive --in-place \
--exclude experiments/simbricks/orchestration/utils/graphlib.py \ --exclude experiments/simbricks/orchestration/utils/graphlib.py \
--exclude experiments/out/ \ --exclude experiments/out/ \
-- results/ experiments/ -- results/ experiments/ doc/
lint-isort: lint-isort:
isort --diff \ isort --diff \
--skip experiments/simbricks/orchestration/utils/graphlib.py \ --skip experiments/simbricks/orchestration/utils/graphlib.py \
results/ experiments/ results/ experiments/ doc/
format-isort: format-isort:
isort --skip experiments/simbricks/orchestration/utils/graphlib.py \ isort --skip experiments/simbricks/orchestration/utils/graphlib.py \
results/ experiments/ results/ experiments/ doc/
lint: lint-cpplint lint-clang-format lint-python lint: lint-cpplint lint-clang-format lint-python
lint-all: lint lint-clang-tidy typecheck-python lint-all: lint lint-clang-tidy typecheck-python
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
# full list see the documentation: # full list see the documentation:
# http://www.sphinx-doc.org/en/master/config # http://www.sphinx-doc.org/en/master/config
# -- Path setup -------------------------------------------------------------- # -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory, # If extensions (or modules to document with autodoc) are in another directory,
...@@ -15,6 +14,7 @@ ...@@ -15,6 +14,7 @@
import os import os
import sys import sys
sys.path.append(os.path.abspath('../experiments')) sys.path.append(os.path.abspath('../experiments'))
sys.path.append(os.path.abspath('.')) sys.path.append(os.path.abspath('.'))
from external_links import * from external_links import *
...@@ -32,7 +32,6 @@ version = '' ...@@ -32,7 +32,6 @@ version = ''
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
release = '' release = ''
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here. # If your documentation needs a minimal Sphinx version, state it here.
...@@ -77,9 +76,7 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] ...@@ -77,9 +76,7 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
pygments_style = None pygments_style = None
# Default options for autodoc extension. # Default options for autodoc extension.
autodoc_default_options = { autodoc_default_options = {'member-order': 'bysource'}
'member-order': 'bysource'
}
# Whether to number figures. # Whether to number figures.
numfig = True numfig = True
...@@ -127,7 +124,6 @@ html_css_files = [ ...@@ -127,7 +124,6 @@ html_css_files = [
# Output file base name for HTML help builder. # Output file base name for HTML help builder.
htmlhelp_basename = 'SimBricksdoc' htmlhelp_basename = 'SimBricksdoc'
# -- Options for LaTeX output ------------------------------------------------ # -- Options for LaTeX output ------------------------------------------------
latex_elements = { latex_elements = {
...@@ -152,20 +148,20 @@ latex_elements = { ...@@ -152,20 +148,20 @@ latex_elements = {
# (source start file, target name, title, # (source start file, target name, title,
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ latex_documents = [
(master_doc, 'simbricks.tex', 'SimBricks Documentation', (
'Antoine Kaufmann', 'manual'), master_doc,
'simbricks.tex',
'SimBricks Documentation',
'Antoine Kaufmann',
'manual'
),
] ]
# -- Options for manual page output ------------------------------------------ # -- Options for manual page output ------------------------------------------
# One entry per manual page. List of tuples # One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section). # (source start file, name, description, authors, manual section).
man_pages = [ man_pages = [(master_doc, 'simbricks', 'SimBricks Documentation', [author], 1)]
(master_doc, 'simbricks', 'SimBricks Documentation',
[author], 1)
]
# -- Options for Texinfo output ---------------------------------------------- # -- Options for Texinfo output ----------------------------------------------
...@@ -173,12 +169,17 @@ man_pages = [ ...@@ -173,12 +169,17 @@ man_pages = [
# (source start file, target name, title, author, # (source start file, target name, title, author,
# dir menu entry, description, category) # dir menu entry, description, category)
texinfo_documents = [ texinfo_documents = [
(master_doc, 'simbricks', 'SimBricks Documentation', (
author, 'SimBricks', 'One line description of project.', master_doc,
'Miscellaneous'), 'simbricks',
'SimBricks Documentation',
author,
'SimBricks',
'One line description of project.',
'Miscellaneous'
),
] ]
# -- Options for Epub output ------------------------------------------------- # -- Options for Epub output -------------------------------------------------
# Bibliographic Dublin Core info. # Bibliographic Dublin Core info.
...@@ -196,13 +197,13 @@ epub_title = project ...@@ -196,13 +197,13 @@ epub_title = project
# A list of files that should not be packed into the epub file. # A list of files that should not be packed into the epub file.
epub_exclude_files = ['search.html'] epub_exclude_files = ['search.html']
breathe_projects = { 'simbricks': 'doxygen/xml/' } breathe_projects = {'simbricks': 'doxygen/xml/'}
breathe_default_project = 'simbricks' breathe_default_project = 'simbricks'
import os
################################################################################# #################################################################################
# For RTD # For RTD
import subprocess, os import subprocess
# Check if we're running on Read the Docs' servers # Check if we're running on Read the Docs' servers
read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True' read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment