Skip to content

Commit d9cc167

Browse files
committed
rerun notebooks
1 parent 422e71b commit d9cc167

22 files changed

+16639
-13099
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
files: "spopt\/"
1+
files: "spopt\/|notebooks\/"
22
repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
44
rev: "v0.11.4"

notebooks/azp.ipynb

+99-98
Large diffs are not rendered by default.

notebooks/component_policy.ipynb

+332-285
Large diffs are not rendered by default.

notebooks/facloc-disperse-real-world.ipynb

+272-221
Large diffs are not rendered by default.

notebooks/facloc-lscpb-real-world.ipynb

+369-271
Large diffs are not rendered by default.

notebooks/facloc-real-world.ipynb

+397-280
Large diffs are not rendered by default.

notebooks/lscp.ipynb

+211-195
Large diffs are not rendered by default.

notebooks/lscp_capacity.ipynb

+280-264
Large diffs are not rendered by default.

notebooks/lscp_gis.ipynb

+5,173-3,803
Large diffs are not rendered by default.

notebooks/lscpb.ipynb

+257-241
Large diffs are not rendered by default.

notebooks/maxp.ipynb

+171-170
Large diffs are not rendered by default.

notebooks/mclp.ipynb

+231-215
Large diffs are not rendered by default.

notebooks/mclp_gis.ipynb

+6,578-4,888
Large diffs are not rendered by default.

notebooks/p-center.ipynb

+214-198
Large diffs are not rendered by default.

notebooks/p-dispersion.ipynb

+212-196
Large diffs are not rendered by default.

notebooks/p-median.ipynb

+278-262
Large diffs are not rendered by default.

notebooks/p-median_variations.ipynb

+648-623
Large diffs are not rendered by default.

notebooks/randomregion.ipynb

+435-410
Large diffs are not rendered by default.

notebooks/reg-k-means.ipynb

+174-179
Large diffs are not rendered by default.

notebooks/skater.ipynb

+229-227
Large diffs are not rendered by default.

notebooks/ward.ipynb

+73-72
Large diffs are not rendered by default.

pyproject.toml

+5
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,18 @@ include = ["spopt", "spopt.*"]
8181

8282
[tool.ruff]
8383
line-length = 88
84+
extend-include = ["*.ipynb"]
8485
lint.select = ["E", "F", "W", "I", "UP", "N", "B", "A", "C4", "SIM", "ARG"]
8586

8687
[tool.ruff.lint.per-file-ignores]
8788
"*__init__.py" = [
8889
"F401", # imported but unused
8990
"F403", # star import; unable to detect undefined names
9091
]
92+
"*.ipynb" = [
93+
#"C408", # Unnecessary `dict` call
94+
"F401", # imported but unused
95+
]
9196

9297
[tool.coverage.run]
9398
source = ["./spopt"]

0 commit comments

Comments
 (0)