-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
46 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,29 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude_types: [svg] | ||
- id: end-of-file-fixer | ||
exclude_types: [svg] | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
args: ['--maxkb=1500'] | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: [--profile, black] | ||
types: [python] | ||
- repo: https://github.com/ambv/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/nbQA-dev/nbQA | ||
rev: 1.7.0 | ||
hooks: | ||
- id: nbqa-black | ||
# additional_dependencies: [jupytext] # optional, only if you're using Jupytext | ||
- id: nbqa-pyupgrade | ||
args: ["--py37-plus"] | ||
- id: nbqa-isort | ||
args: ["--float-to-top"] | ||
- repo: https://github.com/econchick/interrogate | ||
rev: 1.5.0 | ||
hooks: | ||
- id: interrogate | ||
# needed to make excludes in pyproject.toml work | ||
# see here https://github.com/econchick/interrogate/issues/60#issuecomment-735436566 | ||
pass_filenames: false | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude_types: [svg] | ||
- id: end-of-file-fixer | ||
exclude_types: [svg] | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
args: ['--maxkb=1500'] | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.1.4 | ||
hooks: | ||
- id: ruff | ||
- id: ruff-format | ||
- repo: https://github.com/nbQA-dev/nbQA | ||
rev: 1.7.0 | ||
hooks: | ||
- id: nbqa-ruff | ||
- repo: https://github.com/econchick/interrogate | ||
rev: 1.5.0 | ||
hooks: | ||
- id: interrogate | ||
# needed to make excludes in pyproject.toml work | ||
# see here https://github.com/econchick/interrogate/issues/60#issuecomment-735436566 | ||
pass_filenames: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
import arviz as az | ||
|
||
import causalpy.pymc_experiments | ||
import causalpy.pymc_models | ||
import causalpy.skl_experiments | ||
import causalpy.skl_models | ||
from causalpy import pymc_experiments | ||
from causalpy import pymc_models | ||
from causalpy import skl_experiments | ||
from causalpy import skl_models | ||
from causalpy.version import __version__ | ||
|
||
from .data import load_data | ||
|
||
az.style.use("arviz-darkgrid") | ||
|
||
__all__ = [ | ||
"pymc_experiments", | ||
"pymc_models", | ||
"skl_experiments", | ||
"skl_models", | ||
"load_data", | ||
"__version__", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters