#157: compare methods now validate their inputs
and will raise a more meaningful exception if an
empty string or None is passed. This expectation is now
documented.
Many public methods now perform validation on arguments.
An empty string is no longer allowed for words or text.
Callers are expected to pass non-empty text or trap
the validation errors that are raised. The exceptions
raised are pydantic.error_wrappers.ValidationError,
which are currently a subclass of ValueError, but since
that
may change <https://pydantic-docs.helpmanual.io/usage/validation_decorator/#validation-exception>_,
tests check for a generic Exception.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on inflect to permit the latest version.
Changelog
Sourced from inflect's changelog.
... (truncated)
Commits
c880938
Update changelog.8200ad3
Revert "Remove extra noqa. Fixes #177."26bd1a3
Inline words parameterization, as it only has two words.a25060b
Parameterize 'words' in test_pl_sie9b022b
Parameterize function instead of repeating one's self.74962cf
Extract filter function for suitable_for_pl_si60de9c6
Remove commented code.24ad921
Inline getwordsd747c4f
Remove commented code.e6968b6
Fix ResourceWarnings in tests.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)