Ruff lint (#496)
* add ruff, pdm * update .gitignore * format * test * check failure * fix constants.py
This commit is contained in:
parent
ec02876874
commit
1fd93dcfb6
39 changed files with 1866 additions and 1234 deletions
|
|
@ -12,17 +12,18 @@
|
|||
#
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.path.abspath('.'))
|
||||
sys.path.insert(0, '../..')
|
||||
|
||||
sys.path.insert(0, os.path.abspath("."))
|
||||
sys.path.insert(0, "../..")
|
||||
from ytmusicapi import __version__ # noqa: E402
|
||||
|
||||
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
||||
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
project = 'ytmusicapi'
|
||||
copyright = '2022, sigma67'
|
||||
author = 'sigma67'
|
||||
project = "ytmusicapi"
|
||||
copyright = "2022, sigma67"
|
||||
author = "sigma67"
|
||||
|
||||
# The full version, including alpha/beta/rc tags
|
||||
version = __version__
|
||||
|
|
@ -37,17 +38,17 @@ release = __version__
|
|||
extensions = ["sphinx.ext.autodoc"]
|
||||
|
||||
# The suffix of source filenames.
|
||||
source_suffix = '.rst'
|
||||
source_suffix = ".rst"
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
master_doc = "index"
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
templates_path = ["_templates"]
|
||||
|
||||
# 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 = []
|
||||
|
||||
html_theme = "sphinx_rtd_theme"
|
||||
html_theme = "sphinx_rtd_theme"
|
||||
|
|
|
|||
Loading…
Reference in a new issue