-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (100 loc) · 2.25 KB
/
pyproject.toml
File metadata and controls
116 lines (100 loc) · 2.25 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "metdatapy"
version = "1.0.2"
description = "Source-agnostic toolkit for ingesting, cleaning, QC, and preparing meteorological time-series data for ML."
readme = "README.md"
authors = [{ name = "Kyriakos Kartas" }]
license = { text = "MIT" }
requires-python = ">=3.9"
dependencies = [
"pandas>=2.0",
"numpy>=1.23",
"pyarrow>=13.0",
"click>=8.1",
"pydantic>=2.4",
"PyYAML>=6.0",
]
[project.optional-dependencies]
ml = [
"scikit-learn>=1.2",
"statsmodels>=0.13",
]
netcdf = [
"xarray>=2023.6.0",
"netCDF4>=1.6",
"cftime>=1.6",
]
extras = [
"astral>=3.2",
"holidays>=0.36",
]
viz = [
"matplotlib>=3.5",
"seaborn>=0.12",
]
all = [
"scikit-learn>=1.2",
"statsmodels>=0.13",
"xarray>=2023.6.0",
"netCDF4>=1.6",
"cftime>=1.6",
"astral>=3.2",
"holidays>=0.36",
"matplotlib>=3.5",
"seaborn>=0.12",
]
[project.urls]
homepage = "https://github.com/kkartas/MetDataPy"
[project.scripts]
mdp = "metdatapy.cli:main"
[tool.setuptools]
packages = ["metdatapy"]
[tool.setuptools.package-data]
metdatapy = ["py.typed"]
[tool.pytest.ini_options]
addopts = "-v --strict-markers"
testpaths = ["tests"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
]
[tool.coverage.run]
source = ["metdatapy"]
omit = [
"*/tests/*",
"*/test_*.py",
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[tool.ruff]
line-length = 100
target-version = "py39"
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "C4", "T20"]
ignore = ["E501"] # Line too long (handled by black)
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"] # Unused imports in __init__.py
[tool.black]
line-length = 100
target-version = ["py39", "py310", "py311", "py312"]
[tool.isort]
profile = "black"
line_length = 100
multi_line_output = 3
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true