forked from MeltanoLabs/meltano-map-transform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
90 lines (77 loc) · 2.21 KB
/
pyproject.toml
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
[tool.poetry]
name = "meltano-map-transform"
version = "0.0.0"
description = "`meltano-map-transform` is a Singer-compatible inline map transformer, built with the Meltano SDK for Singer Taps."
authors = [
"Meltano Team and Contributors",
]
keywords = [
"ELT",
"singer.io",
"Inline Transformation",
]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/MeltanoLabs/meltano-map-transform"
repository = "https://github.com/MeltanoLabs/meltano-map-transform"
documentation = "https://github.com/MeltanoLabs/meltano-map-transform#readme"
[tool.poetry.dependencies]
python = ">=3.8"
singer-sdk = {version = "~=0.35.0", extras = ["faker"]}
[tool.poetry.dev-dependencies]
pytest = ">=7.4.4"
[tool.poetry-dynamic-versioning]
enable = true
format-jinja = """
{%- if distance == 0 -%}
{{ serialize_pep440(base, stage, revision) }}
{%- elif revision is not none -%}
{{ serialize_pep440(base, stage, revision + 1, dev=distance, metadata=[commit]) }}
{%- else -%}
{{ serialize_pep440(bump_version(base), stage, revision, dev=distance, metadata=[commit]) }}
{%- endif -%}
"""
metadata = true
style = "pep440"
vcs = "git"
[tool.pytest.ini_options]
addopts = "-vvv"
[tool.mypy]
python_version = "3.12"
warn_unused_configs = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"backoff.*",
"singer.*", # https://github.com/transferwise/pipelinewise-singer-python/issues/25
]
[build-system]
build-backend = "poetry_dynamic_versioning.backend"
requires = [
"poetry-core==1.8.1",
"poetry-dynamic-versioning==1.2",
]
[tool.poetry.scripts]
# CLI declaration
meltano-map-transform = "meltano_map_transform.mapper:StreamTransform.cli"
[tool.ruff]
src = ["meltano_map_transform"]
target-version = "py38"
[tool.ruff.lint]
ignore = [
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"DJ", # flake8-django
"PD", # pandas-vet
]
select = ["ALL"]
[tool.ruff.lint.isort]
known-first-party = ["meltano_map_transform"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # assert
"ANN201", # missing-return-type-undocumented-public-function
]
[tool.ruff.lint.pydocstyle]
convention = "google"