Skip to content

Commit

Permalink
Merge pull request #86 from mmschlk/70-fix-imports
Browse files Browse the repository at this point in the history
update imports and ruff; fixes #70
  • Loading branch information
hbaniecki authored Mar 29, 2024
2 parents 1ff133d + 5188884 commit 2fda73a
Show file tree
Hide file tree
Showing 57 changed files with 413 additions and 292 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vscode/**

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ repos:
name: ruff
language: python
types: [python]
entry: ruff --no-cache --fix
entry: ruff check --no-cache --fix
41 changes: 23 additions & 18 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

from sphinx.builders.html import StandaloneHTMLBuilder
import os
import sys

from sphinx.builders.html import StandaloneHTMLBuilder

sys.path.insert(0, os.path.abspath("../.."))
sys.path.insert(0, os.path.abspath("../../shapiq"))

import shapiq

# -- Read the Docs ---------------------------------------------------------------------------------
master_doc = 'index'
master_doc = "index"

# -- Project information ---------------------------------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'shapiq'
copyright = '2023, the shapiq developers'
author = 'Maximilian Muschalik and Fabian Fumagalli'
project = "shapiq"
copyright = "2023, the shapiq developers"
author = "Maximilian Muschalik and Fabian Fumagalli"
release = shapiq.__version__
version = shapiq.__version__

Expand All @@ -34,15 +36,15 @@
"sphinx.ext.autodoc",
"sphinx.ext.doctest",
"sphinx.ext.autosummary",
'sphinx_copybutton',
"sphinx_copybutton",
"sphinx.ext.viewcode",
"sphinx.ext.autosectionlabel",
"sphinx_autodoc_typehints",
"sphinx_toolbox.more_autodoc.autoprotocol",
]

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

source_suffix = {
".rst": "restructuredtext",
Expand All @@ -59,9 +61,9 @@

# -- Options for HTML output -----------------------------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'furo'
html_theme = "furo"
html_static_path = ["_static"]
html_favicon = '_static/shapiq.ico'
html_favicon = "_static/shapiq.ico"
pygments_dark_style = "monokai"
html_theme_options = {
"sidebar_hide_name": True,
Expand All @@ -83,19 +85,22 @@
# -- Autodoc ---------------------------------------------------------------------------------------
autosummary_generate = True
autodoc_default_options = {
'show-inheritance': True,
'members': True,
'member-order': 'groupwise',
'special-members': '__call__',
'undoc-members': True,
'exclude-members': '__weakref__'
"show-inheritance": True,
"members": True,
"member-order": "groupwise",
"special-members": "__call__",
"undoc-members": True,
"exclude-members": "__weakref__",
}
autoclass_content = 'class'
autoclass_content = "class"
autodoc_inherit_docstrings = False

# -- Images ----------------------------------------------------------------------------------------
StandaloneHTMLBuilder.supported_image_types = [
"image/svg+xml", "image/gif", "image/png", "image/jpeg"
"image/svg+xml",
"image/gif",
"image/png",
"image/jpeg",
]
# -- Copy Paste Button -----------------------------------------------------------------------------
# Ignore >>> when copying code
Expand Down
Loading

0 comments on commit 2fda73a

Please sign in to comment.