-
Notifications
You must be signed in to change notification settings - Fork 1
First commits for Base Application Logic #2
base: develop
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 2748793141
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started reviewing, but I have to stop for now. Please feel free to let me know if you have questions about anything that I commented on. I will try to come back to this tomorrow to review the remaining files.
Also, you probably want to remove the following files from source control:
src/api/.Dockerfile.swp
src/api/openapi/.openapi.yaml.swp
And I suspect that you also no longer need src/api/data/secret.txt
, but I wasn't 100% sure about that one.
*.DS_store | ||
*.vscode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put these into their own sections and alphabetize the sections, e.g.
## IDE - VS Code ##
.vscode
## MacOS ##
.DS_store
## Python ##
...
### Running unit and system tests ### | ||
|
||
In addition to the pre-commit checks the CI system will run the suite | ||
of unit and system tests that are included with this project. To run | ||
these tests locally execute `pytest` from the root of the project. | ||
|
||
We encourage any updates to these tests to improve the overall code | ||
coverage. If your pull request adds new functionality we would | ||
appreciate it if you extend existing test cases, or add new ones to | ||
exercise the newly added code. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you delete this block of text?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This must have gotten removed unintentionally. I'll get it added back.
src/api/models/customer.py
Outdated
from datetime import date, datetime # noqa: F401 | ||
from typing import Dict, List # noqa: F401 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you importing these if you are not using them?
src/api/models/customer.py
Outdated
:param uuid: The uuid of this Customer. # noqa: E501 | ||
:type uuid: str | ||
:param name: The name of this Customer. # noqa: E501 | ||
:type name: str | ||
:param contact: The contact of this Customer. # noqa: E501 | ||
:type contact: str | ||
:param status: The status of this Customer. # noqa: E501 | ||
:type status: str | ||
""" | ||
# noqa: E501 | ||
self.swagger_types = { | ||
"uuid": str, | ||
"name": str, | ||
"contact": str, | ||
"status": str, | ||
} # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More unnecessary E501
and type: ignore
s that should be taken care of here and below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in b0be2dc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The E501
s are taken care of here, but I'm going to leave this conversation open until the type: ignore
s have also been sorted out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. I'm working on the cleanup now and will reference the commit here once it's pushed up. There shouldn't be a need for any linter exceptions, honestly. We should address the root issues now to keep things clean.
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
…tical Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
…i/__main__.py Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
…lass description. ignored D205
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
…roller.py Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
🗣 Description
This covers the initial commits for the Li-PCA Web Application project and base framework setup.
💭 Motivation and context
Getting the Li-PCA Web application foundation in place for testing and further development.
🧪 Testing
Run
docker compose up -d
orpip install -e . && python3 -m api
(see README) in the root of the repo to run this project and test.✅ Pre-approval checklist
in code comments.
to reflect the changes in this PR.
✅ Pre-merge checklist
✅ Post-merge checklist