Skip to content

Commit 7ffe145

Browse files
committed
taplo fmt
1 parent 34e81a3 commit 7ffe145

File tree

6 files changed

+151
-126
lines changed

6 files changed

+151
-126
lines changed

.cargo/config.toml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
[target.x86_64-apple-darwin]
2-
rustflags = [
3-
"-C", "link-arg=-undefined",
4-
"-C", "link-arg=dynamic_lookup",
5-
]
2+
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]
63

74
[target.aarch64-apple-darwin]
8-
rustflags = [
9-
"-C", "link-arg=-undefined",
10-
"-C", "link-arg=dynamic_lookup",
11-
]
12-
5+
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]

Cargo.toml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ license = "Apache-2.0"
2727
edition = "2021"
2828
rust-version = "1.78"
2929
include = [
30-
"/src",
31-
"/datafusion",
32-
"/LICENSE.txt",
33-
"build.rs",
34-
"pyproject.toml",
35-
"Cargo.toml",
36-
"Cargo.lock",
30+
"/src",
31+
"/datafusion",
32+
"/LICENSE.txt",
33+
"build.rs",
34+
"pyproject.toml",
35+
"Cargo.toml",
36+
"Cargo.lock",
3737
]
3838

3939
[features]
@@ -43,15 +43,15 @@ substrait = ["dep:datafusion-substrait"]
4343

4444
[dependencies]
4545
tokio = { version = "1.47", features = [
46-
"macros",
47-
"rt",
48-
"rt-multi-thread",
49-
"sync",
46+
"macros",
47+
"rt",
48+
"rt-multi-thread",
49+
"sync",
5050
] }
5151
pyo3 = { version = "0.26", features = [
52-
"extension-module",
53-
"abi3",
54-
"abi3-py310",
52+
"extension-module",
53+
"abi3",
54+
"abi3-py310",
5555
] }
5656
pyo3-async-runtimes = { version = "0.26", features = ["tokio-runtime"] }
5757
pyo3-log = "0.13.2"
@@ -64,16 +64,16 @@ datafusion-ffi = { version = "52" }
6464
prost = "0.14.1" # keep in line with `datafusion-substrait`
6565
uuid = { version = "1.18", features = ["v4"] }
6666
mimalloc = { version = "0.1", optional = true, default-features = false, features = [
67-
"local_dynamic_tls",
67+
"local_dynamic_tls",
6868
] }
6969
async-trait = "0.1.89"
7070
futures = "0.3"
7171
cstr = "0.2"
7272
object_store = { version = "0.12.4", features = [
73-
"aws",
74-
"gcp",
75-
"azure",
76-
"http",
73+
"aws",
74+
"gcp",
75+
"azure",
76+
"http",
7777
] }
7878
url = "2"
7979
log = "0.4.27"
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
[target.x86_64-apple-darwin]
2-
rustflags = [
3-
"-C", "link-arg=-undefined",
4-
"-C", "link-arg=dynamic_lookup",
5-
]
2+
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]
63

74
[target.aarch64-apple-darwin]
8-
rustflags = [
9-
"-C", "link-arg=-undefined",
10-
"-C", "link-arg=dynamic_lookup",
11-
]
12-
5+
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]

examples/datafusion-ffi-example/Cargo.toml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,18 @@ version = "0.2.0"
2121
edition = "2021"
2222

2323
[dependencies]
24-
datafusion-catalog = { version = "52" , default-features = false }
25-
datafusion-common = { version = "52" , default-features = false }
26-
datafusion-functions-aggregate = { version = "52" }
27-
datafusion-functions-window = { version = "52" }
28-
datafusion-expr = { version = "52" }
24+
datafusion-catalog = { version = "52", default-features = false }
25+
datafusion-common = { version = "52", default-features = false }
26+
datafusion-functions-aggregate = { version = "52" }
27+
datafusion-functions-window = { version = "52" }
28+
datafusion-expr = { version = "52" }
2929
datafusion-ffi = { version = "52" }
3030

31-
pyo3 = { version = "0.26", features = ["extension-module", "abi3", "abi3-py39"] }
31+
pyo3 = { version = "0.26", features = [
32+
"extension-module",
33+
"abi3",
34+
"abi3-py39",
35+
] }
3236
arrow = { version = "57" }
3337
arrow-array = { version = "57" }
3438
arrow-schema = { version = "57" }

examples/datafusion-ffi-example/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ build-backend = "maturin"
2323
name = "datafusion_ffi_example"
2424
requires-python = ">=3.9"
2525
classifiers = [
26-
"Programming Language :: Rust",
27-
"Programming Language :: Python :: Implementation :: CPython",
28-
"Programming Language :: Python :: Implementation :: PyPy",
26+
"Programming Language :: Rust",
27+
"Programming Language :: Python :: Implementation :: CPython",
28+
"Programming Language :: Python :: Implementation :: PyPy",
2929
]
3030
dynamic = ["version"]
3131

pyproject.toml

Lines changed: 115 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,26 @@ license = { file = "LICENSE.txt" }
2727
requires-python = ">=3.10"
2828
keywords = ["datafusion", "dataframe", "rust", "query-engine"]
2929
classifiers = [
30-
"Development Status :: 2 - Pre-Alpha",
31-
"Intended Audience :: Developers",
32-
"License :: OSI Approved :: Apache Software License",
33-
"License :: OSI Approved",
34-
"Operating System :: MacOS",
35-
"Operating System :: Microsoft :: Windows",
36-
"Operating System :: POSIX :: Linux",
37-
"Programming Language :: Python :: 3",
38-
"Programming Language :: Python :: 3.10",
39-
"Programming Language :: Python :: 3.11",
40-
"Programming Language :: Python :: 3.12",
41-
"Programming Language :: Python :: 3.13",
42-
"Programming Language :: Python :: 3.14",
43-
"Programming Language :: Python",
44-
"Programming Language :: Rust",
30+
"Development Status :: 2 - Pre-Alpha",
31+
"Intended Audience :: Developers",
32+
"License :: OSI Approved :: Apache Software License",
33+
"License :: OSI Approved",
34+
"Operating System :: MacOS",
35+
"Operating System :: Microsoft :: Windows",
36+
"Operating System :: POSIX :: Linux",
37+
"Programming Language :: Python :: 3",
38+
"Programming Language :: Python :: 3.10",
39+
"Programming Language :: Python :: 3.11",
40+
"Programming Language :: Python :: 3.12",
41+
"Programming Language :: Python :: 3.13",
42+
"Programming Language :: Python :: 3.14",
43+
"Programming Language :: Python",
44+
"Programming Language :: Rust",
4545
]
4646
dependencies = [
47-
"pyarrow>=16.0.0;python_version<'3.14'",
48-
"pyarrow>=22.0.0;python_version>='3.14'",
49-
"typing-extensions;python_version<'3.13'"
47+
"pyarrow>=16.0.0;python_version<'3.14'",
48+
"pyarrow>=22.0.0;python_version>='3.14'",
49+
"typing-extensions;python_version<'3.13'",
5050
]
5151
dynamic = ["version"]
5252

@@ -73,23 +73,23 @@ asyncio_default_fixture_loop_scope = "function"
7373

7474
# Enable docstring linting using the google style guide
7575
[tool.ruff.lint]
76-
select = ["ALL" ]
76+
select = ["ALL"]
7777
ignore = [
78-
"A001", # Allow using words like min as variable names
79-
"A002", # Allow using words like filter as variable names
80-
"ANN401", # Allow Any for wrapper classes
81-
"COM812", # Recommended to ignore these rules when using with ruff-format
82-
"FIX002", # Allow TODO lines - consider removing at some point
83-
"FBT001", # Allow boolean positional args
84-
"FBT002", # Allow boolean positional args
85-
"ISC001", # Recommended to ignore these rules when using with ruff-format
86-
"SLF001", # Allow accessing private members
87-
"TD002", # Do not require author names in TODO statements
88-
"TD003", # Allow TODO lines
89-
"PLR0913", # Allow many arguments in function definition
90-
"PD901", # Allow variable name df
91-
"N812", # Allow importing functions as `F`
92-
"A005", # Allow module named io
78+
"A001", # Allow using words like min as variable names
79+
"A002", # Allow using words like filter as variable names
80+
"ANN401", # Allow Any for wrapper classes
81+
"COM812", # Recommended to ignore these rules when using with ruff-format
82+
"FIX002", # Allow TODO lines - consider removing at some point
83+
"FBT001", # Allow boolean positional args
84+
"FBT002", # Allow boolean positional args
85+
"ISC001", # Recommended to ignore these rules when using with ruff-format
86+
"SLF001", # Allow accessing private members
87+
"TD002", # Do not require author names in TODO statements
88+
"TD003", # Allow TODO lines
89+
"PLR0913", # Allow many arguments in function definition
90+
"PD901", # Allow variable name df
91+
"N812", # Allow importing functions as `F`
92+
"A005", # Allow module named io
9393
]
9494

9595
[tool.ruff.lint.pydocstyle]
@@ -104,61 +104,96 @@ extend-allowed-calls = ["lit", "datafusion.lit"]
104104
# Disable docstring checking for these directories
105105
[tool.ruff.lint.per-file-ignores]
106106
"python/tests/*" = [
107-
"ANN",
108-
"ARG",
109-
"BLE001",
110-
"D",
111-
"S101",
112-
"SLF",
113-
"PD",
114-
"PLR2004",
115-
"PT011",
116-
"RUF015",
117-
"S608",
118-
"PLR0913",
119-
"PT004",
107+
"ANN",
108+
"ARG",
109+
"BLE001",
110+
"D",
111+
"S101",
112+
"SLF",
113+
"PD",
114+
"PLR2004",
115+
"PT011",
116+
"RUF015",
117+
"S608",
118+
"PLR0913",
119+
"PT004",
120+
]
121+
"examples/*" = [
122+
"D",
123+
"W505",
124+
"E501",
125+
"T201",
126+
"S101",
127+
"PLR2004",
128+
"ANN001",
129+
"ANN202",
130+
"INP001",
131+
"DTZ007",
132+
"RUF015",
133+
]
134+
"dev/*" = [
135+
"D",
136+
"E",
137+
"T",
138+
"S",
139+
"PLR",
140+
"C",
141+
"SIM",
142+
"UP",
143+
"EXE",
144+
"N817",
145+
"ERA001",
146+
"ANN001",
147+
]
148+
"benchmarks/*" = [
149+
"D",
150+
"F",
151+
"T",
152+
"BLE",
153+
"FURB",
154+
"PLR",
155+
"E",
156+
"TD",
157+
"TRY",
158+
"S",
159+
"SIM",
160+
"EXE",
161+
"UP",
162+
"ERA001",
163+
"ANN001",
164+
"INP001",
120165
]
121-
"examples/*" = ["D", "W505", "E501", "T201", "S101", "PLR2004", "ANN001", "ANN202", "INP001", "DTZ007", "RUF015"]
122-
"dev/*" = ["D", "E", "T", "S", "PLR", "C", "SIM", "UP", "EXE", "N817", "ERA001", "ANN001"]
123-
"benchmarks/*" = ["D", "F", "T", "BLE", "FURB", "PLR", "E", "TD", "TRY", "S", "SIM", "EXE", "UP", "ERA001", "ANN001", "INP001"]
124166
"docs/*" = ["D"]
125167
"docs/source/conf.py" = ["ERA001", "ANN001", "INP001"]
126168

127169
[tool.codespell]
128-
skip = [
129-
"./target",
130-
"uv.lock",
131-
"./python/tests/test_functions.py"
132-
]
170+
skip = ["./target", "uv.lock", "./python/tests/test_functions.py"]
133171
count = true
134-
ignore-words-list = [
135-
"ans",
136-
"IST"
137-
]
172+
ignore-words-list = ["ans", "IST"]
138173

139174
[dependency-groups]
140175
dev = [
141-
"maturin>=1.8.1",
142-
"numpy>1.25.0;python_version<'3.14'",
143-
"numpy>=2.3.2;python_version>='3.14'",
144-
"pyarrow>=19.0.0",
145-
"pre-commit>=4.3.0",
146-
"pyyaml>=6.0.3",
147-
"pytest>=7.4.4",
148-
"pytest-asyncio>=0.23.3",
149-
"ruff>=0.9.1",
150-
"toml>=0.10.2",
151-
"pygithub==2.5.0",
152-
"codespell==2.4.1",
176+
"maturin>=1.8.1",
177+
"numpy>1.25.0;python_version<'3.14'",
178+
"numpy>=2.3.2;python_version>='3.14'",
179+
"pyarrow>=19.0.0",
180+
"pre-commit>=4.3.0",
181+
"pyyaml>=6.0.3",
182+
"pytest>=7.4.4",
183+
"pytest-asyncio>=0.23.3",
184+
"ruff>=0.9.1",
185+
"toml>=0.10.2",
186+
"pygithub==2.5.0",
187+
"codespell==2.4.1",
153188
]
154189
docs = [
155-
"sphinx>=7.1.2",
156-
"pydata-sphinx-theme==0.8.0",
157-
"myst-parser>=3.0.1",
158-
"jinja2>=3.1.5",
159-
"ipython>=8.12.3",
160-
"pandas>=2.0.3",
161-
"pickleshare>=0.7.5",
162-
"sphinx-autoapi>=3.4.0",
163-
"setuptools>=75.3.0",
190+
"sphinx>=7.1.2",
191+
"pydata-sphinx-theme==0.8.0",
192+
"myst-parser>=3.0.1",
193+
"jinja2>=3.1.5",
194+
"ipython>=8.12.3",
195+
"pandas>=2.0.3",
196+
"pickleshare>=0.7.5",
197+
"sphinx-autoapi>=3.4.0",
198+
"setuptools>=75.3.0",
164199
]

0 commit comments

Comments
 (0)