Skip to content

Commit 245bffd

Browse files
authored
Merge pull request #336 from yozachar/workshop
maint: rectifies changelog
2 parents c2d3fb7 + e77d571 commit 245bffd

File tree

24 files changed

+136
-182
lines changed

24 files changed

+136
-182
lines changed

.github/workflows/docs.yaml.bkp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
- name: Checkout repository
1818
uses: actions/checkout@v3
1919
# set up specific python version
20-
- name: Set up Python v3.11
20+
- name: Set up Python v3.12
2121
uses: actions/setup-python@v4
2222
with:
23-
python-version: "3.11"
23+
python-version: "3.12"
2424
# building
2525
- name: Install 'documentation' dependencies
2626
run: |

.github/workflows/pycqa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
fail-fast: true
3636
matrix:
3737
os: [ubuntu-latest, macos-latest, windows-latest]
38-
python-version: ["3.8", "3.9", "3.10", "3.11"]
38+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
3939
runs-on: ${{ matrix.os }}
4040
steps:
4141
# checkout repository again!

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ cython_debug/
173173
# asdf
174174
.tool-versions
175175

176-
# rtx
176+
# rtx/mise
177177
.rtx.toml
178+
.mise.toml
178179

179180
# ruff
180181
.ruff_cache

CHANGES.md

Lines changed: 122 additions & 72 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ True
3333
[sast-link]: https://github.com/python-validators/validators/actions/workflows/sast.yaml
3434
[pycqa-badge]: https://github.com/python-validators/validators/actions/workflows/pycqa.yaml/badge.svg
3535
[pycqa-link]: https://github.com/python-validators/validators/actions/workflows/pycqa.yaml
36-
[docs-badge]: https://github.com/python-validators/validators/actions/workflows/docs.yaml/badge.svg
37-
[docs-link]: https://github.com/python-validators/validators/actions/workflows/docs.yaml
36+
[docs-badge]: https://github.com/yozachar/pyvalidators/actions/workflows/pages/pages-build-deployment/badge.svg
37+
[docs-link]: https://github.com/yozachar/pyvalidators/actions/workflows/pages/pages-build-deployment
3838
[vs-badge]: https://img.shields.io/pypi/v/validators?logo=pypi&logoColor=white&label=version&color=blue
3939
[vs-link]: https://pypi.python.org/pypi/validators/
4040
[dw-badge]: https://img.shields.io/pypi/dm/validators?logo=pypi&logoColor=white&color=blue

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ True
3333
[sast-link]: https://github.com/python-validators/validators/actions/workflows/sast.yaml
3434
[pycqa-badge]: https://github.com/python-validators/validators/actions/workflows/pycqa.yaml/badge.svg
3535
[pycqa-link]: https://github.com/python-validators/validators/actions/workflows/pycqa.yaml
36-
[docs-badge]: https://github.com/python-validators/validators/actions/workflows/docs.yaml/badge.svg
37-
[docs-link]: https://github.com/python-validators/validators/actions/workflows/docs.yaml
36+
[docs-badge]: https://github.com/yozachar/pyvalidators/actions/workflows/pages/pages-build-deployment/badge.svg
37+
[docs-link]: https://github.com/yozachar/pyvalidators/actions/workflows/pages/pages-build-deployment
3838
[vs-badge]: https://img.shields.io/pypi/v/validators?logo=pypi&logoColor=white&label=version&color=blue
3939
[vs-link]: https://pypi.python.org/pypi/validators/
4040
[dw-badge]: https://img.shields.io/pypi/dm/validators?logo=pypi&logoColor=white&color=blue

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ typeCheckingMode = "strict"
120120
pythonpath = ["src"]
121121

122122
[tool.ruff]
123-
select = [
123+
lint.select = [
124124
# Pyflakes
125125
"F",
126126
# pycodestyle
@@ -139,15 +139,15 @@ line-length = 100
139139
target-version = "py38"
140140
extend-exclude = ["**/__pycache__", ".pytest_cache", "site"]
141141

142-
[tool.ruff.isort]
142+
[tool.ruff.lint.isort]
143143
# case-sensitive = true
144144
combine-as-imports = true
145145
force-sort-within-sections = true
146146
force-wrap-aliases = true
147147
known-local-folder = ["src"]
148148
relative-imports-order = "closest-to-furthest"
149149

150-
[tool.ruff.pydocstyle]
150+
[tool.ruff.lint.pydocstyle]
151151
convention = "google"
152152

153153
[tool.tox]

src/validators/_extremes.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class AbsMax:
1919
# Output: True
2020
>>> AbsMax > 99999999999999999
2121
# Output: True
22-
23-
> *New in version 0.2.0*.
2422
"""
2523

2624
def __ge__(self, other: Any):
@@ -42,8 +40,6 @@ class AbsMin:
4240
# Output: True
4341
>>> AbsMin < ''
4442
# Output: True
45-
46-
> *New in version 0.2.0*.
4743
"""
4844

4945
def __le__(self, other: Any):

src/validators/btc_address.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ def btc_address(value: str, /):
4646
If `value` is a valid bitcoin address.
4747
(ValidationError):
4848
If `value` is an invalid bitcoin address.
49-
50-
> *New in version 0.18.0*.
5149
"""
5250
if not value:
5351
return False

src/validators/card.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ def card_number(value: str, /):
3030
If `value` is a valid generic card number.
3131
(ValidationError):
3232
If `value` is an invalid generic card number.
33-
34-
> *New in version 0.15.0*.
3533
"""
3634
if not value:
3735
return False
@@ -63,8 +61,6 @@ def visa(value: str, /):
6361
If `value` is a valid Visa card number.
6462
(ValidationError):
6563
If `value` is an invalid Visa card number.
66-
67-
> *New in version 0.15.0*.
6864
"""
6965
pattern = re.compile(r"^4")
7066
return card_number(value) and len(value) == 16 and pattern.match(value)
@@ -89,8 +85,6 @@ def mastercard(value: str, /):
8985
If `value` is a valid Mastercard card number.
9086
(ValidationError):
9187
If `value` is an invalid Mastercard card number.
92-
93-
> *New in version 0.15.0*.
9488
"""
9589
pattern = re.compile(r"^(51|52|53|54|55|22|23|24|25|26|27)")
9690
return card_number(value) and len(value) == 16 and pattern.match(value)
@@ -115,8 +109,6 @@ def amex(value: str, /):
115109
If `value` is a valid American Express card number.
116110
(ValidationError):
117111
If `value` is an invalid American Express card number.
118-
119-
> *New in version 0.15.0*.
120112
"""
121113
pattern = re.compile(r"^(34|37)")
122114
return card_number(value) and len(value) == 15 and pattern.match(value)
@@ -141,8 +133,6 @@ def unionpay(value: str, /):
141133
If `value` is a valid UnionPay card number.
142134
(ValidationError):
143135
If `value` is an invalid UnionPay card number.
144-
145-
> *New in version 0.15.0*.
146136
"""
147137
pattern = re.compile(r"^62")
148138
return card_number(value) and len(value) == 16 and pattern.match(value)
@@ -167,8 +157,6 @@ def diners(value: str, /):
167157
If `value` is a valid Diners Club card number.
168158
(ValidationError):
169159
If `value` is an invalid Diners Club card number.
170-
171-
> *New in version 0.15.0*.
172160
"""
173161
pattern = re.compile(r"^(30|36|38|39)")
174162
return card_number(value) and len(value) in {14, 16} and pattern.match(value)
@@ -193,8 +181,6 @@ def jcb(value: str, /):
193181
If `value` is a valid JCB card number.
194182
(ValidationError):
195183
If `value` is an invalid JCB card number.
196-
197-
> *New in version 0.15.0*.
198184
"""
199185
pattern = re.compile(r"^35")
200186
return card_number(value) and len(value) == 16 and pattern.match(value)
@@ -219,8 +205,6 @@ def discover(value: str, /):
219205
If `value` is a valid Discover card number.
220206
(ValidationError):
221207
If `value` is an invalid Discover card number.
222-
223-
> *New in version 0.15.0*.
224208
"""
225209
pattern = re.compile(r"^(60|64|65)")
226210
return card_number(value) and len(value) == 16 and pattern.match(value)

0 commit comments

Comments
 (0)