-
Notifications
You must be signed in to change notification settings - Fork 19
/
pyproject.toml
187 lines (157 loc) · 4.27 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
177
178
179
180
181
182
183
184
185
186
187
[tool.poetry]
name = "openbrokerapi"
version = "4.7.1"
description = "A python package for the V2 CF Service Broker API and Open Broker API (version 2.13+)"
authors = ["Maic Siemering <maic@siemering.tech>"]
license = "MIT"
readme = "README.rst"
homepage = "https://openbrokerapi.readthedocs.io/"
documentation = "https://openbrokerapi.readthedocs.io/"
repository = "https://github.com/eruvanos/openbrokerapi"
keywords = [
'cloudfoundry',
'cfbrokerapi',
'openbrokerapi',
'openservicebrokerapi',
'servicebroker',
'flask',
'kubernetes',
'k8s']
classifiers = [
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Production/Stable',
# Frameworks
'Framework :: Flask',
# Indicate who your project is intended for
'Intended Audience :: Developers',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]
[tool.poetry.urls]
"Issue Tracker" = "https://github.com/eruvanos/openbrokerapi/issues"
"Changelog" = "https://github.com/eruvanos/openbrokerapi/blob/main/CHANGELOG.rst"
[tool.poetry.dependencies]
python = "^3.8"
Flask = ">=3.0.3,<4.0.0"
Sphinx = {version = ">=6.1.3,<8.0.0", optional = true}
sphinx-rtd-theme = {version = ">=1.2,<3.0", optional = true}
gevent = {version = ">=22.10.2,<25.0.0", optional = true}
gunicorn = {version = ">=20.1,<23.0", optional = true}
[tool.poetry.dev-dependencies]
pytest = "^8.2.1"
Flask-Testing = "^0.8.1"
requests = "^2.32.2"
black = "^24.4.2"
pre-commit = "^3.2.2"
[tool.poetry.extras]
docs = ["sphinx", "sphinx_rtd_theme"]
gevent = ["gevent"]
gunicorn = ["gunicorn"]
[tool.poetry.group.dev.dependencies]
bumpversion = "^0.6.0"
ruff = ">=0.0.252,<0.4.9"
mypy = "^1.0.1"
types-requests = "^2.28.11.15"
[tool.black]
line-length = 120
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.coverage.run]
relative_files = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[project]
requires-python = ">= 3.8"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Same as Black.
line-length = 120
# Assume Python 3.10.
target-version = "py38"
[tool.ruff.lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"C", # flake8-comprehensions
"B", # flake8-bugbear
# "N", # naming
# "S", # flake8-bandit
# "PT", # flake8-pytest-style
# "SIM",# flake8-simplify
# "TCH",# flake8-type-checking
# "PL", # Pylint
"PLE", # error
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"RUF200", # still using poetry
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "R"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"doc/conf.py" = ["E402"]
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
exclude = [
'^doc/.*\.py$',
'^tests/.*\.py$',
]