Skip to content

Commit 75b5a90

Browse files
committed
add dummy numpy call for deptry
1 parent 2213ac8 commit 75b5a90

File tree

11 files changed

+1350
-29
lines changed

11 files changed

+1350
-29
lines changed

.devcontainer/devcontainer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"name": "npa-howtopay",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
66
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
7-
"runArgs": [
8-
// avoid UID/GID remapping under rootless Podman
9-
"--userns=keep-id"
10-
],
11-
"features": {},
7+
"features": {
8+
// Install just
9+
"ghcr.io/guiyomh/features/just:0.1.0": {
10+
"version": "1.40.0"
11+
}},
1212

1313
// Use 'postCreateCommand' to run commands after the container is created.
1414
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Switchbox ticket
2+
description: Help describe what you're building and why
3+
title: "Short title that captures the 'What'"
4+
labels: []
5+
assignees: []
6+
body:
7+
- type: textarea
8+
id: what
9+
attributes:
10+
label: What
11+
description: Describe what you're building in 1-2 clear sentences. Focus on the end result, not the implementation details.
12+
placeholder: "Example: A new residential heat pump model that accounts for variable-speed compressor operation and ambient temperature derating effects."
13+
validations:
14+
required: true
15+
16+
- type: textarea
17+
id: why
18+
attributes:
19+
label: Why
20+
description: Explain the problem this solves or the value it creates. Include context about who benefits and why this matters now.
21+
placeholder: "Example: Current OCHRE heat pump models assume fixed-speed operation, leading to 15-20% overestimation of energy consumption in moderate climates. This enhancement will improve accuracy for policy analyses evaluating electrification incentives and grid impact studies."
22+
validations:
23+
required: true
24+
25+
- type: textarea
26+
id: how
27+
attributes:
28+
label: How
29+
description: Outline your approach or key steps. This doesn't need to be exhaustive - just enough to show you have a plan.
30+
placeholder: "Example:\n1. Implement variable-speed compressor performance curves from AHRI standards\n2. Add ambient temperature correction factors based on manufacturer data\n3. Integrate with existing OCHRE thermal model architecture\n4. Validate against lab test data and field measurements"
31+
validations:
32+
required: false
33+
34+
- type: textarea
35+
id: deliverables
36+
attributes:
37+
label: Deliverables
38+
description: List the specific outputs others can expect. Be concrete about what will be delivered.
39+
placeholder: "- New HeatPumpVarSpeed class extending base OCHRE equipment\n- Performance curve parameter database\n- Unit tests with validation data\n- Documentation with physics equations and policy use cases"
40+
validations:
41+
required: true

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
python-version: ${{ matrix.python-version }}
4545

4646
- name: Run tests
47-
run: uv run python -m pytest tests
47+
run: uv run python -m pytest tests
4848

4949
- name: Check typing
5050
run: uv run mypy

.github/workflows/on-release-main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,3 @@ jobs:
6464

6565
- name: Deploy documentation
6666
run: uv run mkdocs gh-deploy --force
67-

default/foo.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

pyproject.toml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ classifiers = [
1717
"Programming Language :: Python :: 3.13",
1818
"Topic :: Software Development :: Libraries :: Python Modules",
1919
]
20+
dependencies = [
21+
"numpy>=2.0.2",
22+
]
2023

2124
[project.urls]
2225
Homepage = "https://switchbox-data.github.io/npa-howtopay/"
@@ -30,7 +33,7 @@ dev = [
3033
"tox-uv>=1.11.3",
3134
"deptry>=0.23.0",
3235
"mypy>=0.991",
33-
36+
3437
"ruff>=0.11.5",
3538
"mkdocs>=1.4.2",
3639
"mkdocs-material>=8.5.10",
@@ -42,10 +45,14 @@ requires = ["hatchling"]
4245
build-backend = "hatchling.build"
4346

4447
[tool.hatch.build.targets.wheel]
45-
packages = ["default"]
48+
packages = ["npa_howtopay"]
49+
50+
# Include YAML scenario files in the wheel
51+
[tool.hatch.build.targets.wheel.include]
52+
"npa_howtopay/data/*.yaml" = "data"
4653

4754
[tool.mypy]
48-
files = ["default"]
55+
files = ["src/npa_howtopay"]
4956
disallow_untyped_defs = true
5057
disallow_any_unimported = true
5158
no_implicit_optional = true
@@ -107,5 +114,3 @@ ignore = [
107114

108115
[tool.ruff.format]
109116
preview = true
110-
111-

src/npa_howtopay/data/dummy.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# maybe we store scenario details here
2+
# example:
3+
# - name: "ca_pge_high_electrification"
4+
# description: "This is a description ca_pge_high_electrification"
5+
# default starting values for project size, cost, ror, etc

src/npa_howtopay/model.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import numpy as np
2+
3+
4+
def create_array() -> np.ndarray:
5+
"""Create a simple numpy array for demonstration."""
6+
return np.array([1, 2, 3, 4, 5])

src/npa_howtopay/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def dummy_function() -> str:
2+
return "dummy"

0 commit comments

Comments
 (0)