-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (75 loc) · 2 KB
/
pyproject.toml
File metadata and controls
85 lines (75 loc) · 2 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
78
79
80
81
82
83
84
85
[project]
name = "ibkr_event_daemon"
version = "0.3.0"
description = "A lightweight event handling tool for Interactive Brokers based on the ibevent library. This project automates the process of capturing, triggering, and dispatching events from the IBKR trading platform."
authors = [
{name = "Shawn Deng", email = "shawndeng1109@qq.com"}
]
license = "MIT"
readme = "README.md"
requires-python = ">=3.12.0"
dependencies = [
"click>=8.1.8",
"ib-async>=1.0.3",
"loguru>=0.7.3",
"pydantic>=2.10.6",
"pydantic-settings>=2.8.1",
"supervisor>=4.2.5",
]
[project.scripts]
ibkr-daemon = "ibkr_event_daemon.__main__:cli"
[project.optional-dependencies]
dev = [
"ruff>=0.9.7", # Update ruff version
"nox>=2024.10.9",
"pytest>=8.3.4",
"pytest-mock>=3.14.0",
"pytest-cov>=6.0.0",
"commitizen>=3.12.0", # 使用支持 Python 3.8 的版本
]
docs = [
"mkdocs>=1.5.3",
"mkdocs-material>=9.5.3",
"mkdocstrings>=0.24.0",
"mkdocstrings-python>=1.7.5",
"mkdocs-gen-files>=0.5.0",
"pymdown-extensions>=10.7",
"mkdocs-literate-nav>=0.6.1",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 120
include = ["pyproject.toml", "ibkr_event_daemon/**/*.py","example/**/*.py"]
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D" # pydocstyle
]
ignore = [
"W191", # indentation contains tabs
"D401" # imperative mood
]
extend-ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
]
[tool.ruff.lint.isort]
force-single-line = true
lines-after-imports = 2
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "semver2"
version_provider = "pep621"
update_changelog_on_bump = true
major_version_zero = true