forked from isce-framework/snaphu-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
128 lines (114 loc) · 3.09 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
[build-system]
requires = ["scikit-build-core"]
build-backend = "scikit_build_core.build"
[project]
name = "snaphu"
authors = [
{ name = "Geoffrey Gunter", email = "[email protected]" },
]
description = "A simple Python wrapper for SNAPHU"
readme = "README.md"
keywords = [
"insar",
"phase-unwrapping",
"radar",
"remote-sensing",
"sar",
"synthetic-aperture-radar",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: Free for non-commercial use",
"License :: OSI Approved :: Apache Software License",
"License :: OSI Approved :: BSD License",
"License :: Other/Proprietary License",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.9"
dependencies = ["numpy>=1.20"]
dynamic = ["version"]
[project.optional-dependencies]
raster = ["rasterio>=1.2"]
test = ["pytest>=6", "pytest-cov>=3"]
[project.urls]
Discussions = "https://github.com/isce-framework/snaphu-py/discussions"
Homepage = "https://github.com/isce-framework/snaphu-py"
Issues = "https://github.com/isce-framework/snaphu-py/issues"
[tool.black]
preview = true
[tool.mypy]
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
strict = true
[[tool.mypy.overrides]]
module = "test.*"
disable_error_code = ["misc", "no-untyped-def"]
[tool.pytest.ini_options]
addopts = [
"-ra",
"--showlocals",
"--strict-markers",
"--strict-config",
"--cov=snaphu",
]
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"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.isort]
known-first-party = ["snaphu"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.scikit-build]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["src/snaphu/_version.py"]
wheel.license-files = ["LICENSE-*", "ext/snaphu/README"]
[tool.setuptools_scm]
write_to = "src/snaphu/_version.py"
local_scheme = "no-local-version"