Skip to content

Commit

Permalink
move to a new directory for crypto addresses validators
Browse files Browse the repository at this point in the history
  • Loading branch information
msamsami committed Jun 25, 2024
1 parent a7bcfda commit 2f300bc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/validators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

# local
from .between import between
from .btc_address import btc_address
from .card import amex, card_number, diners, discover, jcb, mastercard, unionpay, visa
from .country import calling_code, country_code, currency
from .cron import cron
from .crypto_addresses.btc_address import btc_address
from .domain import domain
from .email import email
from .encoding import base58, base64
Expand Down Expand Up @@ -33,12 +33,9 @@
from .utils import ValidationError, validator
from .uuid import uuid

# from .crypto_addresses import eth_address

__all__ = (
# ...
"between",
# crypto_addresses
"btc_address",
# cards
"amex",
Expand Down
1 change: 1 addition & 0 deletions src/validators/crypto_addresses/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Crypto addresses."""
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

# local
from .utils import validator
from validators.utils import validator


def _decode_base58(addr: str):
Expand Down
1 change: 1 addition & 0 deletions tests/crypto_addresses/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Test crypto addresses."""
File renamed without changes.

0 comments on commit 2f300bc

Please sign in to comment.