Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
153 lines (135 loc) · 3.99 KB
/
Copy pathpyproject.toml
File metadata and controls
153 lines (135 loc) · 3.99 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
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
[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "ibflex2"
dynamic = ["version"]
description = "Parse Interactive Brokers Flex XML reports and convert to Python types (maintained fork)"
readme = "README.rst"
requires-python = ">=3.9"
license = { text = "MIT" }
authors = [
{ name = "Christopher Singley", email = "csingley@gmail.com" },
]
maintainers = [
{ name = "robcohen" },
]
keywords = ["Interactive Brokers", "ibkr", "flex", "xml"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Financial and Insurance Industry",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Topic :: Office/Business",
"Topic :: Office/Business :: Financial",
"Topic :: Office/Business :: Financial :: Accounting",
"Topic :: Office/Business :: Financial :: Investment",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"defusedxml>=0.7",
]
[project.urls]
Homepage = "https://github.com/robcohen/ibflex2"
Upstream = "https://github.com/csingley/ibflex"
[project.optional-dependencies]
web = ["requests"]
dev = [
"pytest",
"pytest-cov",
"coverage",
"mypy",
"ruff",
"hypothesis",
"types-requests",
"types-defusedxml",
"build",
"requests",
]
[project.scripts]
flexget = "ibflex.client:main"
[tool.setuptools]
packages = ["ibflex"]
[tool.setuptools.package-data]
ibflex = ["py.typed"]
[tool.setuptools.dynamic]
version = { attr = "ibflex.__version__.__version__" }
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
filterwarnings = [
"error::DeprecationWarning",
"error::PendingDeprecationWarning",
]
[tool.coverage.run]
source = ["ibflex"]
branch = true
omit = [
"ibflex/schema_version.py", # pure constants
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.mypy]
python_version = "3.12"
warn_unused_ignores = true
warn_redundant_casts = true
warn_unreachable = true
warn_no_return = true
no_implicit_optional = true
strict_equality = true
extra_checks = true
[[tool.mypy.overrides]]
module = "tests.*"
check_untyped_defs = false
[[tool.mypy.overrides]]
module = "defusedxml.*"
ignore_missing_imports = true
[tool.ruff]
line-length = 88
target-version = "py39"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PIE", # flake8-pie
"RUF", # ruff-specific
]
ignore = [
"E501", # line too long (handled by formatter)
"E741", # ambiguous variable name (legacy `Type` etc.)
"UP006", # use `tuple` not `Tuple` (parser dispatch table is keyed on string form)
"UP007", # use `X | Y` not `Union` (same)
"UP035", # `typing.Tuple` deprecated (same)
"UP037", # quoted annotation (forward refs in Types.py are intentional)
"UP045", # use `X | None` not `Optional[X]` (parser depends on the string form)
"B008", # function call in default argument
"B904", # raise-without-from-inside-except (legacy code; FlexParserError is informational)
"RUF003", # ambiguous unicode character in comment
"RUF005", # collection literal concatenation
"RUF012", # mutable class attrs (dataclass false-positive)
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["B011"]
"ibflex/__init__.py" = ["F401", "F403"] # public re-exports
[tool.ruff.format]
quote-style = "double"