Skip to content

Commit 8a997d4

Browse files
[pre-commit.ci] pre-commit autoupdate (#113)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 22.12.0 → 24.4.2](psf/black@22.12.0...24.4.2) - [github.com/pycqa/isort: 5.12.0 → 5.13.2](PyCQA/isort@5.12.0...5.13.2) - [github.com/pre-commit/mirrors-mypy: v0.971 → v1.10.1](pre-commit/mirrors-mypy@v0.971...v1.10.1) - [github.com/pre-commit/mirrors-mypy: v0.971 → v1.10.1](pre-commit/mirrors-mypy@v0.971...v1.10.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Adam Li <[email protected]>
1 parent 31ad037 commit 8a997d4

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33

44
repos:
55
- repo: https://github.com/psf/black
6-
rev: 22.12.0
6+
rev: 24.4.2
77
hooks:
88
- id: black
99
- repo: https://github.com/pycqa/isort
10-
rev: 5.12.0
10+
rev: 5.13.2
1111
hooks:
1212
- id: isort
1313
name: isort (python)
1414
args: ["--profile", "black", "--filter-files", "--skip", "__init__.py"]
1515
files: ^dodiscover/
1616
- repo: https://github.com/pre-commit/mirrors-mypy
17-
rev: "v0.971"
17+
rev: "v1.10.1"
1818
hooks:
1919
- id: mypy
2020
name: mypy (dodiscover)
2121
args: ["--config-file", "pyproject.toml"]
2222
files: ^dodiscover/
2323
- repo: https://github.com/pre-commit/mirrors-mypy
24-
rev: "v0.971"
24+
rev: "v1.10.1"
2525
hooks:
2626
- id: mypy
2727
name: mypy (tests)

examples/intro/intro_causal_graphs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
and missing edge. We will review some of the fundamental causal graphs used
1010
in causal inference, and their differences from traditional graphs.
1111
"""
12+
1213
import networkx as nx
1314
import numpy as np
1415
import pandas as pd

examples/visualization/plot_timeseries_graphs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1414
For comparing different graphs with the same layout, see :ref:`ex-draw-graphs`
1515
"""
16+
1617
from pywhy_graphs import StationaryTimeSeriesDiGraph
1718
from pywhy_graphs.viz import draw, timeseries_layout
1819

pywhy_graphs/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Version number."""
2+
23
from importlib.metadata import version # type: ignore
34

45
__version__ = version(__package__)

pywhy_graphs/classes/networkxprotocol.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,13 @@ class NetworkXProtocol(Protocol):
1010
_adj: Dict
1111

1212
@property
13-
def nodes(self):
14-
...
13+
def nodes(self): ...
1514

1615
@property
17-
def edges(self):
18-
...
16+
def edges(self): ...
1917

2018
@abstractmethod
21-
def add_node(self, node):
22-
...
19+
def add_node(self, node): ...
2320

2421
@abstractmethod
25-
def remove_edge(self, u, v):
26-
...
22+
def remove_edge(self, u, v): ...

0 commit comments

Comments
 (0)