Skip to content

Commit

Permalink
mypy cfg file to ignore missing stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-florentin-charles committed Jan 8, 2024
1 parent c8cf6ae commit e6b5163
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import Union

import matplotlib.pyplot as plt
from flasgger import Swagger, swag_from # type: ignore
from flasgger import Swagger, swag_from
from flask import Flask, jsonify, request, Response, send_file

import src.api.swagger.parameters_specs as param
Expand Down
2 changes: 2 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[mypy]
ignore_missing_imports = True
2 changes: 1 addition & 1 deletion src/api/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from http import HTTPStatus
from typing import Optional, Union

from flasgger import Schema, fields # type: ignore
from flasgger import Schema, fields

from src.core.utils.enums.months import Month
from src.core.utils.enums.seasons import Season
Expand Down
8 changes: 4 additions & 4 deletions src/core/models/yearly_rainfall.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from scipy import signal # type: ignore
from sklearn.cluster import KMeans # type: ignore
from sklearn.linear_model import LinearRegression # type: ignore
from sklearn.metrics import r2_score # type: ignore
from scipy import signal
from sklearn.cluster import KMeans
from sklearn.linear_model import LinearRegression
from sklearn.metrics import r2_score

from src.core.utils.decorators import plots
from src.core.utils.enums.labels import Label
Expand Down

0 comments on commit e6b5163

Please sign in to comment.