Skip to content

Commit

Permalink
Add pydantic and user input models (#77)
Browse files Browse the repository at this point in the history
* adding pydantic dependency

* Added user input models.

Co-authored-by: Erika Nesse <[email protected]>
Co-authored-by: Alan Pinkert <[email protected]>
Co-authored-by: Debajyoti Debnath <[email protected]>
Co-authored-by: harry <[email protected]>

* Added SummaryOutput class.
Refactored docstrings to 72 character maximum.
Refactored if-else statement.

Co-authored-by: Erika Nesse <[email protected]>
Co-authored-by: Nate <[email protected]>
Co-authored-by: harry <[email protected]>
Co-authored-by: Debajyoti Debnath <[email protected]>
Co-authored-by: Jeff Korenstein <[email protected]>

* black

* Moved Pydantic models into split folder

Co-authored-by: Erika Nesse <[email protected]>
Co-authored-by: harry <[email protected]>
Co-authored-by: Debajyoti Debnath <[email protected]>
Co-authored-by: Jonathan Kwan <[email protected]>
Co-authored-by: Nate <[email protected]>

* updated pydantic models

* Refactor Home class in engine.py.

* changes from this session

* cleaned up code from halloween!

* added SummaryInput to home

* Fixed black

Co-authored-by: harry <[email protected]>
Co-authored-by: Erika Nesse <[email protected]>
Co-authored-by: Debajyoti Debnath <[email protected]>
Co-authored-by: KKaempen <[email protected]>
Co-authored-by: Alan Pinkert <[email protected]>

* fix mypy

* added entry point functions, inclusion code conversion, and weather data class

Co-authored-by: Jonathan Kwan <[email protected]>
Co-authored-by: Debajyoti Debnath <[email protected]>
Co-authored-by: Erika Nesse <[email protected]>

* updated tests based on new framework

Co-authored-by: harry <[email protected]>

* fix lints

* fixed datetime parsing

Co-authored-by: Debajyoti Debnath <[email protected]>
Co-authored-by: Jonathan Kwan <[email protected]>

* mypy fix

---------

Co-authored-by: Jonathan Kwan <[email protected]>
Co-authored-by: Erika Nesse <[email protected]>
Co-authored-by: Alan Pinkert <[email protected]>
Co-authored-by: Debajyoti Debnath <[email protected]>
Co-authored-by: harry <[email protected]>
Co-authored-by: Nate <[email protected]>
Co-authored-by: Jeff Korenstein <[email protected]>
Co-authored-by: KKaempen <[email protected]>
  • Loading branch information
9 people authored Nov 29, 2023
1 parent bf0aa2f commit 1f36ec5
Show file tree
Hide file tree
Showing 17 changed files with 619 additions and 318 deletions.
3 changes: 2 additions & 1 deletion rules-engine/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ name="rules-engine"
version="0.0.1"
requires-python=">=3.8"
dependencies = [
"numpy"
"numpy",
"pydantic"
]

[project.optional-dependencies]
Expand Down
12 changes: 11 additions & 1 deletion rules-engine/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile pyproject.toml
#
annotated-types==0.5.0
# via pydantic
numpy==1.24.4
# via rules-engine (pyproject.toml)
pydantic==2.3.0
# via rules-engine (pyproject.toml)
pydantic-core==2.6.3
# via pydantic
typing-extensions==4.8.0
# via
# pydantic
# pydantic-core
Loading

0 comments on commit 1f36ec5

Please sign in to comment.