-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (68 loc) · 1.61 KB
/
pyproject.toml
File metadata and controls
77 lines (68 loc) · 1.61 KB
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
[project]
name = "tradingbot"
version = "2.0.0"
description = "Autonomous market trader based on custom strategies"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{ name = "Alberto Cardellini" }
]
license = { text = "MIT" }
dependencies = [
"alpha-vantage>=2.3.1",
"backtesting>=0.4.0",
"govuk-bank-holidays>=0.14",
"pandas>=1.5.2",
"pydantic>=2.0.0",
"pytz>=2023.3",
"requests>=2.31.0",
"scipy>=1.7.3",
"toml>=0.10.2",
"yfinance>=0.2.33",
]
[project.scripts]
trading_bot = "tradingbot:main"
[dependency-groups]
dev = [
"ruff>=0.8.0",
"mypy>=1.7",
"pytest>=7.2.0",
"requests-mock>=1.8.0",
"sphinx>=5.3.0",
"sphinx-rtd-theme>=1.0.0",
"types-pytz>=2023.3.1.1",
"types-requests>=2.28.11.5",
"types-toml>=0.10.8.1",
]
[tool.ruff]
line-length = 88
target-version = "py38"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # unused imports in __init__.py
[tool.ruff.lint.isort]
known-first-party = ["tradingbot"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.hatch.build.targets.wheel]
packages = ["tradingbot"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"