Skip to content

Commit

Permalink
Merge branch 'main' into refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
drbenvincent committed Aug 20, 2024
2 parents 66f22aa + c80ed16 commit 77b0b2b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
exclude: &exclude_pattern 'iv_weak_instruments.ipynb'
args: ["--maxkb=1500"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
rev: v0.6.1
hooks:
# Run the linter
- id: ruff
Expand Down
4 changes: 2 additions & 2 deletions causalpy/tests/test_synthetic_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_generate_multicell_geolift_data():
from causalpy.data.simulate_data import generate_multicell_geolift_data

df = generate_multicell_geolift_data()
assert type(df) == pd.DataFrame
assert isinstance(df, pd.DataFrame)
assert np.all(df >= 0), "Found negative values in dataset"


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

df = generate_geolift_data()
assert type(df) == pd.DataFrame
assert isinstance(df, pd.DataFrame)
assert np.all(df >= 0), "Found negative values in dataset"
72 changes: 0 additions & 72 deletions docs/source/_static/custom.css

This file was deleted.

Binary file added docs/source/_static/flat_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/flat_logo_darkmode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 0 additions & 38 deletions docs/source/_templates/footer-links.html

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/_templates/navbar-name.html

This file was deleted.

40 changes: 5 additions & 35 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@


release = __version__
version = release

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down Expand Up @@ -132,49 +133,18 @@
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "pydata_sphinx_theme"
html_theme = "labs_sphinx_theme"
html_static_path = ["_static"]
html_css_files = ["custom.css"]
html_favicon = "_static/favicon_logo.png"
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
"logo": {
"image_light": "_static/logo.png",
"image_dark": "_static/logo.png",
"image_light": "_static/flat_logo.png",
"image_dark": "_static/flat_logo_darkmode.png",
},
"navbar_align": "right",
"navbar_start": ["navbar-logo", "navbar-name"],
"navbar_end": ["theme-switcher"],
"footer_start": ["copyright", "footer-links"],
"footer_end": ["sphinx-version", "theme-version"],
"github_url": "https://github.com/pymc-labs/CausalPy",
"twitter_url": "https://twitter.com/pymc_labs",
"icon_links": [
{
"name": "LinkedIn",
"url": "https://www.linkedin.com/company/pymc-labs/",
"icon": "fa-brands fa-linkedin",
"type": "fontawesome",
},
{
"name": "MeetUp",
"url": "https://www.meetup.com/pymc-labs-online-meetup/",
"icon": "fa-brands fa-meetup",
"type": "fontawesome",
},
{
"name": "YouTube",
"url": "https://www.youtube.com/c/PyMCLabs",
"icon": "fa-brands fa-youtube",
"type": "fontawesome",
},
],
"use_edit_page_button": True,
"external_links": [
{"name": "About PyMC Labs", "url": "https://pymc-labs.io"},
],
"analytics": {"google_analytics_id": "G-3MCDG3M7X6"},
}
html_context = {
"github_user": "pymc-labs",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ docs = [
"sphinx",
"sphinx-autodoc-typehints",
"sphinx_autodoc_defaultargs",
"pydata-sphinx-theme>=0.12.0.dev0",
"labs-sphinx-theme @ git+https://github.com/pymc-labs/labs-sphinx-theme",
"sphinx-copybutton",
"sphinx-rtd-theme",
"statsmodels",
Expand Down

0 comments on commit 77b0b2b

Please sign in to comment.