mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-14 10:44:28 +00:00
format and also add pdm scripts
This commit is contained in:
parent
8f1eb6e5b4
commit
7dbb22f828
5 changed files with 10 additions and 3 deletions
|
@ -96,6 +96,12 @@ distribution = true
|
|||
|
||||
[tool.pdm.build]
|
||||
includes = []
|
||||
|
||||
[tool.pdm.scripts]
|
||||
lint = "ruff check"
|
||||
format = {shell = "ruff check --fix ; black ."}
|
||||
test = "pytest"
|
||||
|
||||
[build-system]
|
||||
requires = ["pdm-backend"]
|
||||
build-backend = "pdm.backend"
|
||||
|
|
|
@ -91,6 +91,7 @@ def test_schema_number():
|
|||
|
||||
def test_ndarray_union():
|
||||
generator = np.random.default_rng()
|
||||
|
||||
class Model(BaseModel):
|
||||
array: Optional[
|
||||
Union[
|
||||
|
|
Loading…
Reference in a new issue