-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (85 loc) · 1.96 KB
/
pyproject.toml
File metadata and controls
94 lines (85 loc) · 1.96 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
# pyproject.toml
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "quantlab"
version = "0.1.0"
description = "Personal research lab for quantitative finance and machine learning"
authors = [{name = "AlmostAnna"}]
license = {text = "MIT"}
requires-python = ">=3.9"
dependencies = [
"numpy",
"scipy",
"torch",
"matplotlib",
"py_vollib",
"yfinance",
]
[project.optional-dependencies]
dev = [
"jupyterlab",
"ipykernel",
"pytest",
"QuantLib",
"jupyter-book>=2.0.0",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
filterwarnings = [
"error", # Turn warnings into errors (fail CI on deprecations)
"ignore::UserWarning", # Optional: relax for specific cases
]
addopts = """
--strict-markers
--tb=short
--doctest-modules
--cov=src/quantlab
--cov=ml
--cov=scripts
--cov-report=term-missing
--cov-report=html
"""
markers = [
"unit: Unit tests (fast, isolated)",
"integration: Integration tests (slower, cross-module)",
"ml: Machine learning-specific tests",
"slow: Tests that take >1s (skip by default)",
]
[tool.coverage.run]
source = ["src", "ml", "scripts"]
omit = ["tests/*", "*/__pycache__/*", "*.pyc"]
disable_warnings = ["no-data-collected", "module-not-imported"]
[tool.black]
line-length = 88
target-version = ['py38']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 88
multi_line_output = 3
[tool.flake8]
max-line-length = 88
select = ["C", "E", "F", "W", "B", "B950"] # Enable B950 for line length warnings
ignore = ["E203", "E501", "W503"] # Line length handled by black
extend-ignore = ["E203", "W503"]