collerek/ormar

View on GitHub
ormar/models/metaclass.py

Summary

Maintainability
B
6 hrs
Test Coverage
A
100%

File metaclass.py has 635 lines of code (exceeds 500 allowed). Consider refactoring.
Open

import copy
import sys
import warnings
from pathlib import Path
from typing import (
Severity: Major
Found in ormar/models/metaclass.py - About 5 hrs to fix

    Function __new__ has 9 arguments (exceeds 6 allowed). Consider refactoring.
    Invalid

        def __new__(  # type: ignore # noqa: CCR001
    Severity: Major
    Found in ormar/models/metaclass.py - About 50 mins to fix

      Function copy_and_replace_m2m_through_model has 8 arguments (exceeds 6 allowed). Consider refactoring.
      Open

      def copy_and_replace_m2m_through_model(  # noqa: CFQ002
      Severity: Major
      Found in ormar/models/metaclass.py - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status