Test Failed
Push — master ( 63ff63...fafd44 )
by Francisco Manzano
08:52
created

econopy.rates   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 5

5 Functions

Rating   Name   Duplication   Size   Complexity  
A interes_semestral_simple() 0 2 1
A interes_cuatrimestral_simple() 0 2 1
A interes_anual_simple() 0 2 1
A interes_trimestral_simple() 0 2 1
A interes_mensual_simple() 0 2 1
1
"""Tipos module."""
2
3
from .. import MENSUAL, SEMESTRAL, CUATRIMESTRAL, TRIMESTRAL
4
5
6
def interes_mensual_simple(rate):
0 ignored issues
show
Coding Style introduced by
This function should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
7
    return rate / MENSUAL
8
9
10
def interes_semestral_simple(rate):
0 ignored issues
show
Coding Style introduced by
This function should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
11
    return rate / SEMESTRAL
12
13
14
def interes_cuatrimestral_simple(rate):
0 ignored issues
show
Coding Style introduced by
This function should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
15
    return rate / CUATRIMESTRAL
16
17
18
def interes_trimestral_simple(rate):
0 ignored issues
show
Coding Style introduced by
This function should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
19
    return rate / TRIMESTRAL
20
21
22
def interes_anual_simple(rate, temp_mode):
0 ignored issues
show
Coding Style introduced by
This function should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
23
    return rate * temp_mode
24