-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (112 loc) · 3.23 KB
/
pyproject.toml
File metadata and controls
127 lines (112 loc) · 3.23 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
[build-system]
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = 'distmetrics'
requires-python = '>=3.12'
authors = [
{name ='Jungkyo Jung, Charlie Marshak, Talib Oliver-Cabrera, Richard West and OPERA Team', email ='opera-pst-dev@jpl.nasa.gov'}
]
description = 'Measure Disturbances in OPERA RTC-S1 Stacks'
license = {text = 'Apache-2.0'}
classifiers = [
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Operating System :: OS Independent',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
]
dynamic = ['version', 'readme']
dependencies = [
'affine',
'asf_search',
'astropy',
'backoff',
'einops',
'geopandas',
'matplotlib',
'numpy',
'pandas',
'pydantic',
'torch',
'rasterio',
'scikit-image',
'scipy',
'shapely',
'tqdm',
]
[project.optional-dependencies]
develop = [
"pytest",
"pytest-cov",
"flake8",
"flake8-import-order",
"flake8-blind-except",
"flake8-builtins",
"jupyterlab",
]
[project.urls]
Homepage = "https://github.com/opera-adt/distmetrics"
"Bug Tracker" = "https://github.com/opera-adt/distmetrics/issues"
[tool.setuptools]
include-package-data = true
zip-safe = true
[tool.setuptools.packages.find]
where = ['src']
exclude = ['notebooks*', 'tests*']
[tool.setuptools.dynamic]
readme = { file = ['README.md'], content-type = 'text/markdown' }
[tool.setuptools_scm]
[tool.ruff]
line-length = 120
src = ["src", "tests"]
exclude = [
".eggs",
".git",
".ipynb_checkpoints",
".mypy_cache",
".pytest_cache",
".ruff_cache",
".vscode",
"__pypackages__",
"_build",
"build",
"dist",
"site-packages",
"notebooks/*",
"tests/data/*",
]
indent-width = 4
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
[tool.ruff.lint]
select = [
"F", # flake8: https://docs.astral.sh/ruff/rules/#flake8-f
"E", # flake8: https://docs.astral.sh/ruff/rules/#flake8-e
"I", # isort: https://docs.astral.sh/ruff/rules/#isort-i
"UP", # pyupgrade: https://docs.astral.sh/ruff/rules/#pyupgrade-up
"D", # pydocstyle: https://docs.astral.sh/ruff/rules/#pydocstyle-d
"ANN", # annotations: https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
"PTH", # use-pathlib-pth: https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
"TRY", # tryceratops
]
ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in nested class
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"TRY003", # Avoid specifying long messages outside the exception
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
case-sensitive = true
lines-after-imports = 2