Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #113

Merged
merged 3 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@

repos:
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black", "--filter-files", "--skip", "__init__.py"]
files: ^dodiscover/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.971"
rev: "v1.10.1"
hooks:
- id: mypy
name: mypy (dodiscover)
args: ["--config-file", "pyproject.toml"]
files: ^dodiscover/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.971"
rev: "v1.10.1"
hooks:
- id: mypy
name: mypy (tests)
Expand Down
1 change: 1 addition & 0 deletions examples/intro/intro_causal_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
and missing edge. We will review some of the fundamental causal graphs used
in causal inference, and their differences from traditional graphs.
"""

import networkx as nx
import numpy as np
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions examples/visualization/plot_timeseries_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

For comparing different graphs with the same layout, see :ref:`ex-draw-graphs`
"""

from pywhy_graphs import StationaryTimeSeriesDiGraph
from pywhy_graphs.viz import draw, timeseries_layout

Expand Down
1 change: 1 addition & 0 deletions pywhy_graphs/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Version number."""

from importlib.metadata import version # type: ignore

__version__ = version(__package__)
12 changes: 4 additions & 8 deletions pywhy_graphs/classes/networkxprotocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ class NetworkXProtocol(Protocol):
_adj: Dict

@property
def nodes(self):
...
def nodes(self): ...

@property
def edges(self):
...
def edges(self): ...

@abstractmethod
def add_node(self, node):
...
def add_node(self, node): ...

@abstractmethod
def remove_edge(self, u, v):
...
def remove_edge(self, u, v): ...