forked from Eventual-Inc/Daft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
127 lines (116 loc) · 3.19 KB
/
.pre-commit-config.yaml
File metadata and controls
127 lines (116 loc) · 3.19 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:
- id: mypy
args: ['--strict', '--ignore-missing-imports']
additional_dependencies: [types-requests, types-PyYAML, types-tabulate, pandas-stubs]
files: daft
exclude: |
(?x)^(
daft/pickle/.*\.py|
benchmarking/.*
)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: detect-private-key
- id: trailing-whitespace
exclude: (?x)^(tests/assets/mvp.csv|.*\.warc|tests/dataframe/test_show.py)$
- id: end-of-file-fixer
exclude: |
(?x)^(.*\.warc)$
- id: check-yaml
exclude: kubernetes-ops|k8s/charts/.*/templates/.*\.ya?ml$
args:
- --unsafe
- id: pretty-format-json
exclude: |
(?x)^(
tutorials/.*\.ipynb|
docs/.*\.ipynb|
.*\.jsonl
)$
args:
- --autofix
- --no-sort-keys
- '--indent= '
- id: check-added-large-files
exclude: uv.lock
- id: check-merge-conflict
- id: check-docstring-first
- id: check-toml
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.15.0
hooks:
- id: pretty-format-toml
args: [--autofix, --no-sort]
exclude: Cargo.lock
- id: pretty-format-yaml
args: [--autofix, --preserve-quotes]
exclude: k8s/charts/.*/templates/.*\.ya?ml$
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
- tomli
exclude: static-dashboard-assets
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.2
hooks:
# Run the linter.
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
exclude: benchmarking
# Run the formatter.
- id: ruff-format
name: Python code Formatting
exclude: benchmarking
- repo: local
hooks:
- id: check-invalid-deps
name: Check Invalid Dependencies
description: Check for invalid Rust dependencies
entry: ./tools/check_invalid_deps.sh
language: system
types: [rust]
pass_filenames: false
- id: fmt
name: Rust Code Formatting
description: Format files with cargo fmt.
entry: cargo fmt --manifest-path Cargo.toml
language: system
types: [rust]
args: [--]
- id: cargo-check-default
name: cargo check (default)
description: Check the package for errors with default features.
entry: cargo check
language: system
types: [rust]
pass_filenames: false
args: [--workspace, --all-targets, -v]
- id: cargo-check-all-features
name: cargo check (all features)
description: Check the package for errors.
entry: cargo check
language: system
types: [rust]
pass_filenames: false
args: [--workspace, --all-features, --all-targets]
- id: clippy
name: Rust code quality check
description: Lint rust sources
entry: cargo clippy
language: system
args: [--workspace, --all-features, --, -D, warnings]
types: [rust]
pass_filenames: false
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.24.1
hooks:
- id: validate-pyproject