-
Notifications
You must be signed in to change notification settings - Fork 123
/
pyproject.toml
147 lines (128 loc) · 3.25 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "geetools"
version = "1.10.0"
description = "A collection of tools to work with Google Earth Engine Python API"
keywords = [
"python",
"geospatial",
"remote-sensing",
"google-earth-engine",
"earthengine",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.9"
dependencies = [
"earthengine-api>=1", # fully static implementation
"requests",
"pandas",
"geopandas",
"deprecated",
"ee-extra",
"xee>=0.0.11", # xee change dtype management
"yamlable",
"matplotlib",
"anyascii",
]
[[project.authors]]
name = "Rodrigo E. Principe"
email = "fitoprincipe82@gmail.com"
[project.license]
text = "MIT"
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.urls]
Homepage = "https://github.com/gee-community/geetools"
[project.optional-dependencies]
"dev" = [
"pre-commit",
"nox",
"commitizen"
]
"test" = [
"pytest",
"pytest-cov",
"pytest-deadfixtures",
"httplib2",
"pytest-regressions",
"Pillow",
"pytest-gee>=0.4.0", # get the special regressions
"jsonschema",
]
doc = [
"sphinx>=6.2.1",
"pydata-sphinx-theme",
"sphinx-copybutton",
"sphinx-design",
"sphinx-autoapi==3.1.0a3", # until v3.1 is released with the single page fix
"ipykernel",
"httplib2",
"jupyter-sphinx",
"myst-nb",
"pytest-gee>=0.3.7", # avoid issue with rdt env variables
"sphinx-icon",
"sphinx-last-updated-by-git",
]
[tool.hatch.build.targets.wheel]
only-include = ["geetools"]
[tool.hatch.envs.default]
dependencies = [
"pre-commit",
"commitizen",
"nox"
]
post-install-commands = ["pre-commit install"]
[tool.licensecheck]
using = "PEP631:test;dev;doc"
[tool.ruff]
ignore-init-module-imports = true
fix = true
select = ["E", "F", "W", "I", "D", "RUF"]
extend-exclude = ["geetools/__init__.py", "geetools/tools/_deprecated_imagecollection.py"]
force-exclude = true # to make sure exclude is respected when used via pre-commit
ignore = [
"E501", # line too long | Black take care of it
"D213", # Multi-line docstring | We use D212
"E741", # Ambiguous variable name: `l` | TODO
]
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.per-file-ignores]
"tests/*" = ["D102"] # Missing docstring in public method | this is test who cares
[tool.pytest.ini_options]
testpaths = "tests"
[tool.coverage.run]
source = ["geetools"]
branch = true
[tool.commitizen]
tag_format = "v$major.$minor.$patch$prerelease"
update_changelog_on_bump = false
version = "1.10.0"
version_files = [
"pyproject.toml:version",
"geetools/__init__.py:__version__",
"docs/conf.py:release",
]
[tool.codespell]
skip = "geetools/tools/*,geetools/classification.py,**/*.ipynb,**/*.yml"
[tool.black]
line-length = 100
[tool.mypy]
scripts_are_modules = true
ignore_missing_imports = true
install_types = true
non_interactive = true
warn_redundant_casts = true