Skip to content

Commit fec90ce

Browse files
authored
chore: speed up taplo format (#5569)
Signed-off-by: Robert Kruszewski <[email protected]> Signed-off-by: Robert Kruszewski <[email protected]>
1 parent a3a3ed7 commit fec90ce

File tree

5 files changed

+26
-13
lines changed

5 files changed

+26
-13
lines changed

clippy.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ allow-unwrap-in-tests = true
44
allow-panic-in-tests = true
55
single-char-binding-names-threshold = 2
66
disallowed-types = [
7-
{ path = "std::collections::HashMap", reason = "Use the HashMap in vortex_utils::aliases for better performance" },
8-
{ path = "std::collections::HashSet", reason = "Use the HashSet in vortex_utils::aliases for better performance" },
9-
{ path = "std::sync::Mutex", reason = "Prefer using parking_lot Mutex for improved ergonomics and performance" },
10-
{ path = "std::sync::RwLock", reason = "Prefer using parking_lot RwLock for improved ergonomics and performance" }]
7+
{ path = "std::collections::HashMap", reason = "Use the HashMap in vortex_utils::aliases for better performance" },
8+
{ path = "std::collections::HashSet", reason = "Use the HashSet in vortex_utils::aliases for better performance" },
9+
{ path = "std::sync::Mutex", reason = "Prefer using parking_lot Mutex for improved ergonomics and performance" },
10+
{ path = "std::sync::RwLock", reason = "Prefer using parking_lot RwLock for improved ergonomics and performance" },
11+
]
1112

1213
disallowed-methods = [
13-
{ path = "itertools::Itertools::counts", reason = "It uses the default hasher which is slow for primitives. Just inline the loop for better performance.", allow-invalid = true }
14+
{ path = "itertools::Itertools::counts", reason = "It uses the default hasher which is slow for primitives. Just inline the loop for better performance.", allow-invalid = true },
1415
]

docs/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies = [
77
"furo>=2024.8.6",
88
"hawkmoth>=0.20.0",
99
"myst-parser>=4.0.0",
10-
"setuptools>=75.8.0", # Required by sphinxcontrib-bibtex
10+
"setuptools>=75.8.0", # Required by sphinxcontrib-bibtex
1111
"sphinx-autobuild>=2024.10.3",
1212
"sphinx-copybutton>=0.5.2",
1313
"sphinx-inline-tabs>=2023.4.21",

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ dev = [
3838
managed = true
3939
required-version = ">=0.8.0"
4040

41-
4241
[tool.uv.workspace]
4342
members = ["vortex-python", "docs"]
4443

@@ -56,7 +55,14 @@ select = ["F", "E", "W", "UP", "I"]
5655
unfixable = ["F841"]
5756

5857
[tool.ruff.lint.isort]
59-
known-first-party = ["vortex.scan", "vortex.file", "vortex.expr", "vortex.ray", "vortex.type_aliases", "vortex.polars_"]
58+
known-first-party = [
59+
"vortex.scan",
60+
"vortex.file",
61+
"vortex.expr",
62+
"vortex.ray",
63+
"vortex.type_aliases",
64+
"vortex.polars_",
65+
]
6066

6167
[tool.pytest.ini_options]
6268
log_cli = true

taplo.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
include = ["**/Cargo.toml", "deny.toml", "_typos.toml"]
2-
exclude = ["**/target/**", "**/java/**", "**/.venv/**"]
1+
include = [
2+
"Cargo.toml",
3+
"clippy.toml",
4+
"vortex-*/**/Cargo.toml",
5+
"bench-vortex/Cargo.toml",
6+
"*/Cargo.toml",
7+
"pyproject.toml",
8+
"*/pyproject.toml",
9+
]
10+
exclude = [".venv/**", "target/**", "java/**"]
311

412
[formatting]
513
allowed_blank_lines = 1

vortex-python/pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ classifiers = [
3434
]
3535

3636
[project.optional-dependencies]
37-
polars = [
38-
"polars>=1.31.0",
39-
]
37+
polars = ["polars>=1.31.0"]
4038
pandas = ["pandas>=2.2.0"]
4139
numpy = ["numpy>=1.26.0"]
4240
duckdb = ["duckdb>=1.1.2"]

0 commit comments

Comments
 (0)