Skip to content

Commit

Permalink
closes #46; Upgrade to Python 3.12 + ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-florentin-charles committed Aug 15, 2024
1 parent 5e3bb62 commit 048266e
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 10 deletions.
1 change: 1 addition & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""
FastAPI app run with Uvicorn.
"""

from __future__ import annotations

import io
Expand Down
19 changes: 9 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
matplotlib==3.7.2
numpy==1.24.3
pandas==2.0.3
pre-commit==3.5.0
pytest==7.4.0
PyYAML==6.0.1
scipy==1.11.4
Werkzeug==3.0.1
scikit-learn~=1.3.0
matplotlib~=3.9.2
numpy~=2.1.0rc1
pandas~=2.2.2
pre-commit~=3.8.0
pytest~=8.3.2
PyYAML~=6.0.2
scipy~=1.14.0
scikit-learn~=1.5.1
fastapi~=0.112.0
uvicorn~=0.30.6
pydantic~=2.8.2
starlette>=0.37.2
starlette~=0.38.2
1 change: 1 addition & 0 deletions src/api/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Collection of utility functions for API purposes.
"""

from __future__ import annotations

from fastapi import HTTPException
Expand Down
1 change: 1 addition & 0 deletions src/core/models/all_rainfall.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Provides an all-in-one class to manipulate rainfall data for every timeframe.
At a yearly, monthly and seasonal level.
"""

from __future__ import annotations

from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions src/core/models/monthly_rainfall.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Provides a rich class to manipulate Monthly Rainfall data.
"""

from __future__ import annotations

import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions src/core/models/seasonal_rainfall.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Provides a rich class to manipulate Seasonal Rainfall data.
"""

from __future__ import annotations

import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions src/core/models/yearly_rainfall.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Provides a rich class to manipulate Yearly Rainfall data.
"""

from __future__ import annotations

import operator as opr
Expand Down
1 change: 1 addition & 0 deletions src/core/utils/decorators/plots.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Provides decorators for plotting with Matplotlib.
"""

from functools import wraps
from typing import Callable

Expand Down
1 change: 1 addition & 0 deletions src/core/utils/functions/dataframe_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Provides functions to do operations on DataFrame objects
containing rainfall data over years.
"""

from __future__ import annotations

import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions src/core/utils/functions/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Provides functions to compute interesting and reusable generic metrics
over DataFrame containing rainfall data over years.
"""

from __future__ import annotations

from typing import Callable
Expand Down
1 change: 1 addition & 0 deletions src/core/utils/functions/plotting.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Provides useful functions for plotting rainfall data in all shapes.
"""

from __future__ import annotations

import pandas as pd
Expand Down

0 comments on commit 048266e

Please sign in to comment.