Skip to content

Commit

Permalink
adds nx_snap_gapped_endings
Browse files Browse the repository at this point in the history
  • Loading branch information
songololo committed Oct 26, 2024
1 parent 0953304 commit 68d3545
Show file tree
Hide file tree
Showing 14 changed files with 332 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Build docs
run: |
uv sync --dev
python docs/generate_docs.py
poe run generate_docs
- run: cd docs && npm install && npm run build && cd ..
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Build docs
run: |
uv sync --dev
python docs/generate_docs.py
poe generate_docs
- run: cd docs && npm install && npm run build && cd ..
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ jobs:
- name: Verify project
run: |
uv sync
ruff format
ruff check
pyright .
uv build
pytest ./tests
poe verify_project
linux:
runs-on: ubuntu-latest
needs: check
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/publish_package_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ jobs:
- name: Verify project
run: |
uv sync
ruff format
ruff check
pyright .
uv build
pytest ./tests
poe verify_project
linux:
runs-on: ubuntu-latest
needs: check
Expand Down
Empty file added .vscode/extensions.json
Empty file.
20 changes: 4 additions & 16 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"scss.validate": false,
"stylelint.enable": true,
"stylelint.validate": ["css", "postcss", "vue"],
"stylelint.packageManager": "pnpm",
"stylelint.reportInvalidScopeDisables": true,
"stylelint.reportNeedlessDisables": true,
"prettier.documentSelectors": ["**/*.astro"],
Expand All @@ -20,14 +19,6 @@
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"notebook.lineNumbers": "on",
"notebook.diff.ignoreMetadata": true,
"notebook.diff.ignoreOutputs": true,
"notebook.formatOnSave.enabled": true,
"notebook.codeActionsOnSave": {
"notebook.source.fixAll": "explicit",
"notebook.source.organizeImports": "explicit"
},
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
Expand All @@ -36,11 +27,8 @@
},
"editor.defaultFormatter": "charliermarsh.ruff"
},
"python.testing.pytestEnabled": true,
"python.analysis.completeFunctionParens": true,
"python.analysis.indexing": true,
"python.analysis.autoImportCompletions": true,
"python.languageServer": "Pylance",
"python.testing.pytestArgs": ["."],
"python.testing.unittestEnabled": false
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true
},
}
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ features = ["pyo3/extension-module"]

# ruff pending script support
# https://github.com/astral-sh/uv/issues/5903#issuecomment-2360856896
[tool.scripts]
[tool.poe.tasks]
generate_docs = "python docs/generate_docs.py"
docs_dev = { shell = "uv run docstyle && uv run generate_docs && npm run dev --prefix docs" }
docs_build = { shell = "uv run docstyle && uv run generate_docs && npm run build --prefix docs" }
docs_preview = { shell = "uv run docstyle && uv run generate_docs && npm run preview --prefix docs" }
docs_dev = { shell = "uv run generate_docs && npm run dev --prefix docs" }
docs_build = { shell = "uv run generate_docs && npm run build --prefix docs" }
docs_preview = { shell = "uv run generate_docs && npm run preview --prefix docs" }
verify_project = { shell = "ruff format && ruff check && pyright . && pytest ./tests" }

[tool.uv]
Expand All @@ -87,6 +87,7 @@ dev-dependencies = [
"utm>=0.7.0",
"ruff>=0.5.1",
"pyright>=1.1.380",
"poethepoet>=0.29.0",
]

[build-system]
Expand Down
3 changes: 2 additions & 1 deletion pysrc/cityseer/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
from queue import Queue

import numpy as np
from cityseer import rustalgos
from tqdm import tqdm

from cityseer import rustalgos

np.seterr(invalid="ignore")


Expand Down
1 change: 1 addition & 0 deletions pysrc/cityseer/metrics/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from functools import partial

import geopandas as gpd

from cityseer import config, rustalgos

logging.basicConfig(level=logging.INFO)
Expand Down
1 change: 1 addition & 0 deletions pysrc/cityseer/metrics/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
from typing import Any

import geopandas as gpd

from cityseer import config, rustalgos

logging.basicConfig(level=logging.INFO)
Expand Down
3 changes: 2 additions & 1 deletion pysrc/cityseer/metrics/observe.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@

import networkx as nx
import numpy as np
from tqdm import tqdm

from cityseer import config
from cityseer.tools import graphs
from tqdm import tqdm

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
Expand Down
Loading

0 comments on commit 68d3545

Please sign in to comment.