| 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 |
|
| 21 | 1 | def CEP(value): |
|
| 22 | 1 | try: |
|
| 23 | 1 | format_cep(value) |
|
| 24 | 1 | except ValueError as e: |
|
|
1 ignored issue
–
show
|
|||
| 25 | 1 | raise Invalid(e) |
|
| 26 | |||
| 27 | 1 | return clean_id(value) |
|
| 28 | |||
| 34 |
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.