-
Notifications
You must be signed in to change notification settings - Fork 132
/
pyproject.toml
133 lines (118 loc) · 3.3 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
[build-system]
requires = ['scikit-build-core', 'cython']
build-backend = 'scikit_build_core.build'
[project]
name = 'h3'
version = '4.1.2'
description = "Uber's hierarchical hexagonal geospatial indexing system"
readme = 'readme.md'
license = {file = 'LICENSE'}
authors = [
{ name = 'Uber Technologies', email = '[email protected]' },
]
maintainers = [
{ name = 'AJ Friend', email = '[email protected]' },
]
requires-python = '>=3.8'
dependencies = []
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: C',
'Programming Language :: Cython',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Topic :: Scientific/Engineering :: GIS',
]
[project.urls]
Homepage = 'https://github.com/organization/package'
Documentation = 'https://package.readthedocs.io/'
'Bug Tracker' = 'https://github.com/organization/package/issues'
Discussions = 'https://github.com/organization/package/discussions'
Changelog = 'https://package.readthedocs.io/en/latest/changelog.html'
[project.optional-dependencies]
numpy = ['numpy']
test = ['pytest', 'pytest-cov', 'ruff', 'numpy']
all = [
'h3[test]',
'jupyter-book',
'sphinx>=7.3.3', # https://github.com/sphinx-doc/sphinx/issues/12290
'jupyterlab',
'jupyterlab-geojson',
'geopandas',
'geodatasets',
'matplotlib',
'contextily',
'cartopy',
'geoviews',
]
[tool.pytest.ini_options]
addopts = "--cov=h3 --cov=tests --cov-report=term-missing --durations=10"
[tool.coverage.run]
omit = [
'*/h3/api/basic_int/__init__.py',
'*/h3/api/memview_int/__init__.py',
'*/h3/api/numpy_int/__init__.py'
]
[tool.scikit-build]
sdist.exclude = [
'src/h3lib',
'docs',
'dev_notes.md',
'makefile',
]
sdist.include = [
'src/h3lib/LICENSE',
'src/h3lib/README.md',
'src/h3lib/VERSION',
'src/h3lib/CMakeLists.txt',
'src/h3lib/cmake/*',
'src/h3lib/src/h3lib/*'
]
[tool.ruff]
src = [
'src',
'tests',
]
line-length = 88
[tool.ruff.lint]
flake8-quotes.inline-quotes = 'single'
# https://docs.astral.sh/ruff/rules/
preview = true # https://docs.astral.sh/ruff/preview/#selecting-single-preview-rules
select = [
'A',
# 'B', # todo
# 'COM', # todo
'E',
'F',
'Q',
'W',
# 'D', # todo. this is nice!
# 'PL', # todo. some interesting ideas
# 'DOC', # todo: interesting
]
ignore = [
'E221', # Multiple spaces before operator
'E231', # Missing whitespace after ','
'E241', # Multiple spaces after ','
'E251', # Unexpected spaces around keyword / parameter equals
'E272', # Multiple spaces before keyword
'E731', # Do not assign a `lambda` expression, use a `def`
# 'PLR2004',
]
[tool.ruff.lint.per-file-ignores]
'*.ipynb' = [
'E501', # Line too long (104 > 88)
]
'test*.py' = [
# 'D', # maybe just the need for docstring
]