Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/styles/DuckLake/spelling-ducklake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: substitution
message: Use '%s' instead of '%s'
level: error
ignorecase: false
swap:
'Ducklake': 'DuckLake'
'duckLake': 'DuckLake'
6 changes: 5 additions & 1 deletion .vale.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
StylesPath = .github/styles
MinAlertLevel = suggestion
IgnoredScopes = front matter
IgnoredScopes = front matter

[*.md]
BasedOnStyles = DuckLake
4 changes: 2 additions & 2 deletions docs/preview/duckdb/advanced_features/data_inlining.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ INSERT INTO inlining.tbl VALUES (1), (2), (3);
-- no Parquet files exist
SELECT COUNT(*) FROM glob('inlining.db.files/**');
```
```
```text
┌──────────────┐
│ count_star() │
│ int64 │
Expand All @@ -44,7 +44,7 @@ When inserting more data than the `DATA_INLINING_ROW_LIMIT`, inserts are automat
INSERT INTO inlining.tbl FROM range(100);
SELECT COUNT(*) FROM glob('inlining.db.files/**');
```
```
```text
┌──────────────┐
│ count_star() │
│ int64 │
Expand Down
4 changes: 2 additions & 2 deletions docs/stable/duckdb/advanced_features/data_inlining.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ INSERT INTO inlining.tbl VALUES (1), (2), (3);
-- no Parquet files exist
SELECT COUNT(*) FROM glob('inlining.db.files/**');
```
```
```text
┌──────────────┐
│ count_star() │
│ int64 │
Expand All @@ -44,7 +44,7 @@ When inserting more data than the `DATA_INLINING_ROW_LIMIT`, inserts are automat
INSERT INTO inlining.tbl FROM range(100);
SELECT COUNT(*) FROM glob('inlining.db.files/**');
```
```
```text
┌──────────────┐
│ count_star() │
│ int64 │
Expand Down
26 changes: 26 additions & 0 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

set -xeuo pipefail

fix=''
check='--check --diff'
while getopts "f" opt; do
case $opt in
f) fix="--fix"
check='';;
*) exit
esac
done

npx markdownlint-cli docs/stable/ _posts/ --config .markdownlint.jsonc $fix || echo 'markdownlint failed'

black scripts --skip-string-normalization $check || echo 'black failed'

if ! $(which vale); then
echo "Vale binary not found, please install it from https://vale.sh/docs/vale-cli/installation/"
exit 1
fi

vale sync
vale docs/stable/ docs/preview/ _posts/