-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
112 lines (103 loc) · 2.46 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
[project]
name = "sarkit"
description = "Suite of SAR-related tools in Python."
authors = [
{name = "National Geospatial-Intelligence Agency"},
]
requires-python = ">=3.11"
readme = "README.md"
license = {text = "MIT"}
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = ["version"]
dependencies = [
"lxml>=5.1.0",
"numpy>=1.26.3",
]
[project.optional-dependencies]
verification = [
"pytest>=8.0.0",
"shapely>=2.0.2",
]
processing = [
"numba>=0.59.1",
]
all = [
"sarkit[processing,verification]"
]
dev-lint = [
"ruff>=0.3.0",
"mypy>=1.8.0",
]
dev-test = [
"pytest>=7.4.4",
]
dev = [
"sarkit[dev-test,dev-lint]",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.version]
source = "scm"
write_to = "sarkit/_version.py"
write_template = "__version__ = '{}'"
[tool.pdm]
distribution = true
[tool.pdm.dev-dependencies]
test = [
"nox>=2024.3.2",
]
doc = [
"sphinx>=7.2.6",
"numpydoc>=1.7.0",
"sphinx-rtd-theme>=2.0.0",
"sphinxcontrib-autoprogram>=0.1.9",
"sarkit[all]"
]
[tool.ruff.lint]
select = [
"E4", # pycodestyle Import
"E7", # pycodestyle Statement
"E9", # pycodestyle Runtime
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"NPY", # NumPy-specific
"ISC", # flake8-implicit-str-concat
"RUF022", # unsorted-dunder-all
]
preview = true
[[tool.mypy.overrides]]
module = [
"lxml.*",
"numba.*",
"shapely.*",
"_pytest.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"sarkit.standards.general.base",
"sarkit.standards.general.data_segment",
"sarkit.standards.general.format_function",
"sarkit.standards.general.nitf",
"sarkit.standards.general.nitf_elements.base",
"sarkit.standards.general.nitf_elements.des",
"sarkit.standards.general.nitf_elements.graphics",
"sarkit.standards.general.nitf_elements.image",
"sarkit.standards.general.nitf_elements.nitf_head",
"sarkit.standards.general.nitf_elements.res",
"sarkit.standards.general.nitf_elements.security",
"sarkit.standards.general.nitf_elements.text",
"sarkit.standards.general.slice_parsing"
]
ignore_errors = true