-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (113 loc) · 2.44 KB
/
Copy pathpyproject.toml
File metadata and controls
125 lines (113 loc) · 2.44 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
[tool.poetry]
name = "da-stdk"
version = "1.0.2"
description = "DA-STDK: Data-adaptive spatio-temporal distributional prediction (cluster-adaptive bases, conformal calibration)"
authors = [
"Wen-Ting Wang <egpivo@gmail.com>"
]
readme = "README.md"
packages = [{include = "da_stdk"}]
[tool.poetry.dependencies]
python = "^3.10.13"
torch = "^2.0.0"
numpy = "^1.24.0"
pandas = "^2.0.0"
pyyaml = "^6.0.1"
tqdm = "^4.65.0"
matplotlib = "^3.7.0"
scikit-learn = "^1.3.0"
k-means-constrained = "^0.7.3"
scipy = "^1.12.0"
joblib = "^1.3.0"
seaborn = "^0.13.0"
[tool.poetry.group.dev.dependencies]
black = "^22.3.0"
isort = "^5.10.1"
mypy = "^0.971"
pydocstyle = { extras = ["toml"], version = "^6.1.1" }
pytest = "^7.1.3"
pytest-cov = "^4.1.0"
poethepoet = "^0.15.0"
coverage = { extras = ["toml"], version = "^6.4.4" }
pre-commit = "^2.20.0"
python-dotenv = "^1.0.0"
[tool.poetry.group.notebook.dependencies]
ipykernel = "^6.29.4"
ipython = "^8.24.0"
jupyter = "^1.0.0"
jupyterlab = "^4.1.7"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
target-version = ['py310']
line-length = 100
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 100
skip_glob = ["*/__pycache__/*", "*/migrations/*", "*/venv/*", "*/.venv/*"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"torch.*",
"torchvision.*",
"sklearn.*",
"scipy.*",
"pandas.*",
"numpy.*",
"matplotlib.*",
"seaborn.*",
]
ignore_missing_imports = true
[tool.pydocstyle]
convention = "google"
match = '(?!__init__).*\.py'
match-dir = '(?!\.git|\.venv|venv|build|dist).*'
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks end-to-end integration tests",
]
[tool.coverage.run]
source = ["da_stdk"]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
"*/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
precision = 2
show_missing = true
skip_covered = false