-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
177 lines (162 loc) · 3.59 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
[tool.poetry]
name = "python-sage-bbb"
version = "0.1.1"
description = "A Python client library for interacting with BigBlueButton API, enabling the creation and management of online meetings, recordings, and configurations."
authors = ["MohmdFo <mohammad.fotouhi80@gmail.com>"]
license = "MIT"
readme = "README.md"
keywords = ["python", "meet", "BigBlueButton"]
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
]
packages = [
{ include = "sage_bbb" }
]
[tool.poetry.dependencies]
python = "^3.8"
requests = "^2.32.3"
[tool.poetry.group.dev.dependencies]
mypy = "^1.11.0"
isort = "^5.13.2"
black = "^24.4.2"
pytest = "^8.3.2"
flake8 = "^5.0.4"
tox = "^4.16.0"
coverage = "^7.6.0"
pre-commit = "^3.5.0"
sphinx = "^6.2.1"
pylint = "^3.2.6"
pytest-cov = "^5.0.0"
sphinx-rtd-theme = "^2.0.0"
commitizen = "^3.28.0"
docformatter = "^1.7.5"
codecov = "^2.1.13"
ruff = "^0.5.7"
bandit = {extras = ["toml"], version = "^1.7.9"}
[tool.bandit]
targets = ["./sage_imap"]
exclude_dirs = [
"tests",
"migrations",
]
severity = "medium"
confidence = "medium"
max_lines = 500
progress = true
reports = true
output_format = "screen"
output_file = "bandit_report.txt"
include = ["B101", "B102"]
exclude_tests = ["B301", "B302"]
[tool.bandit.plugins]
B104 = { check_typed_list = true }
[tool.mypy]
mypy_path = "stubs"
disallow_untyped_calls = true
disallow_untyped_defs = true
ignore_missing_imports = true
explicit_package_bases = true
exclude = '''
^docs/source/conf.py|
^build/|
^tests/|
^stubs/|
^kernel/
'''
[tool.black]
line-length = 88
exclude = '''
/(
\.git
| \.venv
| build
| dist
| migrations
| venv
| env
| __pycache__
| static
| media
| node_modules
| env
| kernel
| \.mypy_cache
| \.pytest_cache
| .*\.egg-info
)/
'''
[tool.isort]
profile = "black"
line_length = 88
skip = [
"venv",
".venv",
"build",
"dist",
".git",
"__pycache__",
"*.egg-info",
".mypy_cache",
".pytest_cache",
"migrations",
"static",
"media",
"node_modules",
"env",
"kernel"
]
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.1.0"
[tool.commitizen.settings]
increment_types = ["feat", "fix"]
[tool.pylint]
disable = [
"C0114", # Missing module docstring
"C0115", # Missing class docstring
"C0116", # Missing function or method docstring
"E1101", # Instance of 'Foo' has no 'bar' member (Django dynamic attributes)
"W0212", # Access to a protected member _foo of a client class
"C0330", # Wrong hanging indentation before block (conflicts with Black)
]
max-line-length = 88
ignore = [
"migrations/*",
"venv/*",
"build/*",
"dist/*",
".git/*",
"__pycache__/*",
"*.egg-info/*",
".mypy_cache/*",
".pytest_cache/*"
]
load-plugins = [
"pylint_django",
"pylint.extensions.docparams",
]
django-settings-module = "myproject.settings"
good-names = [
"qs", # QuerySet abbreviation
"pk", # Primary key abbreviation
"id", # Identifier
]
suggestion-mode = true
const-rgx = "([A-Z_][A-Z0-9_]*)|(__.*__)"
attr-rgx = "[a-z_][a-z0-9_]{2,30}$"
variable-rgx = "[a-z_][a-z0-9_]{2,30}$"
argument-rgx = "[a-z_][a-z0-9_]{2,30}$"
argument-name-hint = [
"cls", # class method first argument
"self", # instance method first argument
]
method-rgx = "[a-z_][a-z0-9_]{2,30}$"
function-rgx = "[a-z_][a-z0-9_]{2,30}$"
class-rgx = "[A-Z_][a-zA-Z0-9]+$"
module-rgx = "(([a-z_][a-z0-9_]*)|(__.*__))$"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"