-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
161 lines (143 loc) · 3.77 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "candlestick-chart"
description = "Draw candlesticks charts right into your terminal, using Python!"
readme = "README.md"
requires-python = ">= 3.10"
authors = [
{ name = "Mickaël Schoentgen", email="[email protected]" },
]
maintainers = [
{ name = "Mickaël Schoentgen", email="[email protected]" },
]
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Financial and Insurance Industry",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Multimedia :: Graphics :: Viewers",
"Topic :: Office/Business :: Financial",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: User Interfaces",
"Topic :: Terminals",
]
keywords = [
"candle",
"candlestick",
"chart",
"cli",
"console",
"crypto",
"stock",
"stock-market",
"options",
"terminal",
"trading",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://pypi.org/project/py-candlestick-chart"
Changelog = "https://github.com/BoboTiG/py-candlestick-chart/blob/main/CHANGELOG.md"
Source = "https://github.com/BoboTiG/py-candlestick-chart"
Sponsor = "https://github.com/sponsors/BoboTiG"
Tracker = "https://github.com/BoboTiG/py-candlestick-chart/issues"
"Released Versions" = "https://github.com/BoboTiG/py-candlestick-chart/releases"
[project.scripts]
candlestick-chart = "candlestick_chart.__main__:main"
[project.optional-dependencies]
test = [
"mypy==1.14.1",
"pytest==8.3.4",
"pytest-cov==6.0.0",
"requests==2.32.3",
"rich==13.9.4",
"ruff==0.9.0",
"types-requests",
]
dev = [
"build==1.2.2.post1",
"twine==6.0.1",
]
[tool.hatch.version]
path = "src/candlestick_chart/__init__.py"
[tool.hatch.build]
skip-excluded-dirs = true
[tool.hatch.build.targets.sdist]
only-include = [
"CHANGELOG.md",
"examples",
"src",
]
[tool.hatch.build.targets.wheel]
packages = [
"src/candlestick_chart",
]
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
'if __name__ == "__main__":',
]
[tool.mypy]
# Ensure we know what we do
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
# Imports management
ignore_missing_imports = true
follow_imports = "skip"
# Ensure full coverage
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
# Restrict dynamic typing (a little)
# e.g. `x: List[Any]` or x: List`
# disallow_any_generics = true
strict_equality = true
[tool.pytest.ini_options]
pythonpath = "src"
addopts = """
--cov=candlestick_chart
--cov-report=term-missing:skip-covered
-r fE
--showlocals
--strict-markers
-vvv
"""
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
fixable = ["ALL"]
extend-select = ["ALL"]
ignore = [
"C901", # complexity
"COM812", # conflict
"D", # docstrings
"ISC001", # conflict
"PLR2004", # constant variables
"RUF001", # unicode chars
"RUF003", # unicode chars
"S101", # assert in tests
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"