Alice — an open-source AI trading bot covering equities, crypto, commodities, forex, and macro
| 1 | [build-system] |
| 2 | requires = ["hatchling"] |
| 3 | build-backend = "hatchling.build" |
| 4 | |
| 5 | [project] |
| 6 | name = "open-alice" |
| 7 | version = "0.1.0" |
| 8 | description = "Alice — an open-source AI trading bot" |
| 9 | requires-python = ">=3.11" |
| 10 | dependencies = [ |
| 11 | "pandas>=2.0", |
| 12 | "numpy>=1.26", |
| 13 | "yfinance>=0.2.31", |
| 14 | ] |
| 15 | |
| 16 | [project.scripts] |
| 17 | alice = "open_alice.cli:main" |
| 18 | |
| 19 | [project.optional-dependencies] |
| 20 | dev = [ |
| 21 | "pytest>=8.0", |
| 22 | "ruff>=0.1.0", |
| 23 | "mypy>=1.8", |
| 24 | "pandas-stubs>=2.0", |
| 25 | ] |
| 26 | web = [ |
| 27 | "flask>=2.0", |
| 28 | ] |
| 29 | mt5 = [ |
| 30 | "MetaTrader5>=5.0.45; sys_platform == 'win32'", |
| 31 | ] |
| 32 | |
| 33 | [[tool.mypy.overrides]] |
| 34 | module = ["yfinance.*", "MetaTrader5", "flask.*"] |
| 35 | ignore_missing_imports = true |
| 36 | |
| 37 | [tool.ruff] |
| 38 | line-length = 100 |
| 39 | target-version = "py311" |
| 40 | |
| 41 | [tool.ruff.lint] |
| 42 | select = ["E", "F", "I", "N", "UP", "B", "SIM"] |
| 43 | |
| 44 | [tool.mypy] |
| 45 | python_version = "3.11" |
| 46 | strict = true |
| 47 | |
| 48 | # Flask is an optional [web] dependency: the route decorators in these modules |
| 49 | # carry untyped-decorator ignores that are used only when flask is absent. |
| 50 | [[tool.mypy.overrides]] |
| 51 | module = ["open_alice.dashboard.app", "open_alice.signals.webhook"] |
| 52 | warn_unused_ignores = false |