Skip to content

Commit

Permalink
add missing comments and declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
imperosol committed Nov 3, 2023
1 parent dcf73fe commit b8deac1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/validators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .email import email
from .hashes import md5, sha1, sha224, sha256, sha512
from .hostname import hostname
from .i18n import es_cif, es_doi, es_nie, es_nif, fi_business_id, fi_ssn
from .i18n import es_cif, es_doi, es_nie, es_nif, fi_business_id, fi_ssn, fr_department, fr_ssn
from .iban import iban
from .ip_address import ipv4, ipv6
from .length import length
Expand Down Expand Up @@ -57,6 +57,8 @@
"es_nif",
"fi_business_id",
"fi_ssn",
"fr_department",
"fr_ssn",
# ...
"iban",
# ip addresses
Expand Down
12 changes: 11 additions & 1 deletion src/validators/i18n/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,15 @@
# local
from .es import es_cif, es_doi, es_nie, es_nif
from .fi import fi_business_id, fi_ssn
from .fr import fr_department, fr_ssn

__all__ = ("fi_business_id", "fi_ssn", "es_cif", "es_doi", "es_nie", "es_nif")
__all__ = (
"fi_business_id",
"fi_ssn",
"es_cif",
"es_doi",
"es_nie",
"es_nif",
"fr_department",
"fr_ssn",
)
2 changes: 2 additions & 0 deletions src/validators/i18n/fr.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
"""France."""

# standard
from functools import lru_cache
import re
import typing

# local
from validators.utils import validator


Expand Down
3 changes: 3 additions & 0 deletions tests/i18n/test_fr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
"""Test French validators."""

# external
import pytest

# local
from validators import ValidationError
from validators.i18n.fr import fr_department, fr_ssn

Expand Down

0 comments on commit b8deac1

Please sign in to comment.