Skip to content

Commit b8deac1

Browse files
committed
add missing comments and declarations
1 parent dcf73fe commit b8deac1

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

src/validators/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .email import email
1010
from .hashes import md5, sha1, sha224, sha256, sha512
1111
from .hostname import hostname
12-
from .i18n import es_cif, es_doi, es_nie, es_nif, fi_business_id, fi_ssn
12+
from .i18n import es_cif, es_doi, es_nie, es_nif, fi_business_id, fi_ssn, fr_department, fr_ssn
1313
from .iban import iban
1414
from .ip_address import ipv4, ipv6
1515
from .length import length
@@ -57,6 +57,8 @@
5757
"es_nif",
5858
"fi_business_id",
5959
"fi_ssn",
60+
"fr_department",
61+
"fr_ssn",
6062
# ...
6163
"iban",
6264
# ip addresses

src/validators/i18n/__init__.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,15 @@
55
# local
66
from .es import es_cif, es_doi, es_nie, es_nif
77
from .fi import fi_business_id, fi_ssn
8+
from .fr import fr_department, fr_ssn
89

9-
__all__ = ("fi_business_id", "fi_ssn", "es_cif", "es_doi", "es_nie", "es_nif")
10+
__all__ = (
11+
"fi_business_id",
12+
"fi_ssn",
13+
"es_cif",
14+
"es_doi",
15+
"es_nie",
16+
"es_nif",
17+
"fr_department",
18+
"fr_ssn",
19+
)

src/validators/i18n/fr.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
"""France."""
22

3+
# standard
34
from functools import lru_cache
45
import re
56
import typing
67

8+
# local
79
from validators.utils import validator
810

911

tests/i18n/test_fr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
"""Test French validators."""
22

3+
# external
34
import pytest
5+
6+
# local
47
from validators import ValidationError
58
from validators.i18n.fr import fr_department, fr_ssn
69

0 commit comments

Comments
 (0)