te25son / swole-v2 Goto Github PK
View Code? Open in Web Editor NEWAPI for tracking workouts built with FastAPI, edgedb, and poetry
License: Apache License 2.0
API for tracking workouts built with FastAPI, edgedb, and poetry
License: Apache License 2.0
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
pyproject.toml
python ^3.10
fastapi ^0.110.0
python-multipart ^0.0.9
uvicorn ^0.27.0
pydantic ^2.0.0
python-jose ^3.3.0
passlib ^1.7.4
python-dotenv ^1.0.0
edgedb ^1.2.0
gunicorn ^21.0.0
pydantic-settings ^2.0.1
pytest-cov ^4.0.0
click ^8.1.3
hypothesis ^6.61.0
pytest-asyncio ^0.23.0
uvloop ^0.19.0
pytest-xdist ^3.1.0
pytest-env ^1.0.0
pytest-random-order ^1.1.0
toml ^0.10.2
mypy ^1.1.1
ruff ^0.2.0
smokeshow ^0.4.0
polyfactory ^2.0.0
types-click ^7.1.8
There are currently 27 warnings when running pytest.
These need to be investigated and, ideally, removed.
../../Library/Caches/pypoetry/virtualenvs/swole-v2-XOUsbHQA-py3.12/lib/python3.12/site-packages/passlib/utils/__init__.py:854
../../Library/Caches/pypoetry/virtualenvs/swole-v2-XOUsbHQA-py3.12/lib/python3.12/site-packages/passlib/utils/__init__.py:854
../../Library/Caches/pypoetry/virtualenvs/swole-v2-XOUsbHQA-py3.12/lib/python3.12/site-packages/passlib/utils/__init__.py:854
../../Library/Caches/pypoetry/virtualenvs/swole-v2-XOUsbHQA-py3.12/lib/python3.12/site-packages/passlib/utils/__init__.py:854
../../Library/Caches/pypoetry/virtualenvs/swole-v2-XOUsbHQA-py3.12/lib/python3.12/site-packages/passlib/utils/__init__.py:854
/Users/timothy/Library/Caches/pypoetry/virtualenvs/swole-v2-XOUsbHQA-py3.12/lib/python3.12/site-packages/passlib/utils/__init__.py:854: DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13
from crypt import crypt as _crypt
tests/unit_tests/test_validators.py::test_check_valid_uuid
tests/api_tests/test_workouts.py::TestWorkouts::test_workout_update_fails_with_params[Test update with incorrectly formatted date fails]
tests/api_tests/test_workouts.py::TestWorkouts::test_add_exercise_fails_when_adding_exercise_from_other_user
tests/api_tests/test_users.py::TestUsers::test_user_create_multiple_succeeds
/Users/timothy/Library/Caches/pypoetry/virtualenvs/swole-v2-XOUsbHQA-py3.12/lib/python3.12/site-packages/pytest_asyncio/plugin.py:654: DeprecationWarning: There is no current event loop
old_loop = asyncio.get_event_loop()
tests/api_tests/test_workouts.py::TestWorkouts::test_workout_update_fails_with_params[Test update with incorrectly formatted date fails]
tests/api_tests/test_workouts.py::TestWorkouts::test_add_exercise_fails_when_adding_exercise_from_other_user
tests/api_tests/test_users.py::TestUsers::test_login_with_invalid_creds_fails
tests/api_tests/test_users.py::TestUsers::test_user_create_multiple_succeeds
/Users/timothy/Library/Caches/pypoetry/virtualenvs/swole-v2-XOUsbHQA-py3.12/lib/python3.12/site-packages/uvloop/__init__.py:31: DeprecationWarning: uvloop.install() is deprecated in favor of uvloop.run() starting with Python 3.12.
_warnings.warn(
tests/api_tests/test_workouts.py::TestWorkouts::test_workout_update_fails_with_params[Test update with incorrectly formatted date fails]
tests/api_tests/test_workouts.py::TestWorkouts::test_add_exercise_fails_when_adding_exercise_from_other_user
tests/api_tests/test_users.py::TestUsers::test_login_with_invalid_creds_fails
tests/api_tests/test_users.py::TestUsers::test_user_create_multiple_succeeds
/Users/timothy/Library/Caches/pypoetry/virtualenvs/swole-v2-XOUsbHQA-py3.12/lib/python3.12/site-packages/pytest_asyncio/plugin.py:749: DeprecationWarning: The event_loop fixture provided by pytest-asyncio has been redefined in
/Users/timothy/Personal/Swole-V2/tests/conftest.py:50
Replacing the event_loop fixture with a custom implementation is deprecated
and will lead to errors in the future.
If you want to request an asyncio event loop with a scope other than function
scope, use the "scope" argument to the asyncio mark when marking the tests.
If you want to return different types of event loops, use the event_loop_policy
fixture.
warnings.warn(
tests/api_tests/test_users.py::TestUsers::test_login_succeeds
tests/unit_tests/test_auth.py::TestAuth::test_get_current_user_succeeds
tests/unit_tests/test_auth.py::TestAuth::test_get_current_user_fails_with_incorrect_secret
tests/unit_tests/test_auth.py::TestAuth::test_get_current_user_fails_with_non_existing_user
tests/unit_tests/test_auth.py::TestAuth::test_inactive_user_fails
tests/unit_tests/test_auth.py::TestAuth::test_get_current_user_fails_with_invalid_token
/Users/timothy/Personal/Swole-V2/src/swole_v2/database/repositories/users.py:100: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
to_encode.update({"exp": datetime.utcnow() + timedelta(minutes=self.settings.TOKEN_EXPIRE)})
tests/unit_tests/test_auth.py::TestAuth::test_get_current_user_succeeds
tests/unit_tests/test_auth.py::TestAuth::test_get_current_user_fails_with_non_existing_user
tests/unit_tests/test_auth.py::TestAuth::test_inactive_user_fails
tests/unit_tests/test_auth.py::TestAuth::test_get_current_user_fails_with_invalid_token
/Users/timothy/Library/Caches/pypoetry/virtualenvs/swole-v2-XOUsbHQA-py3.12/lib/python3.12/site-packages/jose/jwt.py:311: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
now = timegm(datetime.utcnow().utctimetuple())
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
pyproject.toml
python ^3.10
fastapi ^0.111.0
python-multipart ^0.0.9
uvicorn ^0.29.0
pydantic ^2.0.0
python-jose ^3.3.0
passlib ^1.7.4
python-dotenv ^1.0.0
edgedb ^1.2.0
gunicorn ^21.0.0
pydantic-settings ^2.0.1
pytest-cov ^4.0.0
click ^8.1.3
hypothesis ^6.61.0
pytest-asyncio ^0.23.0
uvloop ^0.19.0
pytest-xdist ^3.1.0
pytest-env ^1.0.0
pytest-random-order ^1.1.0
toml ^0.10.2
mypy ^1.1.1
ruff ^0.4.0
smokeshow ^0.4.0
polyfactory ^2.0.0
types-click ^7.1.8
There isn't really any documentation other than the default provided by fastapi.
Add some documenation, including checks from ruff. Maybe use mkdocs...
There is no logging throughout the application. It should be added.
Could even try something interesting with loguru
Investigate reason for needing # noqa
comment introduced in #256
Ruff rules for type-checking: https://docs.astral.sh/ruff/rules/#flake8-type-checking-tch
Conventional Commits can be added for explicit commit history.
Configuration can be made use cz-git
for example
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.