Skip to content

Commit bf93d57

Browse files
committed
more pre-commit config
1 parent fc8e72e commit bf93d57

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
repos:
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:

pyproject.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,26 +316,20 @@ filterwarnings = [
316316

317317
[tool.mypy]
318318
packages = ["duckdb", "_duckdb"]
319-
mypy_path = ["_duckdb-stubs"]
320319
strict = true
321320
warn_unreachable = true
322321
pretty = true
323322
python_version = "3.9"
324323
exclude = [
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]]
333329
module = [
334330
"fsspec.*",
335-
"numpy",
336331
"pandas",
337332
"polars",
338-
"polars.io.plugins",
339333
"pyarrow.*",
340334
"torch",
341335
"tensorflow",

0 commit comments

Comments
 (0)