Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Dec 7, 2023
1 parent e0fdba2 commit 8d95ec8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ repos:
- "--filter=-whitespace/comments,-whitespace/indent,-readability/braces,-readability/casting,-readability/todo,-readability/alt_tokens,-build/header_guard,-build/c++11,-build/include_order,-build/include_subdir,-runtime/references"
- "--linelength=90"
- "--verbose=2"
- repo: https://github.com/golangci/golangci-lint
rev: v1.49.0
hooks:
- id: golangci-lint
entry: bash -c 'cd go/adbc && golangci-lint run --fix --timeout 5m'
types_or: [go]
# - repo: https://github.com/golangci/golangci-lint
# rev: v1.49.0
# hooks:
# - id: golangci-lint
# entry: bash -c 'cd go/adbc && golangci-lint run --fix --timeout 5m'
# types_or: [go]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.3.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion python/adbc_driver_manager/adbc_driver_manager/dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,6 @@ def _is_arrow_data(data):
hasattr(data, "__arrow_c_array__")
or hasattr(data, "__arrow_c_stream__")
or isinstance(
data, (pyarrow.RecordBatch, pyarrow.Table, pyarrow.RecordBatchReader),
data, (pyarrow.RecordBatch, pyarrow.Table, pyarrow.RecordBatchReader)
)
)
4 changes: 3 additions & 1 deletion python/adbc_driver_manager/tests/test_lowlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,9 @@ def test_child_tracking(sqlite):
def test_pycapsule(sqlite):
_, conn = sqlite
handle = conn.get_table_types()
with pyarrow.RecordBatchReader._import_from_c_capsule(handle.__arrow_c_stream__()) as reader:
with pyarrow.RecordBatchReader._import_from_c_capsule(
handle.__arrow_c_stream__()
) as reader:
reader.read_all()

# set up some data
Expand Down

0 comments on commit 8d95ec8

Please sign in to comment.