Skip to content

Commit

Permalink
Updated patterns to libphonenumber v8.13.29 (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstislon committed Jan 26, 2024
1 parent 12968f4 commit a574dbb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pep8-naming pytest black pytest-cov phonenumbers==8.13.28
python -m pip install flake8 pep8-naming pytest black pytest-cov phonenumbers==8.13.29
python -m pip install -e .
- name: Flake8
run: |
Expand Down
6 changes: 3 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
black = "==23.12.1"
flake8 = "==6.1.0"
black = "==24.1.0"
flake8 = "==7.0.0"
pep8-naming = "==0.13.3"
phonenumbers = "==8.13.28"
phonenumbers = "==8.13.29"
pytest = "==7.4.4"
pytest-cov = "==4.1.0"
requests = "==2.31.0"
Expand Down
3 changes: 1 addition & 2 deletions phone_gen/_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ class StringNode(metaclass=ABCMeta):
"""The abstract class for all nodes"""

@abstractmethod
def render(self):
... # pragma: no cover
def render(self): ... # pragma: no cover


@dataclass(frozen=True)
Expand Down
26 changes: 13 additions & 13 deletions phone_gen/patterns.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
"""
Auto-generated file 2024-01-17 10:12:12 UTC
Resource: https://github.com/google/libphonenumber v8.13.28
Auto-generated file 2024-01-26 09:33:33 UTC
Resource: https://github.com/google/libphonenumber v8.13.29
"""


PATTERNS = {
"info": "libphonenumber v8.13.28",
"info": "libphonenumber v8.13.29",
"data": {
"AC": {
"code": "247",
Expand Down Expand Up @@ -71,7 +71,7 @@
"AU": {
"code": "61",
"pattern": "(((((2([0-26-9][\\d])|(3[0-8])|(4[02-9])|(5[0135-9]))|(7([013-57-9][\\d])|(2[0-8]))[\\d])|(3(([0-3589][\\d])|(6[1-9])|(7[0-35-9])[\\d])|(4([0-578][\\d])|(90)))[\\d][\\d])|(8(51(0(0[03-9])|([12479][\\d])|(3[2-9])|(5[0-8])|(6[1-9])|(8[0-7]))|(1([0235689][\\d])|(1[0-69])|(4[0-589])|(7[0-47-9]))|(2(0[0-79])|([18][13579])|(2[14-9])|(3[0-46-9])|([4-6][\\d])|(7[89])|(9[0-4]))|(3[\\d][\\d]))|((6[0-8])|([78][\\d])[\\d]{3})|(9([02-9][\\d]{3})|(1(([0-58][\\d])|(6[0135-9])[\\d])|(7(0[0-24-9])|([1-9][\\d]))|(9([0-46-9][\\d])|(5[0-79])))))[\\d]{3}))",
"mobile": "((4((79)|(94)[01])|(83[0-389])[\\d]{5})|(4([0-3][\\d])|(4[047-9])|(5[0-25-9])|(6[0-26-9])|(7[02-8])|(8[0-24-9])|(9[0-37-9])[\\d]{6}))",
"mobile": "((4((79)|(94)[01])|(83[0-389])[\\d]{5})|(4([0-3][\\d])|(4[047-9])|(5[0-25-9])|(6[0-36-9])|(7[02-8])|(8[0-24-9])|(9[0-37-9])[\\d]{6}))",
},
"AW": {
"code": "297",
Expand Down Expand Up @@ -196,7 +196,7 @@
"CC": {
"code": "61",
"pattern": "((8(51(0(02)|(31)|(60)|(89))|(1(18)|(76))|(223))|(91(0(1[0-2])|(29))|(1([28]2)|(50)|(79))|(2(10)|(64))|(3([06]8)|(22))|(4[29]8)|(62[\\d])|(70[23])|(959))[\\d]{3}))",
"mobile": "((4((79)|(94)[01])|(83[0-389])[\\d]{5})|(4([0-3][\\d])|(4[047-9])|(5[0-25-9])|(6[0-26-9])|(7[02-8])|(8[0-24-9])|(9[0-37-9])[\\d]{6}))",
"mobile": "((4((79)|(94)[01])|(83[0-389])[\\d]{5})|(4([0-3][\\d])|(4[047-9])|(5[0-25-9])|(6[0-36-9])|(7[02-8])|(8[0-24-9])|(9[0-37-9])[\\d]{6}))",
},
"CD": {
"code": "243",
Expand Down Expand Up @@ -271,7 +271,7 @@
"CX": {
"code": "61",
"pattern": "((8(51(0(01)|(30)|(59)|(88))|(1(17)|(46)|(75))|(2(22)|(35)))|(91(00[6-9])|(1([28]1)|(49)|(78))|(2(09)|(63))|(3(12)|(26)|(75))|(4(56)|(97))|(64[\\d])|(7(0[01])|(1[0-2]))|(958))[\\d]{3}))",
"mobile": "((4((79)|(94)[01])|(83[0-389])[\\d]{5})|(4([0-3][\\d])|(4[047-9])|(5[0-25-9])|(6[0-26-9])|(7[02-8])|(8[0-24-9])|(9[0-37-9])[\\d]{6}))",
"mobile": "((4((79)|(94)[01])|(83[0-389])[\\d]{5})|(4([0-3][\\d])|(4[047-9])|(5[0-25-9])|(6[0-36-9])|(7[02-8])|(8[0-24-9])|(9[0-37-9])[\\d]{6}))",
},
"CY": {
"code": "357",
Expand All @@ -281,7 +281,7 @@
"CZ": {
"code": "420",
"pattern": "(((2[\\d])|(3[1257-9])|(4[16-9])|(5[13-9])[\\d]{7}))",
"mobile": "(((60[1-8])|(7(0[2-5])|([2379][\\d]))[\\d]{6}))",
"mobile": "((7060[\\d]{5})|((60[1-8])|(7(0[2-5])|([2379][\\d]))[\\d]{6}))",
},
"DE": {
"code": "49",
Expand Down Expand Up @@ -400,7 +400,7 @@
},
"GF": {
"code": "594",
"pattern": "((594([02-49][\\d])|(1[0-4])|(5[6-9])|(6[0-3])|(80)[\\d]{4}))",
"pattern": "((594([02-49][\\d])|(1[0-5])|(5[6-9])|(6[0-3])|(80)[\\d]{4}))",
"mobile": "((694([0-249][\\d])|(3[0-8])[\\d]{4}))",
},
"GG": {
Expand Down Expand Up @@ -697,8 +697,8 @@
},
"MH": {
"code": "692",
"pattern": "(((247)|(45[78])|(528)|(625)[\\d]{4}))",
"mobile": "((((23)|(54)5)|(329)|(45[356])[\\d]{4}))",
"pattern": "(((247)|(528)|(625)[\\d]{4}))",
"mobile": "((((23)|(54)5)|(329)|(45[35-8])[\\d]{4}))",
},
"MK": {
"code": "389",
Expand Down Expand Up @@ -732,7 +732,7 @@
},
"MQ": {
"code": "596",
"pattern": "((596([03-7][\\d])|(10)|(2[7-9])|(8[0-39])|(9[04-9])[\\d]{4}))",
"pattern": "((596([03-7][\\d])|(1[05])|(2[7-9])|(8[0-39])|(9[04-9])[\\d]{4}))",
"mobile": "((69(6([0-46-9][\\d])|(5[0-6]))|(727)[\\d]{4}))",
},
"MR": {
Expand Down Expand Up @@ -1064,7 +1064,7 @@
"TH": {
"code": "66",
"pattern": "(((1[0689])|(2[\\d])|(3[2-9])|(4[2-5])|(5[2-6])|(7[3-7])[\\d]{6}))",
"mobile": "((671[0-8][\\d]{5})|((14)|(6[1-6])|([89][\\d])[\\d]{7}))",
"mobile": "((67(1[0-8])|(2[4-7])[\\d]{5})|((14)|(6[1-6])|([89][\\d])[\\d]{7}))",
},
"TJ": {
"code": "992",
Expand Down Expand Up @@ -1203,7 +1203,7 @@
},
"YT": {
"code": "262",
"pattern": "((269(0[0-467])|(5[0-4])|(6[\\d])|([78]0)[\\d]{4}))",
"pattern": "((269(0[0-467])|(15)|(5[0-4])|(6[\\d])|([78]0)[\\d]{4}))",
"mobile": "((639(0[0-79])|(1[019])|([267][\\d])|(3[09])|(40)|(5[05-9])|(9[04-79])[\\d]{4}))",
},
"ZA": {
Expand Down
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
max-line-length = 88
count = True
extend-ignore = E203
exclude = patterns.py, __version__.py
exclude = patterns.py, __version__.py

[coverage:run]
omit = phone_gen/__version__.py

0 comments on commit a574dbb

Please sign in to comment.