forked from bkelly-lab/jkp-data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (100 loc) · 2.34 KB
/
pyproject.toml
File metadata and controls
107 lines (100 loc) · 2.34 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
[project]
name = "sas-python-migrate"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"datetime==5.4",
"duckdb==1.4.3",
"fastexcel>=0.16.0",
"ibis-framework[duckdb,postgres]==11.0",
"keyring==25.6.0",
"keyrings-alt==5.0.2",
"numpy==1.26.4",
"polars==1.34.0",
"polars-ds==0.10.2",
"polars-ols==0.3.5",
"pyarrow==16.1.0",
"pycryptodomex==3.23.0",
"sqlalchemy==1.4.49",
"tqdm==4.66.5",
]
[dependency-groups]
dev = [
"ipykernel>=7.1.0",
"jupyter>=1.1.1",
"matplotlib>=3.10.8",
]
test = [
"pytest>=8.0.0",
"pytest-cov>=4.1.0",
"pytest-xdist>=3.5.0",
]
lint = [
"ruff>=0.4.0",
"pyright>=1.1.350",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
"-ra",
"--cov=code",
"--cov-report=term-missing",
]
filterwarnings = [
"ignore::UserWarning",
"ignore::DeprecationWarning",
]
markers = [
"unit: Unit tests (fast, isolated)",
"integration: Integration tests (module interactions)",
"methodology: Paper methodology validation tests",
"regression: Golden output regression tests",
"expensive: Expensive tests requiring significant resources",
"wrds: Tests requiring WRDS credentials",
]
[tool.coverage.run]
source = ["code"]
branch = true
omit = [
"code/wrds_credentials.py",
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
show_missing = true
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"SIM102", # nested if statements (sometimes clearer than combined)
"SIM108", # use ternary operator instead of if-else
]
[tool.pyright]
pythonVersion = "3.11"
typeCheckingMode = "basic"
reportMissingImports = true
reportMissingTypeStubs = false