🔧 Fix all ruff typo errors & test CI/CD workflow (#109)
* [chore] Fix ruff typo * [robot] Fix welcome robot
This commit is contained in:
@@ -12,64 +12,64 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.abspath('../..'))
|
||||
sys.path.insert(0, os.path.abspath("../.."))
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
project = 'TexTeller'
|
||||
copyright = '2025, TexTeller Team'
|
||||
author = 'TexTeller Team'
|
||||
project = "TexTeller"
|
||||
copyright = "2025, TexTeller Team"
|
||||
author = "TexTeller Team"
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
||||
|
||||
extensions = [
|
||||
'myst_parser',
|
||||
'sphinx.ext.duration',
|
||||
'sphinx.ext.intersphinx',
|
||||
'sphinx.ext.autosectionlabel',
|
||||
'sphinx.ext.autodoc',
|
||||
'sphinx.ext.viewcode',
|
||||
'sphinx.ext.napoleon',
|
||||
'sphinx.ext.autosummary',
|
||||
'sphinx_copybutton',
|
||||
"myst_parser",
|
||||
"sphinx.ext.duration",
|
||||
"sphinx.ext.intersphinx",
|
||||
"sphinx.ext.autosectionlabel",
|
||||
"sphinx.ext.autodoc",
|
||||
"sphinx.ext.viewcode",
|
||||
"sphinx.ext.napoleon",
|
||||
"sphinx.ext.autosummary",
|
||||
"sphinx_copybutton",
|
||||
# 'sphinx.ext.linkcode',
|
||||
# 'sphinxarg.ext',
|
||||
'sphinx_design',
|
||||
'nbsphinx',
|
||||
"sphinx_design",
|
||||
"nbsphinx",
|
||||
]
|
||||
|
||||
templates_path = ['_templates']
|
||||
templates_path = ["_templates"]
|
||||
exclude_patterns = []
|
||||
|
||||
# Autodoc settings
|
||||
autodoc_member_order = 'bysource'
|
||||
autodoc_member_order = "bysource"
|
||||
add_module_names = False
|
||||
autoclass_content = 'both'
|
||||
autoclass_content = "both"
|
||||
autodoc_default_options = {
|
||||
'members': True,
|
||||
'member-order': 'bysource',
|
||||
'undoc-members': True,
|
||||
'show-inheritance': True,
|
||||
'imported-members': True,
|
||||
"members": True,
|
||||
"member-order": "bysource",
|
||||
"undoc-members": True,
|
||||
"show-inheritance": True,
|
||||
"imported-members": True,
|
||||
}
|
||||
|
||||
# Intersphinx settings
|
||||
intersphinx_mapping = {
|
||||
'python': ('https://docs.python.org/3', None),
|
||||
'numpy': ('https://numpy.org/doc/stable', None),
|
||||
'torch': ('https://pytorch.org/docs/stable', None),
|
||||
'transformers': ('https://huggingface.co/docs/transformers/main/en', None),
|
||||
"python": ("https://docs.python.org/3", None),
|
||||
"numpy": ("https://numpy.org/doc/stable", None),
|
||||
"torch": ("https://pytorch.org/docs/stable", None),
|
||||
"transformers": ("https://huggingface.co/docs/transformers/main/en", None),
|
||||
}
|
||||
|
||||
html_theme = 'sphinx_book_theme'
|
||||
html_theme = "sphinx_book_theme"
|
||||
|
||||
html_theme_options = {
|
||||
'repository_url': 'https://github.com/OleehyO/TexTeller',
|
||||
'use_repository_button': True,
|
||||
'use_issues_button': True,
|
||||
'use_edit_page_button': True,
|
||||
'use_download_button': True,
|
||||
"repository_url": "https://github.com/OleehyO/TexTeller",
|
||||
"use_repository_button": True,
|
||||
"use_issues_button": True,
|
||||
"use_edit_page_button": True,
|
||||
"use_download_button": True,
|
||||
}
|
||||
|
||||
html_logo = "../../assets/logo.svg"
|
||||
|
||||
Reference in New Issue
Block a user