BaptisteZloch/Quant-Invest-Lab

View on GitHub
quant_invest_lab/reports.py

Summary

Maintainability
D
2 days
Test Coverage

File reports.py has 916 lines of code (exceeds 250 allowed). Consider refactoring.
Open

from scipy.stats import skew, kurtosis
from typing import Optional, Union, Literal
import pandas as pd
import numpy as np
from math import pi
Severity: Major
Found in quant_invest_lab/reports.py - About 2 days to fix

    Function print_backtest_report has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    def print_backtest_report(
        trades_df: pd.DataFrame,
        ohlcv_df: pd.DataFrame,
        timeframe: Timeframe,
        initial_equity: Union[int, float] = 1000,
    Severity: Minor
    Found in quant_invest_lab/reports.py - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status