Skip to content

Conversation

@pombredanne
Copy link
Owner

No description provided.

maint: reformats `card` module, fix typo
- Uses type hints, improve docs
- Regards [RFC 1034](https://www.rfc-editor.org/rfc/rfc1034) and [RFC 2782](https://www.rfc-editor.org/rfc/rfc2782)
- Updates corresponding test functions

**Related items**

*Issues*

- Closes #52
- Closes #74
- Closes #81
- Closes #89
- Closes #95
- Closes #120
- Closes #124
- Closes #141
- Closes #143
- Closes #199
- Closes #204

*PRs*

- Closes #114
- Closes #179
maint: improves `domain` module
- removes internal module `_extremes.py` from `__init__.py`
- moves segwit pattern compilation to func
- makes card's `value` parameter positional-only
- uses `functools.wraps` to preserve wrapped func signature
maint: minor improvements
- Uses type hints, improve relevant docs
- `email` now has coupling with `domain` module
- moves `whitelist` parameter for future enhancements
- Regards [RFC 1034](https://www.rfc-editor.org/rfc/rfc1034), [RFC 5321](https://www.rfc-editor.org/rfc/rfc5321) and [RFC 5322](https://www.rfc-editor.org/rfc/rfc5322)
- Updates corresponding tests

**Related Items**

*Issues*

- Closes #22
- Closes #64
- Closes #115
- Closes #153
- Closes #197

*PRs*

- Closes #134
maint: improves `email` module
- new doc dependencies: `mkdocs`, `mkdocs-material` and `mkdocstrings`
- auto reference documentation using `mkdocstrings`
- moves `pytest` to "tests" dependency group
- install only pytest for testing in github-ci
- adds pre-commit-hooks

**Related Items**

*Issues*

- Closes #169

*PRs*

- Closes #173
feat: auto docs using mkdocstrings
- re-formats `hashes` and `iban.py`, fix typos
- Uses type hints, adds relevant doc refs
- Updates corresponding tests
maint: improve `hashes` and `iban` modules
- reformats `mac_address`, `slug` and `uuid` modules
- removes less relevant `truthy` module
- uses type hints, adds doc refs
- updates related tests

**Related items**

*Issues*

- Closes #101
- Closes #109
maint: improves `mac_address`, `slug` and `uuid`
- use `bandit` instead of `codeql`
- updates docstring
- makes `value` positional only argument
fix: misc fixes, use bandit
- uses Python's powerful inbuilt `ipaddress` library
- CIDR validation is now default via func argument
- compiles ip address test cases into a single module
- fixes bad `poetry.lock` file, update md docs

**Related items**

*Issues*

- Closes #152

*PRs*

- Closes #158
maint: improves `ip_address` module
- hostname can be
  - a simple alpha-numeral, in the context of system names
  - an ip address, in the context of URLs
  - a domain name, in the context of URLs
  - in all the above cases, it can be with or without port number
- adds tests, update docs

**Related items**

*PRs*

- Closes #220
feat: adds `hostname` validator
- email's domain part is now compliant to RFC 5321
- it can also accept simple hostname (like `localhost`)
- fix missing `utf-8` comment

**Related Items**

*Issues*

- Closes #108
- Closes #142
maint: update `email` module
- Moves port validator to its own function

**Related items**

*Issues*

- Closes #185
maint: simplified `hostname` module
- in `domain`: decode value to `utf-8` instead of `ascii`; use `re.match` directly
- in `email`: split `ip_address` to `ipv4` and `ipv6` parameters
- in `hostname`: split `skip_ip_addr` to skip `ipv4` & `ipv6` parameters
maint: improve `domain`, `email` & `hostname`
TheDrunkenBear and others added 30 commits March 29, 2025 01:48
Validator russian individual tax number
Enhances `validators.url` to allow
- restricting the allowed schemes (e.g. to accept only https,
                                   and nothing else)
- relaxing the allowed schemes to also accept less known schemes
  (e.g. ws, wss, ldap, ...)
* the use of `lstrip()` here was a bit too aggressive
* `removeprefix()` is only available with python 3.9+
…e via __init__ (#419)

* fix(api): remove print function from ru_inn method

* feat: add ru_inn method to __init__

* docs(ru_inn): update description from "Russia INN." to "Russia."
* running `doctest` failes
Fixes #416

* check docstring examples with pytest

* changed line-length due doctest output

- bsc_address.py:20:101: E501 Line too long (103 > 100)
- all tox env passed

* chore: ignore line lenght in specific docs

* specifing testpath for pytest

* fix: lint rule name

* chore: update pytest in requirements file

* chore: install module before pytest

* fix: ru_inn docttest

---------

Co-authored-by: Yozachar <38415384+yozachar@users.noreply.github.com>
* Remove special cases for valid codes

The special cases excluded from the validation represent valid codes, used in test environments.

* Update test_es.py

* Update test_es.py

* chore: formatting

---------

Co-authored-by: Yozachar <38415384+yozachar@users.noreply.github.com>
* feat(validators): add Mir card number validation

* feat: add mir method to __init__

* test(card): add Mir card validation tests

* docs(mir): update example valid mir card

* fix(tests): update examples mir_cards and drop mir_cards from failed_on_valid_mastercard

* fix: rearrangement of imports

* fix(tests): update imports

* chore: formatting

---------

Co-authored-by: Yozachar <38415384+yozachar@users.noreply.github.com>
Bumps [certifi](https://github.com/certifi/python-certifi) from 2024.6.2 to 2024.7.4.
- [Commits](certifi/python-certifi@2024.06.02...2024.07.04)

---
updated-dependencies:
- dependency-name: certifi
  dependency-version: 2024.7.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
chore: prepare for new release
chore: update project classifiers
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.4 to 3.1.6.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](pallets/jinja@3.1.4...3.1.6)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-version: 3.1.6
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…/jinja2-3.1.6

chore(deps): bump jinja2 from 3.1.4 to 3.1.6 in /package
…/certifi-2024.7.4

chore(deps): bump certifi from 2024.6.2 to 2024.7.4 in /package
Bumps [requests](https://github.com/psf/requests) from 2.32.3 to 2.32.4.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](psf/requests@v2.32.3...v2.32.4)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.32.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…/requests-2.32.4

chore(deps): bump requests from 2.32.3 to 2.32.4 in /package
Add validation to prevent MAC addresses that use both ':' and '-'
separators simultaneously, ensuring consistent separator usage
as per MAC address format standards.
fix: reject MAC addresses with mixed separators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.