-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60e4085
commit 4cfebeb
Showing
81 changed files
with
5,513 additions
and
1,439 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[tool.ruff] | ||
# Exclude a variety of commonly ignored directories. | ||
exclude = [ | ||
".bzr", | ||
".direnv", | ||
".eggs", | ||
".git", | ||
".git-rewrite", | ||
".hg", | ||
".mypy_cache", | ||
".nox", | ||
".pants.d", | ||
".pytype", | ||
".ruff_cache", | ||
".svn", | ||
".tox", | ||
".venv", | ||
"__pypackages__", | ||
"_build", | ||
"buck-out", | ||
"build", | ||
"dist", | ||
"node_modules", | ||
"venv", | ||
"migrations", | ||
"aioredis", | ||
"tests", | ||
|
||
] | ||
|
||
# Same as Black. | ||
line-length = 120 | ||
indent-width = 4 | ||
|
||
# Assume Python 3.8 | ||
target-version = "py311" | ||
|
||
[tool.ruff.lint] | ||
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. | ||
select = ["E", "F", "W"] | ||
ignore = [] | ||
|
||
# Allow fix for all enabled rules (when `--fix`) is provided. | ||
fixable = ["ALL"] | ||
unfixable = [] | ||
|
||
# Allow unused variables when underscore-prefixed. | ||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | ||
|
||
[tool.ruff.format] | ||
# Like Black, use double quotes for strings. | ||
quote-style = "double" | ||
|
||
# Like Black, indent with spaces, rather than tabs. | ||
indent-style = "space" | ||
|
||
# Like Black, respect magic trailing commas. | ||
skip-magic-trailing-comma = false | ||
|
||
# Like Black, automatically detect the appropriate line ending. | ||
line-ending = "auto" | ||
|
||
|
||
[tool.mypy] | ||
exclude = [ | ||
"venv", | ||
"src.aioredis" | ||
] | ||
explicit_package_bases = true | ||
mypy_path = "src" |
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,66 +1,52 @@ | ||
aiosqlite==0.17.0 | ||
amqp==5.2.0 | ||
annotated-types==0.6.0 | ||
anyio==4.2.0 | ||
asgiref==3.7.2 | ||
anyio==4.3.0 | ||
async-timeout==4.0.3 | ||
asyncpg==0.29.0 | ||
billiard==4.2.0 | ||
celery==5.3.6 | ||
certifi==2024.2.2 | ||
charset-normalizer==3.3.2 | ||
click==8.1.7 | ||
click-didyoumean==0.3.0 | ||
click-didyoumean==0.3.1 | ||
click-plugins==1.1.1 | ||
click-repl==0.3.0 | ||
contourpy==1.2.0 | ||
contourpy==1.2.1 | ||
cycler==0.12.1 | ||
dnspython==2.5.0 | ||
ecdsa==0.18.0 | ||
email-validator==2.1.0.post1 | ||
fastapi==0.109.2 | ||
dnspython==2.6.1 | ||
ecdsa==0.19.0 | ||
email_validator==2.1.1 | ||
fastapi==0.110.1 | ||
fastapi-authtools==0.6.2 | ||
fonttools==4.48.1 | ||
gunicorn==21.2.0 | ||
h11==0.14.0 | ||
httpcore==1.0.2 | ||
httpx==0.26.0 | ||
fonttools==4.51.0 | ||
idna==3.6 | ||
iso8601==1.1.0 | ||
kiwisolver==1.4.5 | ||
kombu==5.3.5 | ||
matplotlib==3.8.2 | ||
motor==3.3.2 | ||
mpmath==1.3.0 | ||
nest-asyncio==1.6.0 | ||
kombu==5.3.6 | ||
matplotlib==3.8.4 | ||
numpy==1.26.4 | ||
packaging==23.2 | ||
pandas==2.2.0 | ||
packaging==24.0 | ||
pandas==2.2.1 | ||
passlib==1.7.4 | ||
pillow==10.2.0 | ||
pillow==10.3.0 | ||
prompt-toolkit==3.0.43 | ||
pyasn1==0.5.1 | ||
pydantic==2.6.1 | ||
pydantic-settings==2.1.0 | ||
pydantic_core==2.16.2 | ||
pymongo==4.6.1 | ||
pyparsing==3.1.1 | ||
pyasn1==0.6.0 | ||
pydantic==2.0.2 | ||
pydantic-settings==2.2.1 | ||
pydantic_core==2.1.2 | ||
pyparsing==3.1.2 | ||
pypika-tortoise==0.1.6 | ||
python-dateutil==2.8.2 | ||
python-dateutil==2.9.0.post0 | ||
python-dotenv==1.0.1 | ||
python-jose==3.3.0 | ||
pytz==2024.1 | ||
redis==5.0.1 | ||
requests==2.31.0 | ||
redis==5.0.3 | ||
rsa==4.9 | ||
ruff==0.3.5 | ||
six==1.16.0 | ||
sniffio==1.3.0 | ||
starlette==0.36.3 | ||
sympy==1.12 | ||
sniffio==1.3.1 | ||
starlette==0.37.2 | ||
tortoise-orm==0.20.0 | ||
typing_extensions==4.9.0 | ||
typing_extensions==4.11.0 | ||
tzdata==2024.1 | ||
urllib3==2.2.0 | ||
uvicorn==0.27.1 | ||
vine==5.1.0 | ||
wcwidth==0.2.13 |
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,6 +1,18 @@ | ||
from datetime import datetime | ||
|
||
from pydantic import BaseModel | ||
|
||
from src.apps.sciences.schemas import FormulaListSchema, CategoryListSchema | ||
|
||
|
||
class DownloadFile(BaseModel): | ||
filename: str | ||
extension: str | ||
|
||
|
||
class HistoryListSchema(BaseModel): | ||
id: str | ||
result: float | str | ||
date_time: datetime | ||
formula: FormulaListSchema | ||
category: CategoryListSchema |
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
Oops, something went wrong.