-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
92 lines (81 loc) · 2.17 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
91
92
[tool.poetry]
name = "sparkle"
version = "0.6.4"
description = "✨ A meta framework for Apache Spark, helping data engineers to focus on solving business problems with highest quality!"
authors = [
"Reza (Shahin) Khanipour <shahin@datachef.co>",
"Farbod Ahmadian <farbod@datachef.co>"
]
readme = "README.md"
license = "Apache-2.0"
packages = [
{ include = "sparkle", from = "src" },
]
[tool.poetry.dependencies]
python = ">=3.10.14, <4.0"
# FIXME we need to lock this for now, given the plugins we install are
# tightly coupled with the versions. Unless we require users to add
# these plugins on runtime, we can't change this.
pyspark = "3.3.2"
requests = "^2.32.3"
responses = "^0.25.3"
[tool.poetry.group.dev.dependencies]
commitizen = "^3.29.0"
pdbpp = "^0.10.3"
mypy = "^1.11.0"
pytest-coverage = "^0.0"
pytest-dependency = "^0.6.0"
pytest = "^8.3.1"
pytest-mock = "^3.14.0"
confluent-kafka = "^2.5.3"
fastavro = "^1.9.7"
types-confluent-kafka = "^1.2.2"
chispa = "^0.10.1"
[tool.commitizen]
version = "0.6.4"
update_changelog_on_bump = true
version_provider = "scm"
tag_format = "v$version"
version_files = [
"pyproject.toml:version",
"src/sparkle/__init__.py"
]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
"D", # pydocstyle
"I" # isort
]
ignore = ["D100", "D104", "E501"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.coverage.run]
branch = true
relative_files = true
source = [
"src/sparkle",
]
[tool.coverage.report]
skip_empty = true
[tool.pytest.ini_options]
addopts = "-v --tb=short -ra --no-header --show-capture=log"
# -v: add sufficient verbosity without being overwhelming
# --tb=short: show failing line and related context without printing all function code
# -ra: small recap at the end of pytest outputs excluding passed tests
# --no-header: skip pytest header
# --show-capture=log: reduce output clutter by capturing only logging calls
log_level = "info"
pythonpath = [
"src"
]
markers = [
"wip: mark tests as work in progress",
]
[[tool.mypy.overrides]]
module = "chispa.*"
ignore_missing_imports = true