Newer
Older
description = 'MODIS-VIIRS Cloud Mask algorithm for LEO/GEO'
requires-python = '>=3.9,<3.12'
# license = ''
authors = [
{ name = 'Paolo Veglio', email = 'paolo.veglio@ssec.wisc.edu'},
]
classifiers = [
'Development Status :: 2 - Pre-Alpha',
# 'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Cython',
'Programming Language :: C',
]
dependencies = [
'Cython',
'wheel',
'setuptools',
'numpy',
'xarray',
'attrs',
[project.scripts]
mvcm = "mvcm.cli_mvcm:mvcm"
[tool.hatch.envs.test]
dependencies = [
'pytest',
]
[build-system]
requires = ['hatchling']
build-backend = 'hatchling.build'
[tool.pytest.ini_options]
addopts = [
'--import-mode=importlib',
[tool.hatch.envs.lint]
detached = true
dependencies = [
"black>=23.1.0",
"ruff>=0.0.243",
"mypy>=1.0.0",
]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive {args:mvcm tests}"
style = [
"ruff {args:.}",
"black --check --diff {args:.}",
]
fmt = [
"black {args:.}",
"ruff --fix {args:.}",
"style",
]
all = [
'style',
'typing',
]
[tool.black]
target-version = ['py39']
line-length = 100
# skip-string-normalization = true
[tool.ruff]
line-length = 100
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
select = [
"A",
"ARG",
"B",
"C",
"DTZ",
"E",
"EM",
"F",
"FBT",
"I",
"ICN",
"ISC",
"N",
"PLC",
"PLE",
"PLR",
"PLW",
"Q",
"RUF",
"S",
"T",
"TID",
"UP",
"W",
"YTT",
]
ignore = [
# Avoid false positives on local modules. isort still sorts the imports properly
# "I001",
# Allow non-abstract empty methods in abstract base classes
"B027",
# Allow boolean positional values in function calls, like `dict.get(... True)`
"FBT003",
# Ignore checks for possible passwords
"S105", "S106", "S107",
# Prone to false positives
"S603",
# Ignore complexity
"C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915",
]
[tool.ruff.isort]
known-first-party = ["mvcm"]
[tool.ruff.per-file-ignores]
# Tests can use magic values, assertions, and relative imports
"tests/**/*" = ["PLR2004", "S101", "TID252"]
[tool.mypy]
ignore_missing_imports = true