Conditions | 2 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | 1 | from voluptuous import Invalid |
|
22 | 1 | def CEP(value): |
|
23 | 1 | try: |
|
24 | 1 | format_cep(value) |
|
25 | 1 | except ValueError as e: |
|
1 ignored issue
–
show
|
|||
26 | 1 | raise Invalid(e) |
|
27 | |||
28 | 1 | return clean_id(value) |
|
29 | |||
46 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.