-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (41 loc) · 1.48 KB
/
.pre-commit-config.yaml
File metadata and controls
41 lines (41 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
exclude: ^doc/source/
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.1
hooks:
- id: clang-format
types_or: [c++, c]
files: 'libtiledbsoma/.*|apis/python/src/.*|apis/r/src/.*'
exclude: 'libtiledbsoma/src/external/.*|apis/r/src/RcppExports.cpp'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.5
hooks:
- id: ruff-check
types_or: [ python, pyi ]
args: ["--config=apis/python/pyproject.toml"]
- id: ruff-format
types_or: [ python, pyi ]
args: ["--config=apis/python/pyproject.toml"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
hooks:
- id: mypy
additional_dependencies:
# Pandas types changed between 1.x and 2.x. Our setup.py permits both, but for type-checking purposes we use the
# Pandas 2.x types (e.g. `pd.Series[Any]`). See `_types.py` or https://github.com/single-cell-data/TileDB-SOMA/issues/2839
# for more info.
- "pandas-stubs>=2,<3"
- "pandas-stubs>=2"
- types-setuptools
- attrs
args: ["--config-file=apis/python/pyproject.toml", "apis/python/src", "apis/python/devtools"]
pass_filenames: false
- repo: https://github.com/hukkin/mdformat
rev: 1.0.0 # Use the ref you want to point at
hooks:
- id: mdformat
files: .*\.md|^apis/r/vignettes/.*\.Rmd
types: [file, text]
exclude: ^.github/
additional_dependencies:
- "mdformat-frontmatter"