Skip to content

Commit 77b0b2b

Browse files
committed
Merge branch 'main' into refactor
2 parents 66f22aa + c80ed16 commit 77b0b2b

File tree

9 files changed

+9
-150
lines changed

9 files changed

+9
-150
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
exclude: &exclude_pattern 'iv_weak_instruments.ipynb'
2626
args: ["--maxkb=1500"]
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.5.1
28+
rev: v0.6.1
2929
hooks:
3030
# Run the linter
3131
- id: ruff

causalpy/tests/test_synthetic_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_generate_multicell_geolift_data():
2626
from causalpy.data.simulate_data import generate_multicell_geolift_data
2727

2828
df = generate_multicell_geolift_data()
29-
assert type(df) == pd.DataFrame
29+
assert isinstance(df, pd.DataFrame)
3030
assert np.all(df >= 0), "Found negative values in dataset"
3131

3232

@@ -37,5 +37,5 @@ def test_generate_geolift_data():
3737
from causalpy.data.simulate_data import generate_geolift_data
3838

3939
df = generate_geolift_data()
40-
assert type(df) == pd.DataFrame
40+
assert isinstance(df, pd.DataFrame)
4141
assert np.all(df >= 0), "Found negative values in dataset"

docs/source/_static/custom.css

Lines changed: 0 additions & 72 deletions
This file was deleted.

docs/source/_static/flat_logo.png

140 KB
Loading
87.6 KB
Loading

docs/source/_templates/footer-links.html

Lines changed: 0 additions & 38 deletions
This file was deleted.

docs/source/_templates/navbar-name.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/source/conf.py

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040

4141

4242
release = __version__
43+
version = release
4344

4445
# -- General configuration ---------------------------------------------------
4546
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
@@ -132,49 +133,18 @@
132133
# -- Options for HTML output -------------------------------------------------
133134
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
134135

135-
html_theme = "pydata_sphinx_theme"
136+
html_theme = "labs_sphinx_theme"
136137
html_static_path = ["_static"]
137-
html_css_files = ["custom.css"]
138138
html_favicon = "_static/favicon_logo.png"
139139
# Theme options are theme-specific and customize the look and feel of a theme
140140
# further. For a list of options available for each theme, see the
141141
# documentation.
142142
html_theme_options = {
143143
"logo": {
144-
"image_light": "_static/logo.png",
145-
"image_dark": "_static/logo.png",
144+
"image_light": "_static/flat_logo.png",
145+
"image_dark": "_static/flat_logo_darkmode.png",
146146
},
147-
"navbar_align": "right",
148-
"navbar_start": ["navbar-logo", "navbar-name"],
149-
"navbar_end": ["theme-switcher"],
150-
"footer_start": ["copyright", "footer-links"],
151-
"footer_end": ["sphinx-version", "theme-version"],
152-
"github_url": "https://github.com/pymc-labs/CausalPy",
153-
"twitter_url": "https://twitter.com/pymc_labs",
154-
"icon_links": [
155-
{
156-
"name": "LinkedIn",
157-
"url": "https://www.linkedin.com/company/pymc-labs/",
158-
"icon": "fa-brands fa-linkedin",
159-
"type": "fontawesome",
160-
},
161-
{
162-
"name": "MeetUp",
163-
"url": "https://www.meetup.com/pymc-labs-online-meetup/",
164-
"icon": "fa-brands fa-meetup",
165-
"type": "fontawesome",
166-
},
167-
{
168-
"name": "YouTube",
169-
"url": "https://www.youtube.com/c/PyMCLabs",
170-
"icon": "fa-brands fa-youtube",
171-
"type": "fontawesome",
172-
},
173-
],
174-
"use_edit_page_button": True,
175-
"external_links": [
176-
{"name": "About PyMC Labs", "url": "https://pymc-labs.io"},
177-
],
147+
"analytics": {"google_analytics_id": "G-3MCDG3M7X6"},
178148
}
179149
html_context = {
180150
"github_user": "pymc-labs",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ docs = [
5959
"sphinx",
6060
"sphinx-autodoc-typehints",
6161
"sphinx_autodoc_defaultargs",
62-
"pydata-sphinx-theme>=0.12.0.dev0",
62+
"labs-sphinx-theme @ git+https://github.com/pymc-labs/labs-sphinx-theme",
6363
"sphinx-copybutton",
6464
"sphinx-rtd-theme",
6565
"statsmodels",

0 commit comments

Comments
 (0)