Skip to content

Commit 4c1e6e0

Browse files
committed
style: simplify formatting in pyproject.toml
* Streamlined list formatting in pyproject.toml for improved readability by removing unnecessary line breaks and ensuring consistent structure across sections. * No functional changes were made; the focus was solely on code style and organization.
1 parent 789531e commit 4c1e6e0

File tree

1 file changed

+12
-47
lines changed

1 file changed

+12
-47
lines changed

pyproject.toml

Lines changed: 12 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
# under the License.
1717

1818
[build-system]
19-
requires = [
20-
"maturin>=1.8.1",
21-
]
19+
requires = ["maturin>=1.8.1"]
2220
build-backend = "maturin"
2321

2422
[project]
@@ -27,12 +25,7 @@ description = "Build and run queries against data"
2725
readme = "README.md"
2826
license = { file = "LICENSE.txt" }
2927
requires-python = ">=3.10"
30-
keywords = [
31-
"dataframe",
32-
"datafusion",
33-
"query-engine",
34-
"rust",
35-
]
28+
keywords = ["dataframe", "datafusion", "query-engine", "rust"]
3629
classifiers = [
3730
"Development Status :: 2 - Pre-Alpha",
3831
"Intended Audience :: Developers",
@@ -55,9 +48,7 @@ dependencies = [
5548
"pyarrow>=22.0.0;python_version>='3.14'",
5649
"typing-extensions;python_version<'3.13'",
5750
]
58-
dynamic = [
59-
"version",
60-
]
51+
dynamic = ["version"]
6152

6253
[project.urls]
6354
homepage = "https://datafusion.apache.org/python"
@@ -70,29 +61,19 @@ profile = "black"
7061
[tool.maturin]
7162
python-source = "python"
7263
module-name = "datafusion._internal"
73-
include = [
74-
{ path = "Cargo.lock", format = "sdist" },
75-
]
76-
exclude = [
77-
".asf.yaml",
78-
".github/**",
79-
"ci/**",
80-
]
64+
include = [{ path = "Cargo.lock", format = "sdist" }]
65+
exclude = [".asf.yaml", ".github/**", "ci/**"]
8166
# Require Cargo.lock is up to date
8267
locked = true
83-
features = [
84-
"substrait",
85-
]
68+
features = ["substrait"]
8669

8770
[tool.pytest.ini_options]
8871
asyncio_mode = "auto"
8972
asyncio_default_fixture_loop_scope = "function"
9073

9174
# Enable docstring linting using the google style guide
9275
[tool.ruff.lint]
93-
select = [
94-
"ALL",
95-
]
76+
select = ["ALL"]
9677
ignore = [
9778
"A001", # Allow using words like min as variable names
9879
"A002", # Allow using words like filter as variable names
@@ -118,10 +99,7 @@ convention = "google"
11899
max-doc-length = 88
119100

120101
[tool.ruff.lint.flake8-boolean-trap]
121-
extend-allowed-calls = [
122-
"datafusion.lit",
123-
"lit",
124-
]
102+
extend-allowed-calls = ["datafusion.lit", "lit"]
125103

126104
# Disable docstring checking for these directories
127105
[tool.ruff.lint.per-file-ignores]
@@ -186,26 +164,13 @@ extend-allowed-calls = [
186164
"TRY",
187165
"UP",
188166
]
189-
"docs/*" = [
190-
"D",
191-
]
192-
"docs/source/conf.py" = [
193-
"ANN001",
194-
"ERA001",
195-
"INP001",
196-
]
167+
"docs/*" = ["D"]
168+
"docs/source/conf.py" = ["ANN001", "ERA001", "INP001"]
197169

198170
[tool.codespell]
199-
skip = [
200-
"./python/tests/test_functions.py",
201-
"./target",
202-
"uv.lock",
203-
]
171+
skip = ["./python/tests/test_functions.py", "./target", "uv.lock"]
204172
count = true
205-
ignore-words-list = [
206-
"IST",
207-
"ans",
208-
]
173+
ignore-words-list = ["IST", "ans"]
209174

210175
[dependency-groups]
211176
dev = [

0 commit comments

Comments
 (0)