Skip to content

Commit 36e808a

Browse files
committed
Chore: Format pyproject.toml using recent pyproject-fmt
1 parent 0680abd commit 36e808a

File tree

1 file changed

+75
-84
lines changed

1 file changed

+75
-84
lines changed

cratedb_sqlparse_py/pyproject.toml

Lines changed: 75 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ requires = [
55
"versioningit",
66
]
77

8-
[tool.versioningit.vcs]
9-
method = "git"
10-
default-tag = "0.0.0"
11-
12-
[tool.versioningit.next-version]
13-
method = "smallest"
14-
15-
[tool.versioningit.format]
16-
distance = "{next_version}"
17-
188
[project]
199
name = "cratedb-sqlparse"
2010
description = "Parsing utilities to validate and split SQL statements for CrateDB."
@@ -76,58 +66,75 @@ dynamic = [
7666
dependencies = [
7767
"antlr4-python3-runtime<4.14",
7868
]
79-
[project.optional-dependencies]
80-
develop = [
69+
optional-dependencies.develop = [
8170
"mypy<1.15",
71+
"packaging",
8272
"poethepoet<0.33",
8373
"pyproject-fmt<2.6",
8474
"ruff<0.10",
8575
"validate-pyproject<0.24",
8676
]
87-
generate = [
77+
optional-dependencies.generate = [
8878
"antlr4-tools<0.3",
8979
"requests<3",
9080
]
91-
release = [
81+
optional-dependencies.release = [
9282
"build<2",
9383
"twine<7",
9484
]
95-
test = [
85+
optional-dependencies.test = [
9686
"pytest<9",
9787
"pytest-cov<7",
9888
]
99-
[project.urls]
100-
changelog = "https://github.com/crate/cratedb-sqlparse/blob/main/CHANGES.md"
101-
documentation = "https://github.com/crate/cratedb-sqlparse"
102-
homepage = "https://github.com/crate/cratedb-sqlparse"
103-
repository = "https://github.com/crate/cratedb-sqlparse"
89+
urls.changelog = "https://github.com/crate/cratedb-sqlparse/blob/main/CHANGES.md"
90+
urls.documentation = "https://github.com/crate/cratedb-sqlparse"
91+
urls.homepage = "https://github.com/crate/cratedb-sqlparse"
92+
urls.repository = "https://github.com/crate/cratedb-sqlparse"
93+
94+
[tool.setuptools.packages.find]
95+
namespaces = false
10496

10597
[tool.black]
10698
line-length = 120
10799

108-
[tool.coverage.run]
109-
branch = false
110-
omit = [
111-
"tests/*",
112-
"cratedb_sqlparse/generated_parser/*"
100+
[tool.ruff]
101+
line-length = 120
102+
103+
lint.select = [
104+
# Builtins
105+
"A",
106+
# Bugbear
107+
"B",
108+
# comprehensions
109+
"C4",
110+
# Pycodestyle
111+
"E",
112+
# eradicate
113+
"ERA",
114+
# Pyflakes
115+
"F",
116+
# isort
117+
"I",
118+
# pandas-vet
119+
"PD",
120+
# return
121+
"RET",
122+
# Bandit
123+
"S",
124+
# print
125+
"T20",
126+
"W",
127+
# flake8-2020
128+
"YTT",
113129
]
114-
source = ["cratedb_sqlparse"]
115130

116-
[tool.coverage.report]
117-
fail_under = 0
118-
show_missing = true
131+
lint.extend-ignore = [
132+
"RET504", # Unnecessary variable assignment before `return` statement
133+
"RET505", # Unnecessary `elif` after `return` statement
134+
]
119135

120-
[tool.mypy]
121-
packages = ["cratedb_sqlparse"]
122-
install_types = true
123-
ignore_missing_imports = true
124-
implicit_optional = true
125-
non_interactive = true
126-
# FIXME: Does not work?
127-
exclude = [
128-
"^SqlBaseLexer\\.py$",
129-
"cratedb_sqlparse/generated_parser/",
130-
"cratedb_sqlparse/generated_parser/SqlBaseParser.py",
136+
lint.per-file-ignores."tests/*" = [
137+
"S101", # Use of `assert` detected.
131138
]
132139

133140
[tool.pytest.ini_options]
@@ -147,56 +154,40 @@ xfail_strict = true
147154
markers = [
148155
]
149156

150-
[tool.ruff]
151-
line-length = 120
152-
153-
lint.select = [
154-
# Bandit
155-
"S",
156-
# Bugbear
157-
"B",
158-
# Builtins
159-
"A",
160-
# comprehensions
161-
"C4",
162-
# eradicate
163-
"ERA",
164-
# flake8-2020
165-
"YTT",
166-
# isort
167-
"I",
168-
# pandas-vet
169-
"PD",
170-
# print
171-
"T20",
172-
# Pycodestyle
173-
"E",
174-
"W",
175-
# Pyflakes
176-
"F",
177-
# return
178-
"RET",
157+
[tool.coverage.run]
158+
branch = false
159+
omit = [
160+
"tests/*",
161+
"cratedb_sqlparse/generated_parser/*",
179162
]
163+
source = [ "cratedb_sqlparse" ]
180164

181-
lint.extend-ignore = [
182-
# Unnecessary variable assignment before `return` statement
183-
"RET504",
184-
# Unnecessary `elif` after `return` statement
185-
"RET505",
186-
]
165+
[tool.coverage.report]
166+
fail_under = 0
167+
show_missing = true
187168

188-
[tool.ruff.lint.per-file-ignores]
189-
"tests/*" = [
190-
# Use of `assert` detected.
191-
"S101",
192-
]
193-
"influxio/util/report.py" = [
194-
"T201",
169+
[tool.mypy]
170+
packages = [ "cratedb_sqlparse" ]
171+
install_types = true
172+
ignore_missing_imports = true
173+
implicit_optional = true
174+
non_interactive = true
175+
# FIXME: Does not work?
176+
exclude = [
177+
"^SqlBaseLexer\\.py$",
178+
"cratedb_sqlparse/generated_parser/",
179+
"cratedb_sqlparse/generated_parser/SqlBaseParser.py",
195180
]
196181

197-
[tool.setuptools.packages.find]
198-
namespaces = false
182+
[tool.versioningit.vcs]
183+
method = "git"
184+
default-tag = "0.0.0"
199185

186+
[tool.versioningit.next-version]
187+
method = "smallest"
188+
189+
[tool.versioningit.format]
190+
distance = "{next_version}"
200191

201192
# ===================
202193
# Tasks configuration

0 commit comments

Comments
 (0)