-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpyproject.toml
176 lines (154 loc) · 4.04 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
[tool.poetry]
name = "connect-cli"
version = "26.0"
description = "CloudBlue Connect Command Line Interface"
authors = ["CloudBlue LLC"]
license = "Apache-2.0"
packages = [
{ include = "connect" },
]
exclude = [
"connect/.data/connect_reports/tests",
"connect/.data/connect_reports/.git",
"tests",
]
readme = "./README.md"
documentation = "https://connect.cloudblue.com/community/sdk/cli/"
homepage = "https://connect.cloudblue.com"
repository = "https://github.com/cloudblue/connect-cli"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Utilities"
]
keywords = [
"fulfillment",
"command",
"line",
"interface",
"utility",
"cli",
"vendor",
"connect",
"cloudblue"
]
[tool.poetry.scripts]
ccli = 'connect.cli.ccli:main'
[tool.poetry.plugins."connect.cli.plugins"]
"customer" = "connect.cli.plugins.customer.commands:get_group"
"locales" = "connect.cli.plugins.locale.commands:get_group"
"product" = "connect.cli.plugins.product.commands:get_group"
"project" = "connect.cli.plugins.project.commands:get_group"
"report" = "connect.cli.plugins.report.commands:get_group"
"play" = "connect.cli.plugins.play.commands:get_group"
"translation" = "connect.cli.plugins.translation.commands:get_group"
"commerce" = "connect.cli.plugins.commerce.commands:get_group"
[tool.poetry.dependencies]
python = ">=3.8,<4"
click = "^8.1.3"
openpyxl = "^3.0.7"
connect-openapi-client = ">=29"
interrogatio = "^2.3.1"
connect-markdown-renderer = ">=3,<4"
iso3166 = "^1.0.1"
phonenumbers = "^8.12.19"
connect-reports-core = "26.*"
requests = "^2.25.1"
toml = "^0.10.2"
Jinja2 = "^3.1.2"
jinja2-time = "^0.2.0"
connect-eaas-core = ">=28.13,<31"
rich = "^12.4.1"
poetry-core = "^1.3.0"
uvloop = { version = "^0.16.0", markers = "sys_platform == \"linux\" or sys_platform == \"darwin\"" }
fs = "^2.4.12"
pyyaml = "^6.0"
[tool.poetry.group.test.dependencies]
black = "23.*"
pytest = "7.2.*"
pytest-cov = "^2.10.1"
pytest-mock = "^3.3.1"
freezegun = "^1.2.1"
coverage = {extras = ["toml"], version = "^5.3"}
responses = "^0.20.0"
flake8 = "^5.0"
flake8-black = "0.*"
flake8-bugbear = "^22"
flake8-cognitive-complexity = "^0.1"
flake8-commas = "^2.1"
flake8-future-import = "~0.4"
flake8-isort = "5.*"
flake8-broken-line = "~0.5"
flake8-comprehensions = "^3.10"
flake8-debugger = "^4.0.0"
flake8-eradicate = "^1.3.0"
flake8-string-format = "^0.3.0"
flake8-pyproject = "^1.2.2"
ipython = "^8.10"
isort = "5.*"
wheel = "^0.38.1"
Faker = "^13.11.0"
[build-system]
requires = ["poetry-core>=1.0.0", "setuptools>42"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = "tests"
addopts = "-p no:cacheprovider --cov=connect.cli --cov-report=html --cov-report xml --cov-report term"
filterwarnings = [
#flake8 get_style_guide deprecated API
"ignore:visit_Str is deprecated",
#openpyxl Data Validation extension is not supported and will be removed
"ignore::UserWarning",
]
[tool.coverage.run]
branch = true
[tool.coverage.report]
omit = [
"*/migrations/*",
"*/config/*",
"*/settings/*",
"*/manage.py",
"*/wsgi.py",
"*/urls.py"
]
exclude_lines = [
"pragma: no cover",
"def __str__",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[tool.flake8]
exclude = [
".idea",
".vscode",
".git",
"resources",
"*.eggs",
"tests/fixtures",
"connect/.data",
"venv"
]
show_source = true
max_line_length = 120
max_cognitive_complexity = 15
select = "B"
ignore = ["FI1", "W503"]
[tool.isort]
src_paths = "*"
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
group_by_package = true
multi_line_output = 3
force_grid_wrap = 4
combine_as_imports = true
use_parentheses = true
include_trailing_comma = true
line_length = 100
lines_after_imports = 2
[tool.black]
line_length = 100
skip-string-normalization = true