diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5ace460 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e8e9a4f..dd3a068 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,13 +16,13 @@ repos: - id: trailing-whitespace - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.3" + rev: "v3.1.0" hooks: - id: prettier types_or: [markdown, yaml] - repo: https://github.com/nbQA-dev/nbQA - rev: "1.7.0" + rev: "1.7.1" hooks: - id: nbqa-isort additional_dependencies: [isort] diff --git a/environment.yml b/environment.yml index 31fe2b7..0da6d16 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ channels: - conda-forge dependencies: - jupyterlab - - osmnx=1.8.1 + - osmnx=1.9.0 - pillow - pre-commit - python=3.11.* diff --git a/notebooks/01-overview-osmnx.ipynb b/notebooks/01-overview-osmnx.ipynb index 5cb03e5..f37ffeb 100644 --- a/notebooks/01-overview-osmnx.ipynb +++ b/notebooks/01-overview-osmnx.ipynb @@ -345,7 +345,7 @@ "outputs": [], "source": [ "# turn off strict mode and see what nodes we'd remove, in yellow\n", - "nc = [\"r\" if ox.simplification._is_endpoint(G, node) else \"y\" for node in G.nodes()]\n", + "nc = [\"r\" if ox.simplification._is_endpoint(G, node, None) else \"y\" for node in G.nodes()]\n", "fig, ax = ox.plot_graph(G, node_color=nc)" ] }, diff --git a/notebooks/04-simplify-graph-consolidate-nodes.ipynb b/notebooks/04-simplify-graph-consolidate-nodes.ipynb index bcf9636..ef652f6 100644 --- a/notebooks/04-simplify-graph-consolidate-nodes.ipynb +++ b/notebooks/04-simplify-graph-consolidate-nodes.ipynb @@ -150,7 +150,7 @@ "outputs": [], "source": [ "# show which nodes we'd remove if we simplify it (yellow)\n", - "nc = [\"r\" if ox.simplification._is_endpoint(G, node) else \"y\" for node in G.nodes()]\n", + "nc = [\"r\" if ox.simplification._is_endpoint(G, node, None) else \"y\" for node in G.nodes()]\n", "fig, ax = ox.plot_graph(G, node_color=nc)" ] }, @@ -183,7 +183,7 @@ "outputs": [], "source": [ "# turn off strict mode and see what nodes we'd remove\n", - "nc = [\"r\" if ox.simplification._is_endpoint(G, node, strict=False) else \"y\" for node in G.nodes()]\n", + "nc = [\"r\" if ox.simplification._is_endpoint(G, node, [\"osmid\"]) else \"y\" for node in G.nodes()]\n", "fig, ax = ox.plot_graph(G, node_color=nc)" ] },