-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add typing to confidant unit tests (#392)
Typing was added to confidant unit tests. This is to further improve the service. `run-piptools` was utilized for adding the new requirements and the mypy configurations were added per the infradocs. Some versions were pinned due to conflicting deprecation of functions, mainly flask (and the flask dependencies) due to a change in [werkzeug](https://werkzeug.palletsprojects.com/en/2.1.x/changes/#version-2-1-0) which deprecated the `safe_str_cmp` function. These changes were tested locally by running the service per the [docs](https://lyft.github.io/confidant/contributing.html). `mypy` was added to the `pre-commit` configuration. `pre-commit` was utilized as another avenue for testing everything is working correctly. Finally `pytest` was ran to ensure all the unit tests were passing correctly.
- Loading branch information
1 parent
85a6676
commit 96c5f5b
Showing
26 changed files
with
484 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# | ||
# This file is autogenerated by pip-compile with python 3.6 | ||
# To update, run: | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# by the following command: | ||
# | ||
# pip-compile | ||
# cd ~/src/confidant-private/upstream && run-piptools | ||
# | ||
|
||
pip==21.3.1 | ||
setuptools==59.1.1 | ||
pip==23.1.2 | ||
# via -r /code/piptools/bootstrap_ins/requirements.in | ||
setuptools==68.0.0 | ||
# via -r /code/piptools/bootstrap_ins/requirements.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# by the following command: | ||
# | ||
# cd ~/src/confidant-private/upstream && run-piptools | ||
# | ||
|
||
pip==23.1.2 | ||
# via -r /code/piptools/bootstrap_ins/requirements.in | ||
setuptools==68.0.0 | ||
# via -r /code/piptools/bootstrap_ins/requirements.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.