-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
113 lines (101 loc) · 2.44 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
[tool.poetry]
name = "nasa-csda"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]
readme = "README.md"
keywords = [
"Development Status :: 5 - Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[tool.poetry.dependencies]
python = "^3.9"
httpx = {extras = ["http2"], version = "^0.27.0"}
tenacity = "^9.0.0"
click = "^8.1.7"
tqdm = "^4.66.4"
pydantic = "^2.8.2"
stac-pydantic = "^3.1.1"
asyncclick = "^8.1.7.2"
aiostream = "^0.6.2"
python-dateutil = "^2.9.0.post0"
pydantic-settings = "^2.4.0"
platformdirs = "^4.2.2"
cachetools = "^5.4.0"
[tool.poetry.scripts]
nasa-csda-cli = "nasa_csda.cli:cli"
[tool.poetry.group.dev.dependencies]
black = "^24.4.2"
flake8 = "^7.1.0"
mypy = "^1.11.1"
types-pytz = "^2024.1.0.20240417"
types-python-dateutil = "^2.9.0.20240316"
pre-commit = "^3.8.0"
pytest = "^8.3.2"
pytest-httpx = "^0.30.0"
polyfactory = "^2.16.2"
pytest-asyncio = "^0.23.8"
types-cachetools = "^5.4.0.20240717"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
pattern = "^release/(?P<base>\\d+\\.\\d+\\.\\d+)(-?((?P<stage>[a-zA-Z]+)\\.?(?P<revision>\\d+)?))?"
format-jinja = """
{%- if distance == 0 -%}
{{- base -}}
{%- else -%}
{{- base }}.dev{{ distance }}+g{{commit}}
{%- endif -%}
"""
format-jinja-imports = [
{ module = "datetime", item = "datetime" }
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 132
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.flake8]
max-line-length = 132
max-complexity = 18
select = ["B", "C", "E", "F", "W", "T4", "B9"]
ignore = ["E231", # conflicts with black
"W503", # conflicts with black
"N805"] # conflicts with pydantic validators
[tool.isort]
profile = "black"
line_length = 132
[tool.mypy]
plugins = ["pydantic.mypy"]
allow_redefinition = true
check_untyped_defs = true
ignore_errors = false
ignore_missing_imports = true
local_partial_types = true
strict_equality = true
strict_optional = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
exclude = ["tests/.*", "examples/.*"]
[tool.pytest.ini_options]
asyncio_mode = "auto"