We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86cca31 commit 43c1731Copy full SHA for 43c1731
.github/workflows/publish_pypi.yml
@@ -20,7 +20,7 @@ jobs:
20
- name: Set up Python
21
uses: actions/setup-python@v4
22
with:
23
- python-version: "3.8"
+ python-version: "3.9"
24
- name: Install build dependencies
25
run: |
26
python -m pip install --upgrade pip
.github/workflows/test.yml
@@ -48,7 +48,8 @@ jobs:
48
auto-activate-base: false
49
- name: Install dependencies
50
51
- $(command -v mamba || command -v conda) install python-graphblas scipy pandas pytest-cov pytest-randomly pytest-mpl
+ $(command -v mamba || command -v conda) install python-suitesparse-graphblas scipy pandas donfig pyyaml numpy python-graphblas \
52
+ pytest-cov pytest-randomly pytest-mpl
53
# matplotlib lxml pygraphviz pydot sympy # Extra networkx deps we don't need yet
54
pip install git+https://github.com/networkx/networkx.git@main --no-deps
55
pip install -e . --no-deps
.pre-commit-config.yaml
@@ -33,7 +33,7 @@ repos:
33
- id: name-tests-test
34
args: ["--pytest-test-first"]
35
- repo: https://github.com/abravalheri/validate-pyproject
36
- rev: v0.14
+ rev: v0.15
37
hooks:
38
- id: validate-pyproject
39
name: Validate pyproject.toml
@@ -58,12 +58,12 @@ repos:
58
- id: auto-walrus
59
args: [--line-length, "100"]
60
- repo: https://github.com/psf/black
61
- rev: 23.9.1
+ rev: 23.10.0
62
63
- id: black
64
# - id: black-jupyter
65
- repo: https://github.com/astral-sh/ruff-pre-commit
66
- rev: v0.0.292
+ rev: v0.1.0
67
68
- id: ruff
69
args: [--fix-only, --show-fixes]
@@ -89,7 +89,7 @@ repos:
89
additional_dependencies: [tomli]
90
files: ^(graphblas_algorithms|docs)/
91
92
93
94
95
# `pyroma` may help keep our package standards up to date if best practices change.
graphblas_algorithms/algorithms/shortest_paths/weighted.py
@@ -27,7 +27,7 @@ def _bellman_ford_path_length(G, source, target=None, *, cutoff=None, name):
27
is_negative, iso_value = G.get_properties("has_negative_edges+ iso_value")
28
if not is_negative:
29
if cutoff is not None:
30
- cutoff = int(cutoff // iso_value)
+ cutoff = int(cutoff // iso_value.get())
31
d = _bfs_level(G, source, target, cutoff=cutoff, dtype=iso_value.dtype)
32
if dst_id is not None:
d = d.get(dst_id)
pyproject.toml
@@ -46,6 +46,7 @@ classifiers = [
46
"Programming Language :: Python :: 3.9",
47
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
+ "Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Intended Audience :: Developers",
"Intended Audience :: Other Audience",
@@ -80,7 +81,7 @@ changelog = "https://github.com/python-graphblas/graphblas-algorithms/releases"
80
81
test = [
82
"pytest",
83
"networkx >=3.0",
- "scipy >=1.8",
84
+ "scipy >=1.9",
85
"setuptools",
86
"tomli",
87
]
@@ -133,7 +134,7 @@ dirty_template = "{tag}+{ccount}.g{sha}.dirty"
133
134
135
[tool.black]
136
line-length = 100
-target-version = ["py39", "py310", "py311"]
137
+target-version = ["py39", "py310", "py311", "py312"]
138
139
[tool.isort]
140
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments