Skip to content

Commit 061ddf4

Browse files
committed
isort and black
1 parent d153e2c commit 061ddf4

17 files changed

+616
-589
lines changed

.isort.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[settings]
2+
# sort and black fight over the formatting of this file.
3+
# Remove when this issue is resolved.
4+
skip=pymathics/graph/base.py

.pre-commit-config.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ repos:
99
stages: [commit]
1010
- id: end-of-file-fixer
1111
stages: [commit]
12-
# - repo: https://github.com/pycqa/isort
13-
# rev: 5.10.1
14-
# hooks:
15-
# - id: isort
16-
# stages: [commit]
12+
- repo: https://github.com/pycqa/isort
13+
rev: 5.10.1
14+
hooks:
15+
- id: isort
16+
stages: [commit]
1717
- repo: https://github.com/psf/black
1818
rev: 22.3.0
1919
hooks:
2020
- id: black
2121
language_version: python3
2222
exclude: 'pymathics/graph/version.py'
2323
stages: [commit]
24-
# - repo: https://github.com/pycqa/flake8
25-
# rev: 3.9.2
26-
# hooks:
27-
# - id: flake8
28-
# stages: [commit]
24+
- repo: https://github.com/pycqa/flake8
25+
rev: 3.9.2
26+
hooks:
27+
- id: flake8
28+
stages: [commit]

pymathics/graph/__init__.py

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@
1515

1616
from pymathics.graph.base import (
1717
AdjacencyList,
18-
AcyclicGraphQ,
1918
BetweennessCentrality,
2019
ClosenessCentrality,
21-
ConnectedGraphQ,
2220
DegreeCentrality,
2321
DirectedEdge,
24-
DirectedGraphQ,
2522
EdgeConnectivity,
2623
EdgeIndex,
2724
EdgeList,
@@ -32,37 +29,28 @@
3229
Graph,
3330
GraphAtom,
3431
GraphBox,
35-
HITSCentrality,
3632
HighlightGraph,
33+
HITSCentrality,
3734
KatzCentrality,
38-
LoopFreeGraphQ,
39-
MixedGraphQ,
40-
MultigraphQ,
4135
PageRankCentrality,
42-
PathGraphQ,
4336
Property,
4437
PropertyValue,
45-
SimpleGraphQ,
4638
UndirectedEdge,
4739
VertexAdd,
4840
VertexConnectivity,
4941
VertexDelete,
5042
VertexIndex,
5143
VertexList,
5244
)
53-
54-
from pymathics.graph.measures_and_metrics import EdgeCount, VertexCount, VertexDegree
55-
56-
from pymathics.graph.algorithms import (
57-
ConnectedComponents,
45+
from pymathics.graph.components import ConnectedComponents, WeaklyConnectedComponents
46+
from pymathics.graph.curated import GraphData
47+
from pymathics.graph.measures_and_metrics import (
48+
EdgeCount,
5849
GraphDistance,
59-
FindSpanningTree,
60-
PlanarGraphQ,
61-
WeaklyConnectedComponents,
50+
VertexCount,
51+
VertexDegree,
6252
)
63-
64-
from pymathics.graph.curated import GraphData
65-
53+
from pymathics.graph.operations import FindSpanningTree
6654
from pymathics.graph.parametric import (
6755
BalancedTree,
6856
BarbellGraph,
@@ -79,9 +67,18 @@
7967
RandomTree,
8068
StarGraph,
8169
)
82-
70+
from pymathics.graph.properties import (
71+
AcyclicGraphQ,
72+
ConnectedGraphQ,
73+
DirectedGraphQ,
74+
LoopFreeGraphQ,
75+
MixedGraphQ,
76+
MultigraphQ,
77+
PathGraphQ,
78+
PlanarGraphQ,
79+
SimpleGraphQ,
80+
)
8381
from pymathics.graph.random import RandomGraph
84-
8582
from pymathics.graph.structured import PathGraph, TreeGraph
8683
from pymathics.graph.tree import TreeGraphAtom, TreeGraphQ
8784
from pymathics.graph.version import __version__

pymathics/graph/algorithms.py

Lines changed: 0 additions & 246 deletions
This file was deleted.

0 commit comments

Comments
 (0)