Spaces:
Sleeping
Sleeping
marintosti12 commited on
Commit ·
2a3c0e5
1
Parent(s): 1f8244a
fix(ruff) : correction ruff
Browse files- poetry.lock +29 -1
- pyproject.toml +3 -0
- src/main.py +0 -1
- utils/scoring.py +1 -1
poetry.lock
CHANGED
|
@@ -818,6 +818,34 @@ files = [
|
|
| 818 |
{file = "rignore-0.6.4.tar.gz", hash = "sha256:e893fdd2d7fdcfa9407d0b7600ef2c2e2df97f55e1c45d4a8f54364829ddb0ab"},
|
| 819 |
]
|
| 820 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 821 |
[[package]]
|
| 822 |
name = "sentry-sdk"
|
| 823 |
version = "2.37.0"
|
|
@@ -1249,4 +1277,4 @@ files = [
|
|
| 1249 |
[metadata]
|
| 1250 |
lock-version = "2.0"
|
| 1251 |
python-versions = "^3.12"
|
| 1252 |
-
content-hash = "
|
|
|
|
| 818 |
{file = "rignore-0.6.4.tar.gz", hash = "sha256:e893fdd2d7fdcfa9407d0b7600ef2c2e2df97f55e1c45d4a8f54364829ddb0ab"},
|
| 819 |
]
|
| 820 |
|
| 821 |
+
[[package]]
|
| 822 |
+
name = "ruff"
|
| 823 |
+
version = "0.12.12"
|
| 824 |
+
description = "An extremely fast Python linter and code formatter, written in Rust."
|
| 825 |
+
optional = false
|
| 826 |
+
python-versions = ">=3.7"
|
| 827 |
+
files = [
|
| 828 |
+
{file = "ruff-0.12.12-py3-none-linux_armv6l.whl", hash = "sha256:de1c4b916d98ab289818e55ce481e2cacfaad7710b01d1f990c497edf217dafc"},
|
| 829 |
+
{file = "ruff-0.12.12-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:7acd6045e87fac75a0b0cdedacf9ab3e1ad9d929d149785903cff9bb69ad9727"},
|
| 830 |
+
{file = "ruff-0.12.12-py3-none-macosx_11_0_arm64.whl", hash = "sha256:abf4073688d7d6da16611f2f126be86523a8ec4343d15d276c614bda8ec44edb"},
|
| 831 |
+
{file = "ruff-0.12.12-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:968e77094b1d7a576992ac078557d1439df678a34c6fe02fd979f973af167577"},
|
| 832 |
+
{file = "ruff-0.12.12-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:42a67d16e5b1ffc6d21c5f67851e0e769517fb57a8ebad1d0781b30888aa704e"},
|
| 833 |
+
{file = "ruff-0.12.12-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b216ec0a0674e4b1214dcc998a5088e54eaf39417327b19ffefba1c4a1e4971e"},
|
| 834 |
+
{file = "ruff-0.12.12-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:59f909c0fdd8f1dcdbfed0b9569b8bf428cf144bec87d9de298dcd4723f5bee8"},
|
| 835 |
+
{file = "ruff-0.12.12-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9ac93d87047e765336f0c18eacad51dad0c1c33c9df7484c40f98e1d773876f5"},
|
| 836 |
+
{file = "ruff-0.12.12-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:01543c137fd3650d322922e8b14cc133b8ea734617c4891c5a9fccf4bfc9aa92"},
|
| 837 |
+
{file = "ruff-0.12.12-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2afc2fa864197634e549d87fb1e7b6feb01df0a80fd510d6489e1ce8c0b1cc45"},
|
| 838 |
+
{file = "ruff-0.12.12-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:0c0945246f5ad776cb8925e36af2438e66188d2b57d9cf2eed2c382c58b371e5"},
|
| 839 |
+
{file = "ruff-0.12.12-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:a0fbafe8c58e37aae28b84a80ba1817f2ea552e9450156018a478bf1fa80f4e4"},
|
| 840 |
+
{file = "ruff-0.12.12-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:b9c456fb2fc8e1282affa932c9e40f5ec31ec9cbb66751a316bd131273b57c23"},
|
| 841 |
+
{file = "ruff-0.12.12-py3-none-musllinux_1_2_i686.whl", hash = "sha256:5f12856123b0ad0147d90b3961f5c90e7427f9acd4b40050705499c98983f489"},
|
| 842 |
+
{file = "ruff-0.12.12-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:26a1b5a2bf7dd2c47e3b46d077cd9c0fc3b93e6c6cc9ed750bd312ae9dc302ee"},
|
| 843 |
+
{file = "ruff-0.12.12-py3-none-win32.whl", hash = "sha256:173be2bfc142af07a01e3a759aba6f7791aa47acf3604f610b1c36db888df7b1"},
|
| 844 |
+
{file = "ruff-0.12.12-py3-none-win_amd64.whl", hash = "sha256:e99620bf01884e5f38611934c09dd194eb665b0109104acae3ba6102b600fd0d"},
|
| 845 |
+
{file = "ruff-0.12.12-py3-none-win_arm64.whl", hash = "sha256:2a8199cab4ce4d72d158319b63370abf60991495fb733db96cd923a34c52d093"},
|
| 846 |
+
{file = "ruff-0.12.12.tar.gz", hash = "sha256:b86cd3415dbe31b3b46a71c598f4c4b2f550346d1ccf6326b347cc0c8fd063d6"},
|
| 847 |
+
]
|
| 848 |
+
|
| 849 |
[[package]]
|
| 850 |
name = "sentry-sdk"
|
| 851 |
version = "2.37.0"
|
|
|
|
| 1277 |
[metadata]
|
| 1278 |
lock-version = "2.0"
|
| 1279 |
python-versions = "^3.12"
|
| 1280 |
+
content-hash = "88ee0e0f68ec43cd0c2252d0397b9af4776345ce95db3cee571d8de7657d3223"
|
pyproject.toml
CHANGED
|
@@ -11,6 +11,9 @@ fastapi = {extras = ["standard"], version = "^0.116.1"}
|
|
| 11 |
uvicorn = "^0.35.0"
|
| 12 |
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
[build-system]
|
| 15 |
requires = ["poetry-core"]
|
| 16 |
build-backend = "poetry.core.masonry.api"
|
|
|
|
| 11 |
uvicorn = "^0.35.0"
|
| 12 |
|
| 13 |
|
| 14 |
+
[tool.poetry.group.dev.dependencies]
|
| 15 |
+
ruff = "^0.12.12"
|
| 16 |
+
|
| 17 |
[build-system]
|
| 18 |
requires = ["poetry-core"]
|
| 19 |
build-backend = "poetry.core.masonry.api"
|
src/main.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
from typing import Union
|
| 2 |
|
| 3 |
from fastapi import FastAPI
|
| 4 |
|
|
|
|
|
|
|
| 1 |
|
| 2 |
from fastapi import FastAPI
|
| 3 |
|
utils/scoring.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from sklearn.metrics import average_precision_score, make_scorer, precision_score, recall_score, f1_score,
|
| 2 |
from sklearn.model_selection import StratifiedKFold, cross_validate
|
| 3 |
|
| 4 |
|
|
|
|
| 1 |
+
from sklearn.metrics import average_precision_score, make_scorer, precision_score, recall_score, f1_score, roc_auc_score
|
| 2 |
from sklearn.model_selection import StratifiedKFold, cross_validate
|
| 3 |
|
| 4 |
|