-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (125 loc) · 2.92 KB
/
Copy pathpyproject.toml
File metadata and controls
140 lines (125 loc) · 2.92 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
[build-system]
requires = [
"hatchling>=1,<2",
"hatch-vcs>=0.5",
]
build-backend = "hatchling.build"
[project]
name = "tap-branch"
dynamic = ["version"]
description = "Singer tap for Branch, built with the Meltano Singer SDK."
readme = "README.md"
authors = [{ name = "Tobias Cadee", email = "tobias.cadee@ticketswap.com" }]
keywords = [
"ELT",
"Branch",
]
classifiers = [
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
license = "Apache-2.0"
license-files = [ "LICENSE" ]
requires-python = ">=3.10"
dependencies = [
"singer-sdk~=0.53.6",
"requests~=2.33.0",
"typing-extensions>=4.5.0; python_version < '3.13'",
]
[project.optional-dependencies]
s3 = [
"s3fs>=2026.1.0",
]
[project.scripts]
# CLI declaration
tap-branch = 'tap_branch.tap:TapBranch.cli'
[dependency-groups]
dev = [
{ include-group = "test" },
]
test = [
"pytest>=9",
"pytest-github-actions-annotate-failures>=0.4",
"singer-sdk[testing]",
]
typing = [
"mypy>=1.19.1",
"ty>=0.0.18",
"types-requests",
]
[tool.hatch.version]
fallback-version = "0.1.0.dev0"
source = "vcs"
[tool.mypy]
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
warn_redundant_casts = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.ty.rules]
unused-type-ignore-comment = "ignore"
[tool.pytest]
addopts = [
"-ra",
]
filterwarnings = [
"error",
"once:No records were available to test:UserWarning",
"once:Fields in transformed catalog but not in records:UserWarning",
]
log_level = "INFO"
minversion = "9"
strict = true
testpaths = [
"tests",
]
[tool.ruff]
line-length = 100
required-version = ">=0.15"
[tool.ruff.lint]
future-annotations = true
ignore = [
"COM812", # missing-trailing-comma
]
select = ["ALL"]
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
[tool.ruff.lint.pydocstyle]
convention = "google"
# This configuration can be used to customize tox environments
[tool.tox]
requires = [
"tox>=4.43",
"tox-uv",
]
env_list = [
"typing",
{ product = [
{ prefix = "3.", start = 10 },
] },
]
[tool.tox.env_run_base]
description = "run tests on Python {env_name}"
runner = "uv-venv-lock-runner"
pass_env = [
"GITHUB_*",
"TAP_BRANCH_*",
]
dependency_groups = [ "test" ]
commands = [ [ "pytest", { replace = "posargs", default = [ "tests" ], extend = true } ] ]
[tool.tox.env.typing]
description = "type checks"
dependency_groups = [ "test", "typing" ]
commands = [
[ "mypy", { replace = "posargs", default = [ "tap_branch", "tests" ], extend = true } ],
[ "ty", "check", { replace = "posargs", default = [ "tap_branch", "tests" ], extend = true } ],
]