forked from sharebook-kr/pykrx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (104 loc) · 3.2 KB
/
pyproject.toml
File metadata and controls
118 lines (104 loc) · 3.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
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
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "pykrx"
dynamic = ["version"]
description = "KRX data scraping"
readme = "README.md"
requires-python = ">=3.10" # 3.8/3.9는 이제 놓아주는 것을 추천드립니다.
license = {text = "MIT"}
authors = [{name = "Jonghun Yoo", email = "jonghun.yoo@outlook.com"}]
keywords = ["KRX", "stock", "bond", "financial", "data", "scraping"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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",
]
dependencies = [
"requests>=2.32.0",
"pandas>=2.2.0,<3.0",
"numpy>=1.24.0,<2.0",
"deprecated>=1.2.14",
"multipledispatch>=1.0.0",
"matplotlib>=3.8.0",
]
[project.urls]
Homepage = "https://github.com/sharebook-kr/pykrx/"
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.0.0",
"ruff>=0.9.0", # 최신 3.14 대응을 위해 버전 상향
"pre-commit>=3.5.0",
"vcrpy>=4.1.0",
"pytest-vcr>=1.0.0",
]
[tool.setuptools.packages.find]
include = ["pykrx", "pykrx.*"]
[tool.setuptools.package-data]
pykrx = ["*.ttf"]
[tool.setuptools_scm]
write_to = "pykrx/_version.py"
local_scheme = "no-local-version"
# Ruff - Python linter/formatter (integrates Black, isort, Flake8)
[tool.ruff]
line-length = 88
target-version = "py310" # 최소 지원 버전에 맞춤
# 최소한의 exclude만 남김 (Ruff 기본값에 대부분 의존)
# Ignore setuptools-scm generated version file; it's autogenerated and may
# contain typing annotations that ruff flags.
exclude = ["build", "dist", "pykrx/_version.py"]
[tool.ruff.lint]
select = ["E", "F", "I", "W", "UP", "B", "C4"]
ignore = ["E501"]
fixable = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403", "F405"] # wildcard imports in __init__.py
"tests/**/*.py" = ["S101"] # allow assert statements in tests
"pykrx/stock/stock_api.py" = ["F811"] # multipledispatch function overloading
[tool.ruff.format]
quote-style = "double"
# pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests/integration"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--strict-markers",
"--tb=short",
"--disable-warnings",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests (default)",
"live: marks tests as live server checks (not run in CI)",
"cassette: specify VCR cassette file for test",
]
# Coverage configuration (optional)
[tool.coverage.run]
source = ["pykrx"]
omit = [
"*/tests/*",
"*/test_*.py",
"*/__pycache__/*",
"*/venv/*",
"*/.venv/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]