-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
127 lines (108 loc) · 2.89 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
[build-system]
requires = ["setuptools>=61.2", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pygaul"
version = "0.3.4"
description = "Easy access to administrative boundary defined by FAO GAUL from a Python script."
keywords = ["skeleton", "Python"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.7"
dependencies = [
"deprecated>=1.2.14",
"pandas",
"earthengine-api",
"pyarrow"
]
[[project.authors]]
name = "Pierrick Rambaud"
email = "[email protected]"
[project.license]
text = "MIT"
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.urls]
Homepage = "https://github.com/12rambau/pygaul"
[project.optional-dependencies]
dev = [
"pre-commit",
"commitizen",
"nox"
]
test = [
"pytest",
"pytest-sugar",
"pytest-cov",
"pytest-deadfixtures",
"httplib2",
"pytest-regressions>=2.4.3", # https://github.com/ESSS/pytest-regressions/issues/136
"pytest-gee",
]
doc = [
"sphinx>=6.2.1,<7", # https://github.com/pydata/pydata-sphinx-theme/issues/1404
"pydata-sphinx-theme",
"sphinx-copybutton",
"sphinx-design",
"sphinx-icon",
"sphinx-autoapi",
"geemap",
"jupyter-sphinx!=0.4.0", # https://github.com/jupyter/jupyter-sphinx/issues/222
"httplib2",
"ipykernel",
]
[tool.setuptools]
license-files = ["LICENSE"]
include-package-data = true
[tool.setuptools.package-data]
pygaul = ["data/gaul_database.parquet", "data/gaul_continent.json"]
[tool.setuptools.packages.find]
include = ["pygaul*"]
exclude = ["docs*", "tests*"]
[tool.commitizen]
tag_format = "v$major.$minor.$patch$prerelease"
update_changelog_on_bump = false
version = "0.3.4"
version_files = [
"pyproject.toml:version",
"pygaul/__init__.py:__version__",
"docs/conf.py:release"
]
[tool.pytest.ini_options]
testpaths = "tests"
[tool.ruff]
ignore-init-module-imports = true
fix = true
select = ["E", "F", "W", "I", "D", "RUF"]
ignore = [
"E501", # line too long | Black take care of it
"D212", # Multi-line docstring | We use D213
"D101", # Missing docstring in public class | We use D106
]
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.pydocstyle]
convention = "google"
[tool.coverage.run]
source = ["pygaul"]
[tool.doc8]
ignore = ["D001"] # we follow a 1 line = 1 paragraph style
[tool.mypy]
scripts_are_modules = true
ignore_missing_imports = true
install_types = true
non_interactive = true
warn_redundant_casts = true
[tool.licensecheck]
using = "PEP631:test;dev;doc"
[tool.codespell]
skip = "./pygaul/data/gaul_continent.json,**/*.csv,**/*.svg"