mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-05 14:11:43 +00:00
chore(deps): update pre-commit hooks (#5513)
* chore(deps): update pre-commit hooks updates: - [github.com/pre-commit/mirrors-clang-format: v19.1.6 → v19.1.7](https://github.com/pre-commit/mirrors-clang-format/compare/v19.1.6...v19.1.7) - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.4) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.1) - [github.com/PyCQA/pylint: v3.3.3 → v3.3.4](https://github.com/PyCQA/pylint/compare/v3.3.3...v3.3.4) - [github.com/python-jsonschema/check-jsonschema: 0.30.0 → 0.31.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.30.0...0.31.1) * style: pre-commit fixes * Rename `lins` to `lst` in test_pytypes.py to resolve codespell errors: ``` codespell................................................................Failed - hook id: codespell - exit code: 65 tests/test_pytypes.py:55: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:56: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:58: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:70: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:71: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:72: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:73: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:74: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:75: lins ==> lines, links, lions, loins, limns tests/test_pytypes.py:76: lins ==> lines, links, lions, loins, limns ``` --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
This commit is contained in:
committed by
GitHub
parent
ab44b307b2
commit
d2e7e8c687
@@ -52,10 +52,10 @@ def test_from_iterable(pytype, from_iter_func):
|
||||
|
||||
def test_iterable(doc):
|
||||
assert doc(m.get_iterable) == "get_iterable() -> Iterable"
|
||||
lins = [1, 2, 3]
|
||||
i = m.get_first_item_from_iterable(lins)
|
||||
lst = [1, 2, 3]
|
||||
i = m.get_first_item_from_iterable(lst)
|
||||
assert i == 1
|
||||
i = m.get_second_item_from_iterable(lins)
|
||||
i = m.get_second_item_from_iterable(lst)
|
||||
assert i == 2
|
||||
|
||||
|
||||
@@ -67,13 +67,13 @@ def test_list(capture, doc):
|
||||
assert m.list_no_args() == []
|
||||
assert m.list_ssize_t() == []
|
||||
assert m.list_size_t() == []
|
||||
lins = [1, 2]
|
||||
m.list_insert_ssize_t(lins)
|
||||
assert lins == [1, 83, 2]
|
||||
m.list_insert_size_t(lins)
|
||||
assert lins == [1, 83, 2, 57]
|
||||
m.list_clear(lins)
|
||||
assert lins == []
|
||||
lst = [1, 2]
|
||||
m.list_insert_ssize_t(lst)
|
||||
assert lst == [1, 83, 2]
|
||||
m.list_insert_size_t(lst)
|
||||
assert lst == [1, 83, 2, 57]
|
||||
m.list_clear(lst)
|
||||
assert lst == []
|
||||
|
||||
with capture:
|
||||
lst = m.get_list()
|
||||
|
||||
Reference in New Issue
Block a user