Skip to content

Commit 3ec55d2

Browse files
committed
2 parents ccd6c06 + a295438 commit 3ec55d2

329 files changed

Lines changed: 173444 additions & 13779 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codespellrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[codespell]
2+
ignore-words-list = fallow

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
matrix:
2828
package: [datamodels, pipeline, webservice]
2929
steps:
30-
- uses: actions/checkout@v5
30+
- uses: actions/checkout@v6
3131
with:
3232
fetch-depth: 0
3333
- name: Check datamodels build

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ jobs:
2828
runs-on: [ubuntu-latest, macos-14]
2929

3030
steps:
31-
- uses: actions/checkout@v5
31+
- uses: actions/checkout@v6
3232
with:
3333
fetch-depth: 0
3434

3535
- name: Set up pixi
36-
uses: prefix-dev/setup-pixi@v0.9.2
36+
uses: prefix-dev/setup-pixi@v0.9.4
3737
with:
3838
pixi-version: v0.59.0
3939
environments: ${{ matrix.python-version }}
@@ -54,6 +54,6 @@ jobs:
5454
pixi run pytest src/ca_biositing/webservice --cov=ca_biositing.webservice --cov-report=xml --cov-append --cov-report=term-missing
5555
5656
- name: Upload coverage report
57-
uses: codecov/codecov-action@v5.5.1
57+
uses: codecov/codecov-action@v5.5.2
5858
with:
5959
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
# If you do not check out your code, Copilot will do this for you.
2727
steps:
2828
- name: Checkout code
29-
uses: actions/checkout@v5
29+
uses: actions/checkout@v6
3030

3131
- name: Set up pixi
32-
uses: prefix-dev/setup-pixi@v0.9.2
32+
uses: prefix-dev/setup-pixi@v0.9.4
3333
with:
3434
pixi-version: v0.56.0
3535
cache: false # No caching

.github/workflows/gh-pages.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Deploy Resource Info to GitHub Pages
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths: &asset-paths
7+
- "resources/assets/resource_info.csv"
8+
- "resources/assets/resource_info_header_mapping.json"
9+
- "resources/assets/index.html"
10+
- "scripts/validate_headers.py"
11+
- "scripts/csv_to_json.py"
12+
- ".github/workflows/gh-pages.yml"
13+
push:
14+
branches:
15+
- main
16+
paths: *asset-paths
17+
18+
permissions:
19+
contents: read
20+
pages: write
21+
id-token: write
22+
23+
concurrency:
24+
group: pages-${{ github.ref }}
25+
cancel-in-progress: true
26+
27+
jobs:
28+
validate:
29+
name: Validate resource info assets
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v6
33+
34+
- name: Validate header mapping is in sync with CSV
35+
run: python scripts/validate_headers.py
36+
37+
build-and-deploy:
38+
name: Build and deploy to GitHub Pages
39+
needs: validate
40+
if: github.ref == 'refs/heads/main'
41+
runs-on: ubuntu-latest
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
steps:
46+
- uses: actions/checkout@v6
47+
48+
- name: Convert CSV to JSON
49+
run: python scripts/csv_to_json.py
50+
51+
- name: Build site
52+
run: |
53+
mkdir -p _site
54+
cp resources/assets/resource_info.json _site/
55+
cp resources/assets/resource_info_header_mapping.json _site/
56+
cp resources/assets/index.html _site/
57+
58+
- name: Upload Pages artifact
59+
uses: actions/upload-pages-artifact@v4
60+
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,30 @@ venv/
3333
# Local Data
3434
data/interim/
3535
data/processed/
36+
data/landiq/*.shp
37+
data/landiq/*.shx
38+
data/landiq/*.dbf
39+
data/landiq/*.prj
40+
data/landiq/*.cpg
41+
data/landiq/*.xml
42+
*.csv
43+
!src/ca_biositing/pipeline/ca_biositing/pipeline/etl/transform/landiq/*.csv
44+
!resources/assets/*.csv
3645

3746
# Credentials
3847
credentials.json
3948

4049
# macOS
4150
.DS_Store
51+
52+
# Jupyter Notebooks
53+
.ipynb_checkpoints/
54+
55+
# Tools
56+
pgschema
57+
58+
# Pulumi
59+
.pulumi/
60+
61+
# Agents Braindump
62+
.agents/

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ repos:
1111
- id: check-merge-conflict
1212
- id: check-symlinks
1313
- id: check-yaml
14+
exclude: ^mkdocs\.yml$
1415
- id: debug-statements
1516
- id: end-of-file-fixer
1617
- id: mixed-line-ending
@@ -27,7 +28,7 @@ repos:
2728
rev: "v2.4.1"
2829
hooks:
2930
- id: codespell
30-
exclude: (\.ipynb$|pixi\.lock)
31+
exclude: (\.ipynb$|pixi\.lock|temp_external_datasets/)
3132

3233
- repo: local
3334
hooks:
@@ -38,7 +39,7 @@ repos:
3839
exclude: .pre-commit-config.yaml
3940

4041
- repo: https://github.com/python-jsonschema/check-jsonschema
41-
rev: "0.34.1"
42+
rev: "0.36.2"
4243
hooks:
4344
- id: check-dependabot
4445
- id: check-github-workflows

.vscode/settings.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
{
2+
// For the Python language server / IntelliSense in VS Code.
3+
// These are NOT runtime PYTHONPATH entries — they help the language server
4+
// resolve imports across the PEP 420 namespace packages.
5+
"python.analysis.extraPaths": [
6+
"${workspaceFolder}/src/ca_biositing/pipeline",
7+
"${workspaceFolder}/src/ca_biositing/datamodels",
8+
"${workspaceFolder}/src/ca_biositing/webservice"
9+
],
210
"python.defaultInterpreterPath": "${workspaceFolder}/.pixi/envs/default/bin/python",
3-
"python-envs.defaultEnvManager": "ms-python.python:system"
11+
"python-envs.defaultEnvManager": "ms-python.python:system",
12+
// Ensure the Jupyter extension starts notebooks with the workspace as root.
13+
"jupyter.notebookFileRoot": "${workspaceFolder}"
414
}

0 commit comments

Comments
 (0)