@@ -131,10 +131,7 @@ line-length = 100
131131
132132[tool .ruff ]
133133line-length = 100
134-
135- extend-exclude = [
136- ]
137-
134+ extend-exclude = []
138135lint.select = [
139136 # Builtins
140137 " A" ,
@@ -162,7 +159,6 @@ lint.select = [
162159 # flake8-2020
163160 " YTT" ,
164161]
165-
166162lint.extend-ignore = [
167163 # zip() without an explicit strict= parameter
168164 " B905" ,
@@ -181,120 +177,103 @@ lint.extend-ignore = [
181177 # Possible SQL injection vector through string-based query construction
182178 " S608" ,
183179]
184-
185180lint.per-file-ignores."examples/*" = [
186181 " E501" , # Line too long
187182 " ERA001" , # Found commented-out code
188183 " T201" , # Allow `print`
189184]
190-
191185lint.per-file-ignores."tests/*" = [
192186 " S101" , # Allow use of `assert`, and `print`
193187 " S608" , # Possible SQL injection vector through string-based query construction
194188 " W291" , # Trailing whitespace
195189 " W293" , # Blank line contains whitespace
196190]
197191
198- [tool .pytest . ini_options ]
199- addopts = """
192+ [tool .pytest ]
193+ ini_options. addopts = """
200194 -rfEXs -p pytester --strict-markers --verbosity=3
201195 --cov --cov-report=term-missing --cov-report=xml
202196 """
203- minversion = " 2.0"
204- log_level = " DEBUG"
205- log_cli_level = " DEBUG"
206- log_format = " %(asctime)-15s [%(name)-36s] %(levelname)-8s: %(message)s"
207- pythonpath = [
197+ ini_options. minversion = " 2.0"
198+ ini_options. log_level = " DEBUG"
199+ ini_options. log_cli_level = " DEBUG"
200+ ini_options. log_format = " %(asctime)-15s [%(name)-36s] %(levelname)-8s: %(message)s"
201+ ini_options. pythonpath = [
208202 " src" ,
209203]
210- testpaths = [
204+ ini_options. testpaths = [
211205 " examples" ,
212206 " sqlalchemy_cratedb" ,
213207 " tests" ,
214208]
215- python_files = [
209+ ini_options. python_files = [
216210 " test_*.py" ,
217211 " *_test.py" ,
218212]
219- xfail_strict = true
220- markers = [
221- ]
213+ ini_options.xfail_strict = true
214+ ini_options.markers = []
222215
223- [tool .coverage .paths ]
224- source = [
225- " src/" ,
226- ]
227-
228- [tool .coverage .run ]
229- branch = false
230- omit = [
216+ [tool .coverage ]
217+ run.branch = false
218+ run.omit = [
231219 " tests/*" ,
232220]
233-
234- [tool .coverage .report ]
235- fail_under = 0
236- show_missing = true
237- exclude_lines = [
221+ paths.source = [
222+ " src/" ,
223+ ]
224+ report.exclude_lines = [
238225 " # pragma: no cover" ,
239226 " raise NotImplemented" ,
240227]
228+ report.fail_under = 0
229+ report.show_missing = true
241230
242231[tool .mypy ]
243232mypy_path = " src"
244233packages = [ " sqlalchemy_cratedb" ]
245- exclude = [
246- ]
234+ exclude = []
247235check_untyped_defs = true
248236explicit_package_bases = true
249237ignore_missing_imports = true
250238implicit_optional = true
251239install_types = true
252240namespace_packages = true
253241non_interactive = true
254- # Needed until `mypy-0.990` for `ConverterDefinition` in `converter.py`.
255- # https://github.com/python/mypy/issues/731#issuecomment-1260976955
256- # enable_recursive_aliases = true
257-
258- [tool .versioningit .vcs ]
259- method = " git-archive"
260- default-tag = " 0.0.0"
261- describe-subst = " $Format:%(describe:tags)$"
262242
243+ [tool .poe ]
263244# ===================
264245# Tasks configuration
265246# ===================
266247
267- [tool .poe .tasks ]
268-
269- check = [
248+ tasks.check = [
270249 " lint" ,
271250 " test" ,
272251]
273-
274- format = [
252+ tasks.format = [
275253 # Format project metadata.
276254 { cmd = " pyproject-fmt --keep-full-version pyproject.toml" },
277-
278255 # Format code.
279256 # Configure Ruff not to auto-fix a few items that are useful in workbench mode.
280257 # e.g.: unused imports (F401), unused variables (F841), `print` statements (T201), commented-out code (ERA001)
281258 { cmd = " ruff format" },
282259 { cmd = " ruff check --fix --ignore=ERA --ignore=F401 --ignore=F841 --ignore=T20 --ignore=ERA001" },
283260]
284-
285- lint = [
261+ tasks.lint = [
286262 { cmd = " ruff format --check" },
287263 { cmd = " ruff check" },
288264 { cmd = " validate-pyproject pyproject.toml" },
289265 # { cmd = "mypy" },
290266]
291-
292- release = [
267+ tasks.release = [
293268 { cmd = " python -m build" },
294269 { cmd = " twine upload --skip-existing dist/*" },
295270]
296-
297- test = [
271+ tasks.test = [
298272 { cmd = " pytest" },
299273 { cmd = " python -m unittest -vvv tests/integration.py" },
300274]
275+
276+ [tool .versioningit ]
277+ vcs.method = " git-archive"
278+ vcs.default-tag = " 0.0.0"
279+ vcs.describe-subst = " $Format:%(describe:tags)$"
0 commit comments