diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08d04209..3f5e1223 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/causalpy/tests/test_synthetic_data.py b/causalpy/tests/test_synthetic_data.py index 0eb66f2e..51da6a3e 100644 --- a/causalpy/tests/test_synthetic_data.py +++ b/causalpy/tests/test_synthetic_data.py @@ -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" @@ -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" diff --git a/docs/source/_static/custom.css b/docs/source/_static/custom.css deleted file mode 100644 index 613a4e65..00000000 --- a/docs/source/_static/custom.css +++ /dev/null @@ -1,72 +0,0 @@ -/* Make each footer item in-line so they stack horizontally instead of vertically */ -.footer-item { - display: inline-block; -} - -/* Add a separating border line for all but the last item */ -/* -.footer-item:not(:last-child) { - border-right: 1px solid var(--pst-color-text-base); - margin-right: .5em; - padding-right: .5em; -} -*/ - -.footer-item ul { - list-style: none; - display: flex; - padding-left: 0; - margin-bottom: 0; -} - -.footer-item ul li { - padding-right: .5em; -} - -.footer-item li a.nav-link { - color: var(--pst-color-text-muted); -} - -.footer-item li a.nav-link:hover { - color: var(--pst-color-primary); - text-decoration: none; -} - -/* Remove footer icon text for small screen width and increase icons size */ -@media (max-width: 660px) { - .footer-item li a.nav-link i { - padding-right: 0.5em; - font-size: calc(var(--bs-body-font-size) * 1.5); - } - - .footer-item li a.nav-link span { - font-size: 0; - } -} - -footer.bd-footer { - position: static; - bottom: auto; - background: var(--pst-color-on-background) !important; -} - -/* Make footer non-sticky when lines start to wrap-around*/ -@media (max-width: 520px) { - footer.bd-footer { - position: inherit; - } -} - -.causalpy-name { - padding-left: 2rem; -} - -@media (min-width: 960px) { - .navbar-center-item { - padding-right: 4em; - } -} - -.no-border { - border: none !important; -} diff --git a/docs/source/_static/flat_logo.png b/docs/source/_static/flat_logo.png new file mode 100644 index 00000000..534aa025 Binary files /dev/null and b/docs/source/_static/flat_logo.png differ diff --git a/docs/source/_static/flat_logo_darkmode.png b/docs/source/_static/flat_logo_darkmode.png new file mode 100644 index 00000000..106bc5e9 Binary files /dev/null and b/docs/source/_static/flat_logo_darkmode.png differ diff --git a/docs/source/_templates/footer-links.html b/docs/source/_templates/footer-links.html deleted file mode 100644 index a195e44c..00000000 --- a/docs/source/_templates/footer-links.html +++ /dev/null @@ -1,38 +0,0 @@ -