-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpyproject.toml
221 lines (194 loc) · 5.98 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
[build-system]
requires = ["flit_core >=3.8.0,<4"]
build-backend = "flit_core.buildapi"
# Flit project configuration.
# ---------------------------
[project]
name = "chatgpt-gui"
authors = [{name = "Cubicpath", email = "cubicpath@pm.me"},]
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
keywords = ["ai", "gpt", "gui", "app", "client", "unofficial", "ChatGPT",]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: X11 Applications :: Qt",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: User Interfaces",
"Typing :: Typed",
]
requires-python = ">=3.10"
dynamic = ["version", "description",]
dependencies = [
"PySide6-Essentials>=6.4.1",
"toml>=0.10.2",
"tls-client>=0.1.5",
"undetected-chromedriver>=3.1.7",
"beautifulsoup4>=4.11.1",
]
[project.optional-dependencies]
all = [
"python-dotenv>=0.21.0",
]
dev = [
"autopep8>=2.0.1",
"bandit>=1.7.4",
"pylint>=2.15.8",
"pyright>=1.1.284",
]
[project.urls]
"Source Code" = "https://github.com/Cubicpath/ChatGPT-GUI"
"Issue Tracker" = "https://github.com/Cubicpath/ChatGPT-GUI/issues"
[project.gui-scripts]
chatgpt = "chatgpt_gui.run:main"
# AutoPEP8 configuration.
# ---------------------
[tool.autopep8]
max_line_length = 120
ignore = ["E7",]
in-place = true
recursive = true
aggressive = 3
# Bandit configuration.
# ---------------------
[tool.bandit]
skips = [
"B311", # random is not used for security/cryptographic purposes.
"B404", # subprocess is used with minimal user input.
]
# PyDocStyle configuration.
# ---------------------
[tool.pydocstyle]
# View error_code meanings at https://www.pydocstyle.org/en/stable/error_codes.html
ignore = [
# Conflicts with other rules
"D203", "D213",
"D400",
# Weird section rules that don't work
"D407", "D413",
]
match = ".*.py"
match_dir = "(?!venv|tests|_vendor|__pycache__)[^\\.].*"
# Pylint configuration.
# ---------------------
[tool.pylint.'MASTER']
ignore-paths = ['.*/_vendor/.*']
jobs = 0
load-plugins = [
"pylint.extensions.bad_builtin",
# "pylint.extensions.broad_try_clause",
"pylint.extensions.check_elif",
"pylint.extensions.code_style",
"pylint.extensions.comparetozero",
"pylint.extensions.comparison_placement",
# "pylint.extensions.confusing_elif",
"pylint.extensions.consider_ternary_expression",
"pylint.extensions.docparams",
"pylint.extensions.docstyle",
"pylint.extensions.empty_comment",
"pylint.extensions.emptystring",
# "pylint.extensions.eq_without_hash",
"pylint.extensions.for_any_all",
# "pylint.extensions.mccabe",
"pylint.extensions.no_self_use",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.private_import",
# "pylint.extensions.redefined_loop_name",
# "pylint.extensions.redefined_variable_type",
"pylint.extensions.set_membership",
"pylint.extensions.typing",
# "pylint.extensions.while_used",
]
py-version = "3.10"
[tool.pylint.'CLASSES']
defining-attr-methods = [
"__init__",
"__new__",
"__post_init__",
"_init_ui",
"setUp",
]
exclude-protected = ["_dump_str",]
# Temporarily defined due to bug, see pylint issue gh-7782
valid-metaclass-classmethod-first-arg = ["mcs",]
[tool.pylint.'DESIGN']
max-args = 999
max-attributes = 999
max-bool-expr = 999
max-branches = 999
max-locals = 999
max-parents = 999
max-public-methods = 999
max-returns = 999
max-statements = 999
min-public-methods = 0
[tool.pylint.'EXCEPTIONS']
overgeneral-exceptions = []
[tool.pylint.'FORMAT']
max-line-length = 120
max-module-lines = 1000
[tool.pylint.'IMPORTS']
allow-wildcard-with-all = true
[tool.pylint.'MESSAGES CONTROL']
disable = [
# Conventions
"invalid-name", # C0103
"import-outside-toplevel", # C0415
# Inspections (?)
"c-extension-no-member", # I1101
# Refactors
"duplicate-code", # R0801
"inconsistent-return-statements",# R1710
# These do not work with custom bitshifts that return None
"pointless-statement", # W0104
"expression-not-assigned", # W0106
# These don't work with the general design choices of the project
"unnecessary-lambda", # W0108
"wildcard-import", # W0401
"unused-wildcard-import", # W0614
"redefined-builtin", # W0622
# Doesn't work with (positional arguments with a default value) before a backslash and *args
"keyword-arg-before-vararg", # W1113
# Will implement complete docs later
"missing-return-doc", # W9011
# These do not work with starred parameter names
"missing-param-doc", # W9015
"differing-param-doc", # W9017
# These do not work with wildcard imports using __all__
"import-error", # E0401
"undefined-variable", # E0602
"undefined-all-variable", # E0603
]
[tool.pylint.'MISCELLANEOUS']
notes = [] # This disables warnings caused by TO|DO, FIX|ME, etc.
[tool.pylint.'PARAMETER DOCUMENTATION']
accept-no-param-doc = false
accept-no-raise-doc = false
accept-no-return-doc = false
accept-no-yields-doc = true
[tool.pylint.'REFACTORING']
max-nested-blocks = 999
[tool.pylint.'REPORTS']
output-format = "parseable"
reports = "no"
[tool.pylint.'STRING']
check-quote-consistency = true
check-str-concat-over-line-jumps = false
[tool.pylint.'VARIABLES']
allowed-redefined-builtins = ["help", "id",]
# Pyright configuration.
# ---------------------
[tool.pyright]
ignore = ["src/chatgpt_gui/_vendor",]
pythonVersion = "3.10"
venvPath = "."
venv = "venv"
reportSelfClsParameterName = false
reportUnusedExpression = false
reportWildcardImportFromLibrary = false