Skip to content

Commit

Permalink
Merge pull request #357 from yozachar/workshop
Browse files Browse the repository at this point in the history
patch: moves `country_code` module to `country` module
  • Loading branch information
yozachar authored Apr 3, 2024
2 parents cab0c87 + ad23b27 commit 11b083b
Show file tree
Hide file tree
Showing 10 changed files with 448 additions and 214 deletions.
5 changes: 5 additions & 0 deletions docs/api/country.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# country

::: validators.country.calling_code
::: validators.country.country_code
::: validators.country.currency
7 changes: 7 additions & 0 deletions docs/api/country.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
country
-------

.. module:: validators.country
.. autofunction:: calling_code
.. autofunction:: country_code
.. autofunction:: currency
3 changes: 0 additions & 3 deletions docs/api/country_code.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/api/country_code.rst

This file was deleted.

2 changes: 1 addition & 1 deletion mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ nav:
- api/between.md
- api/btc_address.md
- api/card.md
- api/country_code.md
- api/country.md
- api/cron.md
- api/domain.md
- api/email.md
Expand Down
6 changes: 4 additions & 2 deletions src/validators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .between import between
from .btc_address import btc_address
from .card import amex, card_number, diners, discover, jcb, mastercard, unionpay, visa
from .country_code import country_code
from .country import calling_code, country_code, currency
from .cron import cron
from .domain import domain
from .email import email
Expand Down Expand Up @@ -37,8 +37,10 @@
"mastercard",
"visa",
"unionpay",
# ...
# country
"calling_code",
"country_code",
"currency",
# ...
"cron",
# ...
Expand Down
Loading

0 comments on commit 11b083b

Please sign in to comment.