-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
155 lines (135 loc) · 3.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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "eventbusk"
version = "0.1.6"
description = "Event bus framework(with Kafka support)"
authors = ["Airbase Inc <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.11"
click = ">=8"
confluent-kafka = ">=2.3.0"
cotyledon = ">=1.7"
[tool.poetry.group.dev.dependencies]
pre-commit = "3.6.0"
pytest = "7.4.3"
pytest-cov = "4.1.0"
pytest-mock = "3.12.0"
pytest-socket = "0.6.0"
pytest-xdist = "3.5.0"
taskipy = ">=1.12"
[tool.poetry.scripts]
eventbusk = "eventbusk.cli:cli"
[tool.isort]
combine_as_imports = true
profile = "black"
src_paths = ["eventbusk"]
[tool.black]
extend-exclude = ''
include = '\.pyi?$'
line-length = 88
safe = true
target-version = ['py39']
[tool.mypy]
python_version = "3.9"
files = ["eventbusk"]
allow_redefinition = false
allow_untyped_globals = false
check_untyped_defs = true
color_output = true
disallow_any_decorated = true
disallow_any_explicit = false
disallow_any_expr = false
disallow_any_generics = false
disallow_any_unimported = false
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
follow_imports = "normal"
follow_imports_for_stubs = true
ignore_errors = false
ignore_missing_imports = false
implicit_reexport = false
local_partial_types = false
no_implicit_optional = false
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
show_none_errors = true
strict_equality = true
strict_optional = true
verbosity = 0
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.pylint.master]
bad-functions = ["print"]
jobs = 1
max-complexity = 10
suggestion-mode = "yes"
[tool.pylint.format]
max-line-length = 88
max-module-lines = 1000
single-line-class-stmt = "no"
single-line-if-stmt = "no"
[tool.pylint.design]
max-args = 5
max-attributes = 7
max-bool-expr = 5
max-branches = 15
max-locals = 15
max-parents = 7
max-public-methods = 20
max-returns = 6
max-statements = 60
min-public-methods = 1
[tool.pylint.refactoring]
max-nested-blocks = 5
[tool.pylint.similarities]
min-similarity-lines = 15
[tool.pylint.messages_control]
disable = [
"fixme",
"logging-fstring-interpolation",
]
[tool.pylint.reports]
output-format = "colorized"
score = "yes"
[tool.pytest.ini_options]
addopts = "--disable-socket"
[tool.coverage.run]
branch = true
source = ["."]
omit = [
"*/tests/*",
"./docs/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
]
ignore_errors = true
precision = 2
skip_empty = true
skip_covered = true
show_missing = false
[tool.coverage.html]
directory = "htmlcov"
[tool.coverage.xml]
output = "coverage.xml"
[tool.taskipy.tasks]
test = "pytest --cov=. --cov-config=pyproject.toml --no-cov-on-fail"
coverage = "coverage report --rcfile=pyproject.toml"
coverage_report = "coverage report --rcfile=pyproject.toml"
coverage_html = "coverage html --rcfile=pyproject.toml"