forked from dgunning/edgartools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
117 lines (104 loc) · 2.5 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "edgartools"
description = 'One of the nicest looking EDGAR libraries out there'
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = ["sec", "edgar", "filings", "company", "python", "finance", "financial", "reports"]
authors = [
{ name = "Dwight Gunning", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"httpx>=0.25.0",
"pandas>=2.0.0",
"tabulate>=0.9.0",
"pyarrow>=14.0.0",
"beautifulsoup4>=4.10.0",
"lxml>=4.4",
"rich>=13.0.0",
"fastcore>=1.5.29",
"humanize>=4.0.0",
"tenacity<8.4.0",
"stamina>=24.2.0",
"orjson>=3.6.0",
"textdistance>=4.5.0",
"rank_bm25==0.2.1",
"pydantic>=2.0.0",
"tqdm>=4.62.0"
]
dynamic = ["version"]
[project.urls]
Documentation = "https://dgunning.github.io/edgartools/"
Issues = "https://github.com/dgunning/edgartools/issues"
Source = "https://github.com/dgunning/edgartools"
[tool.hatch.version]
path = "edgar/__about__.py"
[tool.hatch.build]
include = [
"edgar/**/*.py",
"edgar/reference/data/*",
]
[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-cov",
"pytest-env",
"pytest-xdist",
"pytest-asyncio",
"pyinstrument",
"pyright",
"ruff",
"tqdm",
"jupyter",
"mkdocs",
"mkdocstrings[python]",
"mkdocs-material"
]
[tool.hatch.envs.default.scripts]
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=edgar --cov=tests {args}"
no-cov = "cov --no-cov {args}"
lint = "ruff check edgar"
smoke-filings = "python tests/batch/batch_filings.py {args}"
[tool.hatch.envs.test]
dependencies = [
"pytest",
"pytest-cov",
"pytest-env",
"pytest-asyncio"
]
[[tool.hatch.envs.test.matrix]]
python = ["38", "39", "310", "311"]
[tool.coverage.run]
branch = true
parallel = true
omit = [
"edgar/__about__.py",
"tests/perf/*"
]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.ruff]
line-length = 150
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.pytest.ini_options]
env = [
"EDGAR_IDENTITY=Dev Gunning [email protected]",
]