Skip to content

Commit

Permalink
add reference to statham and schema version compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
berislavlopac committed Feb 2, 2023
1 parent f4a46bd commit b348417
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ person.birthday = datetime(1969, 11, 23)

assert person.age == 53
assert person.birthday == datetime(1969, 11, 23)
```
```

## Compatibility

For validating schemas Momoa depends on [Statham](https://statham-schema.readthedocs.io), which [supports](https://statham-schema.readthedocs.io/en/latest/compatibility.html) the [JSON Schema Draft 6 specification](https://json-schema.org/specification-links.html#draft-6).
4 changes: 4 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,7 @@ assert result.gender == "male"
assert not result.deceased
assert result.birthday is UNDEFINED
```

## Compatibility

For validating schemas Momoa depends on [Statham](https://statham-schema.readthedocs.io), which [supports](https://statham-schema.readthedocs.io/en/latest/compatibility.html) the [JSON Schema Draft 6 specification](https://json-schema.org/specification-links.html#draft-6).
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ authors = [
]
requires-python = ">=3.8,<4.0"
dependencies = [
"statham-schema<1.0.0,>=0.13.5",
"stringcase<2.0.0,>=1.2.0",
"python-dateutil<3.0.0,>=2.8.2",
"statham-schema<1.0.0,>=0.13.5",
"stringcase<2.0.0,>=1.2.0",
"python-dateutil<3.0.0,>=2.8.2",
"statham-schema>=0.13.5",
"stringcase>=1.2.0",
"python-dateutil>=2.8.2",
]

[tool.pdm.build]
Expand Down
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ envlist = checks, py38, py39, py310, py311

[testenv]
skip_install = true
pdm_sync = false
groups =
test
deps =
pytest-cov
mypy
Expand All @@ -13,6 +16,8 @@ commands =
mypy --install-types --non-interactive momoa/

[testenv:checks]
groups =
checks
commands =
ruff momoa/
black --check .
Expand Down

0 comments on commit b348417

Please sign in to comment.