-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (67 loc) · 2.07 KB
/
pyproject.toml
File metadata and controls
76 lines (67 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[project]
name = "target-adbc"
version = "0.1.0"
description = "Singer target for loading data into ADBC-compatible databases"
licence = "Apache-2.0"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"singer-sdk~=0.53.5",
"adbc-driver-manager>=1.9.0",
"pyarrow>=22.0.0",
"duckdb>=1.4.1",
]
optional-dependencies.duckdb = ["duckdb>=1.4.1"]
[project.scripts]
target-adbc = "target_adbc.target:TargetADBC.cli"
[dependency-groups]
dev = [
"coverage>=7.11.3",
"mypy>=1.18.0",
"pyarrow-stubs>=20.0.0.20251107",
"pytest>=9.0.0",
"ruff>=0.14.0",
"target-adbc[duckdb]",
"ty>=0.0.1a25",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest]
addopts = ["-ra", "--strict-config", "--strict-markers"]
filterwarnings = ["error"]
log_level = "INFO"
minversion = "9"
testpaths = ["tests"]
xfail_strict = true
[tool.ruff]
line-length = 100
[tool.ruff.lint]
extend-select = [
"S", # https://docs.astral.sh/ruff/rules/#flake8-bandit-s
"B", # https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
"RSE", # https://docs.astral.sh/ruff/rules/#flake8-raise-rse
"RET", # https://docs.astral.sh/ruff/rules/#flake8-return-ret
"SLF", # https://docs.astral.sh/ruff/rules/#flake8-self-slf
"SIM", # https://docs.astral.sh/ruff/rules/#flake8-simplify-sim
"TC", # https://docs.astral.sh/ruff/rules/#flake8-type-checking-tc
"I", # https://docs.astral.sh/ruff/rules/#isort-i
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
"FURB", # https://docs.astral.sh/ruff/rules/#refurb-furb
"RUF", # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
]
[tool.ruff.lint.per-file-ignores]
"**/tests/**/*.py" = [
"S101", # pytest uses assert statements
"S608", # Raw SQL queries are OK in tests
]
[tool.mypy]
check_untyped_defs = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
strict = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = true
[tool.uv]
no-build-package = ["jsonpath-ng"]