-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: numpy_model.model_json_schema() error, removed the use of the ha…
…ndler Testing: Format check in CI Chore: Version bump, PATCH
- Loading branch information
Showing
9 changed files
with
364 additions
and
197 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
|
||
|
||
format: | ||
black . | ||
isort . | ||
ruff check . --fix | ||
poetry run black . | ||
poetry run isort . | ||
poetry run ruff check . --fix | ||
@echo "Formatting complete 🎉" | ||
|
||
mypy: | ||
mypy --ignore-missing-imports \ | ||
poetry run mypy --ignore-missing-imports \ | ||
--follow-imports=skip \ | ||
--strict-optional \ | ||
-p pydantic_numpy |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "pydantic_numpy" | ||
version = "3.1.4" | ||
version = "3.1.5" | ||
description = "Pydantic Model integration of the NumPy array" | ||
authors = ["Can H. Tartanoglu", "Christoph Heindl"] | ||
maintainers = ["Can H. Tartanoglu <[email protected]>"] | ||
|
@@ -32,9 +32,13 @@ parameterized = "^0.9.0" | |
hypothesis = "^6.82.0" | ||
setuptools = "^68.0.0" | ||
|
||
[tool.poetry.group.format.dependencies] | ||
black = "^23.7.0" | ||
isort = "^5.12.0" | ||
ruff = "^0.0.285" | ||
|
||
[tool.poetry.group.ci.dependencies] | ||
mypy = "^1.4.1" | ||
[tool.poetry.group.typecheck.dependencies] | ||
mypy = "*" | ||
|
||
[tool.black] | ||
line-length = 120 | ||
|
@@ -46,6 +50,7 @@ profile = "black" | |
[tool.ruff] | ||
line-length = 120 | ||
ignore-init-module-imports = true | ||
ignore = ["F401", "F403", "F405"] | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from pydantic_numpy.model import NumpyModel | ||
from pydantic_numpy.typing import NpNDArray | ||
|
||
|
||
class TestModel(NumpyModel): | ||
array: NpNDArray | ||
|
||
|
||
def test_model_json_schema(): | ||
assert TestModel.model_json_schema() |
This file contains 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