-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (101 loc) · 2.41 KB
/
pyproject.toml
File metadata and controls
114 lines (101 loc) · 2.41 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
[project]
name = "tap-matomo"
version = "0.0.1"
description = "Singer tap for matomo, built with the Meltano Singer SDK."
readme = "README.md"
authors = [{ name = "Vishal Sharma", email = "vishal.sharma@acquia.com" }]
keywords = [
"ELT",
"matomo",
]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13"
]
license = "Apache-2.0"
license-files = [ "LICENSE" ]
requires-python = ">=3.10,<=3.14"
dependencies = [
"singer-sdk~=0.52.3",
"requests~=2.32.3",
"typing-extensions>=4.5.0; python_version < '3.13'",
]
[project.optional-dependencies]
s3 = [
"s3fs~=2025.9.0",
]
[project.scripts]
# CLI declaration
tap-matomo = 'tap_matomo.tap:Tapmatomo.cli'
[dependency-groups]
dev = [
{ include-group = "test" },
]
test = [
"pytest>=8",
"pytest-github-actions-annotate-failures>=0.3",
"singer-sdk[testing]",
]
typing = [
"mypy>=1.16.0",
"ty>=0.0.1-alpha.16",
"types-requests",
]
[tool.pytest.ini_options]
addopts = [
"--durations=10",
]
[tool.mypy]
warn_unused_configs = true
[tool.ruff]
line-length = 100
required-version = ">=0.13"
[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"
[build-system]
requires = [
"hatchling>=1,<2",
]
build-backend = "hatchling.build"
# This configuration can be used to customize tox tests as well as other test frameworks like flake8 and mypy
[tool.tox]
min_version = "4.22"
requires = [
"tox>=4.22",
"tox-uv",
]
env_list = [
"typing",
"py314",
"py313",
"py312",
"py311",
"py310",
]
[tool.tox.env_run_base]
runner = "uv-venv-lock-runner"
pass_env = [
"GITHUB_*",
"TAP_MATOMO_*",
]
dependency_groups = [ "test" ]
commands = [ [ "pytest", { replace = "posargs", default = [ "tests" ], extend = true } ] ]
[tool.tox.env.typing]
dependency_groups = [ "test", "typing" ]
commands = [
[ "mypy", { replace = "posargs", default = [ "tap_matomo", "tests" ], extend = true } ],
[ "ty", "check", { replace = "posargs", default = [ "tap_matomo", "tests" ], extend = true } ],
]