Pre-release
This release is a pre-release and may not be stable for production use.
valedate
Reusable Vale testing harness and pytest assertions for rule authors. The
package bundles the Valedate sandbox first introduced in concordat-vale so
you can lint fixtures against isolated, temporary styles trees without touching
your global Vale configuration.
Requirements
- Python 3.10+
- A
valebinary available onPATH(no mocks or stubs are provided)
Quick start
from valedate import Valedate, assert_has_diagnostic
ini = {
"__root__": {"MinAlertLevel": "suggestion"},
"[*.md]": {"BasedOnStyles": "Test"},
}
styles = {
"Test/NoFoo.yml": """
extends: existence
message: "Avoid 'foo'."
level: warning
tokens:
- foo
""",
}
with Valedate(ini, styles=styles) as env:
diags = env.lint("foo is discouraged")
assert_has_diagnostic(diags, check="Test.NoFoo")
Run the test suite with make test to validate that your rules behave as Vale
reports them.
Release files for valedate 0.1.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| valedate-0.1.0b1.tar.gz | 11.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| valedate-0.1.0b1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.7 kB
Release files / valedate-0.1.0b1.tar.gz
| Download URL | valedate-0.1.0b1.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a00a67a4f6529222106b5a39a773efbc2a1c0abbf43744e662798644cd250226
|
|
BLAKE2b-256 checksum How to use checksums |
edccd224db07b9ece20660eebe82931f70ce8e4bdf39acf1cd6e6261cf19e1f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.11
|
Release files / valedate-0.1.0b1-py3-none-any.whl
| Download URL | valedate-0.1.0b1-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7929857e78fbf6997d0d970a234255d9a60840a7435f16879ad71190473b8a43
|
|
BLAKE2b-256 checksum How to use checksums |
ef55f035766f327836f6a7d3e2ccf052c86377fa1fba309b38703dff4224cb71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.11
|