2023-03-21 18:28:26 +00:00
|
|
|
[build-system]
|
2023-05-02 05:12:46 +00:00
|
|
|
requires = ["setuptools >= 64.0.0", "wheel"]
|
2023-03-21 18:28:26 +00:00
|
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
|
2023-12-16 19:51:46 +00:00
|
|
|
[project]
|
|
|
|
name = "freqtrade"
|
|
|
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
|
|
|
|
|
|
authors = [
|
|
|
|
{name = "Freqtrade Team"},
|
|
|
|
{name = "Freqtrade Team", email = "freqtrade@protonmail.com"},
|
|
|
|
]
|
|
|
|
|
|
|
|
description = "Freqtrade - Crypto Trading Bot"
|
|
|
|
readme = "README.md"
|
|
|
|
requires-python = ">=3.9"
|
|
|
|
license = {text = "GPLv3"}
|
|
|
|
# license = "GPLv3"
|
|
|
|
classifiers = [
|
|
|
|
"Environment :: Console",
|
|
|
|
"Intended Audience :: Science/Research",
|
|
|
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Programming Language :: Python :: 3.10",
|
|
|
|
"Programming Language :: Python :: 3.11",
|
|
|
|
"Operating System :: MacOS",
|
|
|
|
"Operating System :: Unix",
|
|
|
|
"Topic :: Office/Business :: Financial :: Investment",
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
[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
|
2023-12-17 07:31:17 +00:00
|
|
|
|
|
|
|
[tool.setuptools.packages.find]
|
|
|
|
where = ["."]
|
|
|
|
include = ["freqtrade*"]
|
|
|
|
exclude = ["tests", "tests.*"]
|
|
|
|
namespaces = true
|
2023-12-16 19:51:46 +00:00
|
|
|
|
|
|
|
[tool.setuptools.dynamic]
|
|
|
|
version = {attr = "freqtrade.__version__"}
|
|
|
|
|
2021-05-27 12:00:13 +00:00
|
|
|
[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
|
2021-05-27 12:25:29 +00:00
|
|
|
multi_line_output=0
|
|
|
|
lines_after_imports=2
|
2022-04-29 09:54:54 +00:00
|
|
|
skip_glob = ["**/.env*", "**/env/*", "**/.venv/*", "**/docs/*", "**/user_data/*"]
|
2021-05-27 12:00:13 +00:00
|
|
|
|
2022-01-17 19:02:59 +00:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
asyncio_mode = "auto"
|
2023-12-28 10:07:41 +00:00
|
|
|
addopts = "--dist loadscope"
|
2022-01-17 19:02:59 +00:00
|
|
|
|
2022-05-07 09:30:45 +00:00
|
|
|
[tool.mypy]
|
|
|
|
ignore_missing_imports = true
|
2022-11-14 19:52:40 +00:00
|
|
|
namespace_packages = false
|
2022-05-07 09:30:45 +00:00
|
|
|
warn_unused_ignores = true
|
|
|
|
exclude = [
|
|
|
|
'^build_helpers\.py$'
|
|
|
|
]
|
2023-02-14 10:05:04 +00:00
|
|
|
plugins = [
|
|
|
|
"sqlalchemy.ext.mypy.plugin"
|
|
|
|
]
|
2022-05-07 09:30:45 +00:00
|
|
|
|
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
module = "tests.*"
|
|
|
|
ignore_errors = true
|
|
|
|
|
2023-01-21 19:00:45 +00:00
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
# Telegram does not use implicit_optional = false in the current version.
|
|
|
|
module = "telegram.*"
|
|
|
|
implicit_optional = true
|
|
|
|
|
2022-05-25 10:13:37 +00:00
|
|
|
[tool.pyright]
|
|
|
|
include = ["freqtrade"]
|
|
|
|
exclude = [
|
|
|
|
"**/__pycache__",
|
|
|
|
"build_helpers/*.py",
|
|
|
|
]
|
|
|
|
ignore = ["freqtrade/vendor/**"]
|
2023-02-22 20:06:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
line-length = 100
|
2023-08-16 11:16:23 +00:00
|
|
|
extend-exclude = [".env", ".venv"]
|
2023-02-25 19:50:26 +00:00
|
|
|
target-version = "py38"
|
2023-09-18 05:08:08 +00:00
|
|
|
# Exclude UP036 as it's causing the "exit if < 3.9" to fail.
|
2023-02-22 20:06:07 +00:00
|
|
|
extend-select = [
|
2023-02-25 19:50:26 +00:00
|
|
|
"C90", # mccabe
|
|
|
|
# "N", # pep8-naming
|
2023-04-17 18:32:07 +00:00
|
|
|
"F", # pyflakes
|
|
|
|
"E", # pycodestyle
|
|
|
|
"W", # pycodestyle
|
2023-03-19 17:05:08 +00:00
|
|
|
"UP", # pyupgrade
|
2023-02-23 06:12:54 +00:00
|
|
|
"TID", # flake8-tidy-imports
|
|
|
|
# "EXE", # flake8-executable
|
|
|
|
"YTT", # flake8-2020
|
2023-03-19 16:57:56 +00:00
|
|
|
# "S", # flake8-bandit
|
2023-02-23 06:12:54 +00:00
|
|
|
# "DTZ", # flake8-datetimez
|
|
|
|
# "RSE", # flake8-raise
|
|
|
|
# "TCH", # flake8-type-checking
|
2023-03-19 16:57:56 +00:00
|
|
|
"PTH", # flake8-use-pathlib
|
2023-02-22 20:06:07 +00:00
|
|
|
]
|
2023-10-23 16:06:31 +00:00
|
|
|
extend-ignore = [
|
|
|
|
"E241", # Multiple spaces after comma
|
|
|
|
"E272", # Multiple spaces before keyword
|
|
|
|
"E221", # Multiple spaces before operator
|
|
|
|
]
|
2023-02-25 19:50:26 +00:00
|
|
|
|
|
|
|
[tool.ruff.mccabe]
|
|
|
|
max-complexity = 12
|
2023-03-19 16:57:56 +00:00
|
|
|
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
|
|
"tests/*" = ["S"]
|
2023-12-16 19:32:37 +00:00
|
|
|
|
|
|
|
[tool.flake8]
|
|
|
|
# Default from https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore
|
|
|
|
# minus E226
|
|
|
|
ignore = ["E121","E123","E126","E24","E704","W503","W504"]
|
|
|
|
max-line-length = 100
|
|
|
|
max-complexity = 12
|
|
|
|
exclude = [
|
|
|
|
".git",
|
|
|
|
"__pycache__",
|
|
|
|
".eggs",
|
|
|
|
"user_data",
|
|
|
|
".venv",
|
|
|
|
".env",
|
|
|
|
]
|