-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
142 lines (127 loc) · 3.16 KB
/
pyproject.toml
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "spurt"
description = "Spatial and Temporal phase Unwrapping for InSAR time-series"
readme = "README.md"
keywords = [
"insar",
"phase-unwrapping",
"radar",
"remote-sensing",
"sar",
"synthetic-aperture-radar",
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.9"
dependencies = [
"h5py>=3.6",
"numpy>=1.23",
"ortools==9.8.3296",
"rasterio>=1.2",
"scipy>=1.12",
]
dynamic = ["version"]
[project.optional-dependencies]
test = [
"pytest>=6",
"pytest-cov>=3"
]
docs = [
"mkdocs",
"mkdocs-gen-files",
"mkdocs-jupyter",
"mkdocs-literate-nav",
"mkdocs-material",
"mkdocs-section-index",
"mkdocs-mermaid2-plugin",
"mkdocstrings[python]",
"pybtex", # for mdx_bib
"pymdown-extensions",
]
[project.urls]
Discussions = "https://github.com/isce-framework/spurt/discussions"
Homepage = "https://github.com/isce-framework/spurt"
Issues = "https://github.com/isce-framework/spurt/issues"
# Entry points for the command line interface
[project.scripts]
spurt-emcf = "spurt.workflows.emcf:__main__"
[tool.black]
preview = true
[tool.mypy]
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
strict = false
[[tool.mypy.overrides]]
module = "test.*"
disable_error_code = ["misc", "no-untyped-def"]
[tool.pytest.ini_options]
addopts = [
"-ra",
"--showlocals",
"--strict-markers",
"--strict-config",
"--cov=spurt",
]
xfail_strict = true
filterwarnings = ["error"]
log_cli_level = "INFO"
testpaths = ["test"]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle (errors)
"W", # pycodestyle (warnings)
"EM", # flake8-errmsg
"EXE", # flake8-executable
"F", # Pyflakes
"FBT", # flake8-boolean-trap
"I", # isort
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # Pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"RET", # flake8-return
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"SLF", # flake8-self
"TRY", # tryceratops
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"PLR", # Pylint Refactor
]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F401"]
"test/**" = ["D"]
"docs/mdx_bib.py" = ["ALL"] # ignore the vendored code
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.isort]
known-first-party = ["spurt"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.setuptools_scm]
write_to = "src/spurt/_version.py"
local_scheme = "no-local-version"