-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved Recommender to Its Own Repo (#8)
* refactor db to use sqlalchemy * tests: updated tests for refactored db * added sqlalchemy to requirements * blackified * fix process_result_value type annotation * tests: fix importing db in test_db * change dialect annotation type to Any * tests: replace db tests with new_dv tests * rename create_session to init_db, move get_session definition to module level * add sqlalchemy-stubs for mypy tests * fix initializing db in init * move db initialization to bot.main * mock database to avoid network requests in tests * fix references to database in bot.py * make session a keyword param to pass tests * update reference to database in __init__.get_user * fix KeyError in __init__.get_user * tests: added test for __init__.get_user * replace "Allerter" with "allerter" * add newline to geniust.VERSION * added comparing geniust.VERSION with git tag version * rename push branch in github action * bump version to 2.4.0 * added executing workflow on tags * fix tags syntax error * really fix tags syntax error * really really fix tags syntax error * fix tags syntax error * use double asterisk * added/updated docstring in api.py * added/updated docstring in bot.py * added/updated docstring in db.py * added/updated docstring in recommender.py * added/updated docstring in song.py * added/updated docstring in server.py * added/updated docstring in utils.py * blackified * bump runtime python to 3.8.8 * fix comparing tag_version and file_version in workflow, removed debug step * remove recommender data and class * removed recommender handlers from server * added typing.Dict import in db * added Recommender to API * removed lastfm api key * update recommender references * Complete api.Recommender * Added access token to api.Recommender * tests: added and updated tests * added recommender token to GH workflow * Blackified * Bump pyyaml to 5.4
- Loading branch information
Showing
40 changed files
with
900 additions
and
55,012 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black |
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 +1 @@ | ||
2.3.0 | ||
2.4.0 |
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
Oops, something went wrong.