File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 11repos :
22 - repo : https://github.com/astral-sh/ruff-pre-commit
33 # Ruff version.
4- rev : v0.13.0
4+ rev : v0.13.3
55 hooks :
66 # Run the linter.
77 - id : ruff-check
88 # Run the formatter.
99 - id : ruff-format
1010
1111 - repo : https://github.com/pre-commit/mirrors-clang-format
12- rev : v18 .1.8 # pick the version of clang-format you want
12+ rev : v21 .1.2 # pick the version of clang-format you want
1313 hooks :
1414 - id : clang-format
1515 files : \.(c|cpp|cc|h|hpp|cxx|hxx)$
@@ -20,13 +20,13 @@ repos:
2020 - id : cmake-format
2121
2222 - repo : https://github.com/pre-commit/mirrors-mypy
23- rev : v1.17.1
23+ rev : v1.18.2
2424 hooks :
2525 - id : mypy
26- # Match all files under duckdb/ or _duckdb-stubs/,
27- # but not under duckdb/experimental/ or duckdb/query_graph/
28- files : ^(duckdb/(?!experimental/|query_graph/)|_duckdb-stubs/)
26+ files : ^(duckdb/|_duckdb-stubs/)
27+ exclude : ^duckdb/(experimental|query_graph)/
2928 args : ["--config-file", "pyproject.toml"]
29+ additional_dependencies : [ numpy, polars ]
3030
3131 - repo : local
3232 hooks :
Original file line number Diff line number Diff line change @@ -316,26 +316,20 @@ filterwarnings = [
316316
317317[tool .mypy ]
318318packages = [" duckdb" , " _duckdb" ]
319- mypy_path = [" _duckdb-stubs" ]
320319strict = true
321320warn_unreachable = true
322321pretty = true
323322python_version = " 3.9"
324323exclude = [
325324 " duckdb/experimental/" , # not checking the pyspark API
326325 " duckdb/query_graph/" , # old and unmaintained (should probably remove)
327- " tests" ,
328- " scripts" ,
329- " sqlogic" ,
330326]
331327
332328[[tool .mypy .overrides ]]
333329module = [
334330 " fsspec.*" ,
335- " numpy" ,
336331 " pandas" ,
337332 " polars" ,
338- " polars.io.plugins" ,
339333 " pyarrow.*" ,
340334 " torch" ,
341335 " tensorflow" ,
You can’t perform that action at this time.
0 commit comments