Skip to content

Commit 785afa4

Browse files
committed
Chore: Format pyproject.toml using recent pyproject-fmt
1 parent 7649143 commit 785afa4

File tree

1 file changed

+78
-87
lines changed

1 file changed

+78
-87
lines changed

cratedb_sqlparse_py/pyproject.toml

Lines changed: 78 additions & 87 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,79 @@ 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.9",
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
96+
97+
# ===================
98+
# Tasks configuration
99+
# ===================
104100

105101
[tool.black]
106102
line-length = 120
107103

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

116-
[tool.coverage.report]
117-
fail_under = 0
118-
show_missing = true
135+
lint.extend-ignore = [
136+
"RET504", # Unnecessary variable assignment before `return` statement
137+
"RET505", # Unnecessary `elif` after `return` statement
138+
]
119139

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",
140+
lint.per-file-ignores."tests/*" = [
141+
"S101", # Use of `assert` detected.
131142
]
132143

133144
[tool.pytest.ini_options]
@@ -147,60 +158,40 @@ xfail_strict = true
147158
markers = [
148159
]
149160

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",
161+
[tool.coverage.run]
162+
branch = false
163+
omit = [
164+
"tests/*",
165+
"cratedb_sqlparse/generated_parser/*",
179166
]
167+
source = [ "cratedb_sqlparse" ]
180168

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

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

197-
[tool.setuptools.packages.find]
198-
namespaces = false
186+
[tool.versioningit.vcs]
187+
method = "git"
188+
default-tag = "0.0.0"
199189

190+
[tool.versioningit.next-version]
191+
method = "smallest"
200192

201-
# ===================
202-
# Tasks configuration
203-
# ===================
193+
[tool.versioningit.format]
194+
distance = "{next_version}"
204195

205196
[tool.poe.tasks]
206197

0 commit comments

Comments
 (0)