forked from freqtrade/freqtrade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
334 lines (303 loc) · 7.54 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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
[build-system]
requires = ["setuptools >= 64.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "freqtrade"
dynamic = ["version"]
authors = [
{name = "Freqtrade Team"},
{name = "Freqtrade Team", email = "[email protected]"},
]
description = "Freqtrade - Crypto Trading Bot"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "GPLv3"}
classifiers = [
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: MacOS",
"Operating System :: Unix",
"Topic :: Office/Business :: Financial :: Investment",
]
dependencies = [
# from requirements.txt
"ccxt>=4.3.24",
"SQLAlchemy>=2.0.6",
"python-telegram-bot>=20.1",
"humanize>=4.0.0",
"cachetools",
"requests",
"httpx>=0.24.1",
"urllib3",
"jsonschema",
"numpy<2.0",
"pandas>=2.2.0,<3.0",
"TA-Lib",
"pandas-ta",
"technical",
"tabulate",
"pycoingecko>=3.2.0",
"py_find_1st",
"python-rapidjson",
"orjson",
"jinja2",
"questionary",
"prompt-toolkit",
"joblib>=1.2.0",
"rich",
'pyarrow; platform_machine != "armv7l"',
"fastapi",
"pydantic>=2.2.0",
"pyjwt",
"websockets",
"uvicorn",
"psutil",
"schedule",
"janus",
"ast-comments",
"aiofiles",
"aiohttp",
"cryptography",
"sdnotify",
"python-dateutil",
"pytz",
"packaging",
"freqtrade-client",
]
[project.optional-dependencies]
# Requirements used for submodules
plot = ["plotly>=4.0"]
hyperopt = [
"scipy",
"scikit-learn",
"ft-scikit-optimize>=0.9.2",
"filelock",
]
freqai = [
"scikit-learn",
"joblib",
'catboost; platform_machine != "aarch64"',
"lightgbm",
"xgboost",
"tensorboard",
"datasieve>=0.1.5",
]
freqai_rl = [
"torch",
"gymnasium",
"stable-baselines3",
"sb3-contrib",
"tqdm",
]
hdf5 = [
"tables",
"blosc",
]
develop = [
"coveralls",
"isort",
"mypy",
"pre-commit",
"pytest-asyncio",
"pytest-cov",
"pytest-mock",
"pytest-random-order",
"pytest",
"ruff",
"time-machine",
"types-cachetools",
"types-filelock",
"types-python-dateutil",
"types-requests",
"types-tabulate",
]
jupyter = [
"jupyter",
"nbstripout",
"ipykernel",
"nbconvert",
]
all = [
"freqtrade[plot,hyperopt,freqai,freqai_rl,hdf5,jupyter]",
]
dev = [
"freqtrade[all,develop]",
]
[project.urls]
Homepage = "https://github.com/freqtrade/freqtrade"
Documentation = "https://freqtrade.io"
"Bug Tracker" = "https://github.com/freqtrade/freqtrade/issues"
[project.scripts]
freqtrade = "freqtrade.main:main"
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.setuptools.packages.find]
where = ["."]
include = ["freqtrade*"]
exclude = ["tests", "tests.*", "user_data", "user_data*"]
namespaces = true
[tool.setuptools.dynamic]
version = {attr = "freqtrade.__version__"}
[tool.black]
line-length = 100
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
# Exclude vendor directory
| vendor
)
'''
[tool.isort]
line_length = 100
profile = "black"
# multi_line_output=3
lines_after_imports=2
skip_glob = ["**/.env*", "**/env/*", "**/.venv/*", "**/docs/*", "**/user_data/*"]
known_first_party = ["freqtrade_client"]
[tool.pytest.ini_options]
log_format = "%(asctime)s %(levelname)s %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = "--dist loadscope"
[tool.mypy]
ignore_missing_imports = true
namespace_packages = false
warn_unused_ignores = true
exclude = [
'^build_helpers\.py$',
'^ft_client/build/.*$',
]
plugins = [
"sqlalchemy.ext.mypy.plugin"
]
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[tool.pyright]
include = ["freqtrade", "ft_client"]
exclude = [
"**/__pycache__",
"build_helpers/*.py",
"ft_client/build/*",
"build/*",
"tests/*",
]
ignore = ["freqtrade/vendor/**"]
pythonPlatform = "All"
pythonVersion = "3.9"
typeCheckingMode = "off"
# analyzeUnannotatedFunctions = false
reportArgumentType = false # 155
reportAssignmentType = false # 12
reportAttributeAccessIssue = false # 255
reportCallIssue = false # 23
reportGeneralTypeIssues = false # 48
reportIncompatibleMethodOverride = false # 15
reportIncompatibleVariableOverride = false # 5
reportIndexIssue = false # 22
reportMissingImports = false # 5
reportOperatorIssue = false # 7
reportOptionalMemberAccess = false # 35
reportOptionalOperand = false # 7
reportPossiblyUnboundVariable = false # 36
reportPrivateImportUsage = false # 5
reportRedeclaration = false # 1
reportReturnType = false # 28
reportTypedDictNotRequiredAccess = false # 27
[tool.ruff]
line-length = 100
extend-exclude = [".env", ".venv"]
[tool.ruff.lint]
extend-select = [
"C90", # mccabe
"B", # bugbear
# "N", # pep8-naming
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
"UP", # pyupgrade
"I", # isort
"A", # flake8-builtins
"TID", # flake8-tidy-imports
# "EXE", # flake8-executable
# "C4", # flake8-comprehensions
"YTT", # flake8-2020
"S", # flake8-bandit
# "DTZ", # flake8-datetimez
# "RSE", # flake8-raise
# "TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
# "RUF", # ruff
"ASYNC", # flake8-async
"NPY", # numpy
]
extend-ignore = [
"E241", # Multiple spaces after comma
"E272", # Multiple spaces before keyword
"E221", # Multiple spaces before operator
"B007", # Loop control variable not used
"B904", # BugBear - except raise from
"S603", # `subprocess` call: check for execution of untrusted input
"S607", # Starting a process with a partial executable path
"S608", # Possible SQL injection vector through string-based query construction
"NPY002", # Numpy legacy random generator
]
[tool.ruff.lint.mccabe]
max-complexity = 12
[tool.ruff.lint.per-file-ignores]
"freqtrade/freqai/**/*.py" = [
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"B006", # Bugbear - mutable default argument
"B008", # bugbear - Do not perform function calls in argument defaults
]
"tests/**/*.py" = [
"S101", # allow assert in tests
"S104", # Possible binding to all interfaces
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"S105", # Possible hardcoded password assigned to: "secret"
"S106", # Possible hardcoded password assigned to argument: "token_type"
"S110", # `try`-`except`-`pass` detected, consider logging the exception
]
"ft_client/test_client/**/*.py" = [
"S101", # allow assert in tests
]
[tool.ruff.lint.flake8-bugbear]
# Allow default arguments like, e.g., `data: List[str] = fastapi.Query(None)`.
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["freqtrade_client"]
[tool.flake8]
# Default from https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore
# minus E226
ignore = ["E121","E123","E126","E24", "E203","E704","W503","W504"]
max-line-length = 100
max-complexity = 12
exclude = [
".git",
"__pycache__",
".eggs",
"user_data",
".venv",
".env",
]
[tool.codespell]
ignore-words-list = "coo,fo,strat,zar,selectin"
skip="*.svg,./user_data,freqtrade/rpc/api_server/ui/installed,freqtrade/exchange/*.json"