Skip to content

Commit 9a716bf

Browse files
authored
Responses to review comments (#22)
Add initial changes responding to review comments and implementing new features. Ready for release.
1 parent 7b83411 commit 9a716bf

File tree

12 files changed

+588
-40039
lines changed

12 files changed

+588
-40039
lines changed

.github/workflows/lint.yml

+3
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@ jobs:
3434
- name: Run ruff
3535
run: poetry run ruff check .
3636

37+
- name: Run Cython lint
38+
run: poetry run cython-lint .
39+
3740
- name: Run mypy
3841
run: poetry run mypy .

.github/workflows/tests.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.9", "3.10", "3.11", "3.12"]
18+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1919
poetry-version: ["1.8.1"]
2020

2121
steps:
@@ -33,10 +33,5 @@ jobs:
3333
- name: Install dependencies
3434
run: poetry install --with dev
3535

36-
#- name: Install dependencies
37-
# run: |
38-
# python -m pip install -r build_requirements.txt
39-
# python -m pip install -r test_requirements.txt
40-
# python setup.py build_ext --inplace
4136
- name: Test with pytest
4237
run: poetry run pytest

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ venv
112112

113113
# Cython
114114
*.html
115+
*.cpp
116+
*.c
115117

116118
speed/
117119

poetry.lock

+41-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "cynetdiff"
3-
version = "0.1.13"
3+
version = "0.1.14"
44
description = "A fast network diffusion library"
55
authors = ["Eliot W. Robson <[email protected]>"]
66
license = "MIT"
@@ -19,6 +19,7 @@ classifiers = [
1919
"Programming Language :: Python :: 3.10",
2020
"Programming Language :: Python :: 3.11",
2121
"Programming Language :: Python :: 3.12",
22+
"Programming Language :: Python :: 3.13",
2223
"Topic :: Scientific/Engineering :: Mathematics",
2324
"Intended Audience :: Science/Research",
2425
]
@@ -56,6 +57,7 @@ ruff = "^0.3.0"
5657
pandas-stubs = "^2.2.0.240218"
5758
types-tqdm = "^4.66.0.20240106"
5859
cython = "^3.0.9"
60+
cython-lint = "^0.16.2"
5961

6062
[tool.poetry.group.docs]
6163
optional = true
@@ -69,10 +71,8 @@ mkdocstrings-python = "^1.7.3"
6971
setuptools = "^69.0.3"
7072

7173

72-
# NOTE to enable Cython generation during development, add "cython" to the
73-
# build dependencies before doing "poetry install".
7474
[build-system]
75-
requires = ["poetry-core", "setuptools"]
75+
requires = ["poetry-core", "setuptools", "cython"]
7676
build-backend = "poetry.core.masonry.api"
7777

7878
[tool.poetry.build]
@@ -81,7 +81,7 @@ generate-setup-file = false
8181

8282

8383
[tool.mypy]
84-
python_version = "3.10"
84+
python_version = "3.13"
8585

8686
[[tool.mypy.overrides]]
8787
module = ["networkx.*", "Cython.*", "ndlib.*", "pooch.*", "matplotlib.*"]

0 commit comments

Comments
 (0)