Skip to content

Commit

Permalink
Add links to change log and issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aandres3 committed Jan 22, 2025
1 parent 1646769 commit c9c18e7
Show file tree
Hide file tree
Showing 7 changed files with 239 additions and 227 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ repos:
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.8.4
rev: v0.9.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/PyCQA/bandit
rev: 1.8.0
rev: 1.8.2
hooks:
- id: bandit
additional_dependencies:
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- insertion marker -->
## [v0.11.0](https://github.com/tradewelltech/protarrow/releases/tag/v0.11.0) - 2025-01-22

<small>[Compare with v0.10.0](https://github.com/tradewelltech/protarrow/compare/v0.10.0...v0.11.0)</small>

### Added

- Add links to change log and issues ([c7dba59](https://github.com/tradewelltech/protarrow/commit/c7dba593bec5652763ce8a8c6460595e7e3136e9) by aandres3).

## [v0.10.0](https://github.com/tradewelltech/protarrow/releases/tag/v0.10.0) - 2025-01-14

<small>[Compare with v0.9.0](https://github.com/tradewelltech/protarrow/compare/v0.9.0...v0.10.0)</small>
Expand Down
10 changes: 5 additions & 5 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ colorama==0.4.6
# mkdocs-material
ghp-import==2.1.0
# via mkdocs
griffe==1.5.4
griffe==1.5.5
# via mkdocstrings-python
idna==3.10
# via requests
Expand Down Expand Up @@ -55,13 +55,13 @@ mkdocs==1.6.1
# mkdocs-autorefs
# mkdocs-material
# mkdocstrings
mkdocs-autorefs==1.2.0
mkdocs-autorefs==1.3.0
# via
# mkdocstrings
# mkdocstrings-python
mkdocs-get-deps==0.2.0
# via mkdocs
mkdocs-material==9.5.49
mkdocs-material==9.5.50
# via -r ./requirements.in
mkdocs-material-extensions==1.3.1
# via
Expand All @@ -83,9 +83,9 @@ platformdirs==4.3.6
# via
# mkdocs-get-deps
# mkdocstrings
pygments==2.18.0
pygments==2.19.1
# via mkdocs-material
pymdown-extensions==10.13
pymdown-extensions==10.14.1
# via
# -r ./requirements.in
# mkdocs-material
Expand Down
428 changes: 214 additions & 214 deletions poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions protarrow/cast_to_proto.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def _cast_flat_array(
field_descriptor: FieldDescriptor,
config: ProtarrowConfig,
) -> pa.Array:
assert not (
pa.types.is_list(array.type) or pa.types.is_large_list(array.type)
), field_descriptor.name
assert not (pa.types.is_list(array.type) or pa.types.is_large_list(array.type)), (
field_descriptor.name
)
assert not pa.types.is_map(array.type), field_descriptor.name
if field_descriptor.type == FieldDescriptor.TYPE_MESSAGE:
if field_descriptor.message_type == TimeOfDay.DESCRIPTOR:
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ pytest = ">=7.2.0"
pytest-benchmark = ">=4.0.0"
pytest-xdist = ">=3.1.0"

[tool.poetry.urls]
"Bug Tracker" = "https://github.com/tradewelltech/protarrow/issues"
"Changelog" = "https://github.com/tradewelltech/protarrow/blob/main/CHANGELOG.md"

[tool.poetry-dynamic-versioning]
enable = true

Expand Down
6 changes: 3 additions & 3 deletions tests/data/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ def test_nullability():
assert not nested_schema.field("double_values").nullable
assert nested_schema.field("wrapped_double_value").nullable

assert (
schema == nested_schema
), "The schema of a nested message is the same as if the message wasn't nested"
assert schema == nested_schema, (
"The schema of a nested message is the same as if the message wasn't nested"
)


@pytest.mark.parametrize("list_nullable", [True, False])
Expand Down

0 comments on commit c9c18e7

Please sign in to comment.