-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (77 loc) · 2.39 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (77 loc) · 2.39 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
86
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "investdaytip"
version = "0.9.0"
description = "A tool that suggests 5 stock investment recommendations at the moment you run it."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
keywords = [
"stocks", "investment", "finance", "trading",
"stock screener", "etf", "screening", "fundamental analysis",
"yfinance", "investing", "portfolio", "scoring",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business :: Financial :: Investment",
]
dependencies = [
# yfinance changes its scraping/API frequently; cap the major.minor range
# so an upstream break doesn't silently propagate to users.
"yfinance>=0.2.40,<0.3",
# yahooquery uses Yahoo's internal API endpoints — faster and more stable
# than HTML scraping. Enables --data-source yahooquery.
"yahooquery>=2.4",
"pandas>=2.0,<3.0",
"numpy>=1.24,<3.0",
"rich>=13.0,<15.0",
"argcomplete>=3.0",
# yfinance uses lxml to parse earnings_dates (EPS surprise data).
"lxml>=4.9",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"pytest-mock>=3.10",
"ruff>=0.4",
"mypy>=1.8",
]
[project.scripts]
investdaytip = "investdaytip.entry:cli"
[project.urls]
Homepage = "https://github.com/dfdezdom/investdaytip"
Issues = "https://github.com/dfdezdom/investdaytip/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/investdaytip"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
filterwarnings = [
"error::DeprecationWarning:investdaytip.*",
]
[tool.ruff]
line-length = 100
target-version = "py310"
src = ["src", "tests"]
[tool.ruff.lint]
# UP (pyupgrade) intentionally omitted: the project convention (see AGENTS.md)
# is to use typing.Optional[...] for dataclass fields rather than `X | None`.
select = ["E", "F", "I", "B"]
ignore = [
"E501", # long f-strings in html_export are intentional
]
[tool.mypy]
python_version = "3.10"
files = ["src/investdaytip"]
ignore_missing_imports = true
warn_unused_ignores = true
no_implicit_optional = true