Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

177 upgrade the python version of rules engine to 3.11.3 #179

Merged

Conversation

debajyotid2
Copy link
Collaborator

Changes include:

  • python version in pyproject.toml, requirements-dev.txt and requirements.txt files.
  • type annotations for List (replaced with list).
  • mixin of str and Enum replaced with StrEnum.

@debajyotid2 debajyotid2 requested review from alanisaac and eriksynn May 15, 2024 23:54
@debajyotid2 debajyotid2 linked an issue May 15, 2024 that may be closed by this pull request
@eriksynn
Copy link
Collaborator

Looks good. Go for it!

Copy link
Collaborator

@eriksynn eriksynn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Your change should go in before mine as I think I'll need to resolve a conflict in test_examples.py.

@debajyotid2 debajyotid2 reopened this May 17, 2024
@debajyotid2 debajyotid2 merged commit 3830bed into main May 17, 2024
17 of 19 checks passed
@debajyotid2 debajyotid2 deleted the 177-upgrade-the-python-version-of-rules-engine-to-3113 branch May 17, 2024 23:11
@debajyotid2
Copy link
Collaborator Author

Looks good. Your change should go in before mine as I think I'll need to resolve a conflict in test_examples.py.

Sounds good.

eriksynn added a commit that referenced this pull request May 21, 2024
eriksynn added a commit that referenced this pull request May 21, 2024
* added whole home heat loss rate to billing period outputs

Co-authored-by: Debajyoti Debnath <[email protected]>
Co-authored-by: eriksynn <[email protected]>
Co-authored-by: AdamFinkle <[email protected]>

* lint

* First attempt to add whole_home_heat_loss_rate test from example data

* Another approach to dynamically decorating a class

* Switched to using __dict__ to decorate the NGBillingRecordClass

* Final solution to adding billing period heat loss to example data

* Revert to subclass approach leveraging Sequence type to appease mypy

* Generate new example data from HLA spreadsheet examples and ensure tests pass.

* Check for more specific ua column heading and add more descriptive comment.

* Switch to built-in list to align with Deb's PR #179 changes.

* Align changes with Deb's PR #179

* Attempt to fix lint error in import statement formatting

---------

Co-authored-by: Alan Pinkert <[email protected]>
Co-authored-by: Debajyoti Debnath <[email protected]>
Co-authored-by: eriksynn <[email protected]>
Co-authored-by: AdamFinkle <[email protected]>
AdamFinkle pushed a commit to AdamFinkle/home-energy-analysis-tool that referenced this pull request May 22, 2024
…on#179)

* Modify python version to 3.11.3 in pyproject.toml.

* Replace List with list in type annotations.

* Change mixin of str and Enum to StrEnum in NaturalGasCompany.
AdamFinkle added a commit to AdamFinkle/home-energy-analysis-tool that referenced this pull request May 22, 2024
* added whole home heat loss rate to billing period outputs

Co-authored-by: Debajyoti Debnath <[email protected]>
Co-authored-by: eriksynn <[email protected]>
Co-authored-by: AdamFinkle <[email protected]>

* lint

* First attempt to add whole_home_heat_loss_rate test from example data

* Another approach to dynamically decorating a class

* Switched to using __dict__ to decorate the NGBillingRecordClass

* Final solution to adding billing period heat loss to example data

* Revert to subclass approach leveraging Sequence type to appease mypy

* Generate new example data from HLA spreadsheet examples and ensure tests pass.

* Check for more specific ua column heading and add more descriptive comment.

* Switch to built-in list to align with Deb's PR codeforboston#179 changes.

* Align changes with Deb's PR codeforboston#179

* Attempt to fix lint error in import statement formatting

---------

Co-authored-by: Alan Pinkert <[email protected]>
Co-authored-by: Debajyoti Debnath <[email protected]>
Co-authored-by: eriksynn <[email protected]>
Co-authored-by: AdamFinkle <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade the python version of rules engine to 3.11.3
2 participants