forked from python-validators/validators
-
Notifications
You must be signed in to change notification settings - Fork 0
Merge latest from upstream #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pombredanne
wants to merge
335
commits into
pombredanne:master
Choose a base branch
from
python-validators:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
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
maint: improves `mac_address`, `slug` and `uuid`
Create SECURITY.md
- use `bandit` instead of `codeql` - updates docstring - makes `value` positional only argument
fix: misc fixes, use bandit
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
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`
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: updates changelog
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.