-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
118 lines (97 loc) · 2.54 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "openhexa.sdk"
version = "1.0.0"
description = "OpenHEXA SDK"
authors = [{ name = "Bluesquare", email = "[email protected]" }]
maintainers = [{ name = "Bluesquare", email = "[email protected]" }]
license = { file = "LICENSE" }
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
requires-python = ">=3.9,<3.13" # the main constraint for supported Python versions is the multiprocess library
dependencies = [
"urllib3<3",
"multiprocess~=0.70.15",
"requests>=2.31,<2.33",
"PyYAML~=6.0",
"click~=8.1.3",
"jinja2>3,<4",
"docker>=7",
]
[project.scripts]
openhexa = "openhexa.cli:app"
[project.optional-dependencies]
dev = [
"ruff>=0.7.0,<0.8.0",
"pytest>=8.3,<9",
"build>=0.10,<1.3",
"pytest-cov>=6,<7",
"pre-commit",
"httmock",
]
examples = [
"geopandas>=1.0.0,<1.1.0",
"pandas>=2.0,<2.3",
"rasterio~=1.4.1",
"rasterstats>=0.20,<0.21",
"setuptools>=75.2.0,<76.0.0",
"SQLAlchemy~=2.0.9",
"psycopg2",
]
[tool.setuptools.packages.find]
where = ["."]
namespaces = true
[project.urls]
"Homepage" = "https://github.com/blsq/openhexa-sdk-python"
"Bug Tracker" = "https://github.com/blsq/openhexa-sdk-python/issues"
[tool.setuptools]
include-package-data = true
[tool.ruff]
line-length = 120
ignore = ["E501"]
per-file-ignores = { "tests/**/test_*.py" = ["D100","D101","D102", "D103"] } # Ignore missing docstrings in tests
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"I", # isort
"UP", # pyupgrade
"ANN", # flake8-annotations
]
# Disable all "missing docstrings" and "missing type annotations" rules for now
# TODO: enable
ignore = [
"ANN001",
"ANN002",
"ANN003",
"ANN101",
"ANN102",
"ANN201",
"ANN202",
"ANN204",
"ANN205",
"ANN401",
]
[tool.ruff.pycodestyle]
max-doc-length = 120
[tool.ruff.lint.pydocstyle]
convention = "numpy" # Accepts: "google", "numpy", or "pep257".
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
]