-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
98 lines (87 loc) · 2.64 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
[project]
name = "geohashr"
authors = [
{name = "Giovanni Barillari", email = "[email protected]"},
{name = "Paolo Quadri", email = "[email protected]"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python",
"Programming Language :: Rust",
"Topic :: Scientific/Engineering :: GIS"
]
dynamic = [
"description",
"keywords",
"license",
"readme",
"version"
]
requires-python = ">=3.8"
dependencies = []
[project.optional-dependencies]
lint = ["ruff~=0.5.0"]
test = ["pytest~=8.3.2"]
dev = ["geohashr[lint,test]"]
[project.urls]
Homepage = "https://github.com/gi0baro/geohashr"
Funding = "https://github.com/sponsors/gi0baro"
Source = "https://github.com/gi0baro/geohashr"
[build-system]
requires = ["maturin>=1.1.0,<2"]
build-backend = "maturin"
[tool.maturin]
module-name = "geohashr._geohashr"
bindings = "pyo3"
[tool.ruff]
line-length = 120
[tool.ruff.format]
quote-style = 'double'
[tool.ruff.lint]
extend-select = [
# E and F are enabled by default
'B', # flake8-bugbear
'C4', # flake8-comprehensions
'C90', # mccabe
'I', # isort
'N', # pep8-naming
'Q', # flake8-quotes
'RUF100', # ruff (unused noqa)
'S', # flake8-bandit
'W', # pycodestyle
]
extend-ignore = [
# 'B006', # mutable function args are fine
# 'B008', # function calls in args defaults are fine
# 'B034', # re.split won't confuse us
# 'B904', # rising without from is fine
# 'E731', # assigning lambdas is fine
# 'N801', # leave to us class naming
# 'N802', # leave to us method naming
# 'N806', # leave to us var naming
# 'N818', # leave to us exceptions naming
'S101', # assert is fine
# 'S110', # pass on exceptions is fine
]
mccabe = { max-complexity = 24 }
[tool.ruff.lint.isort]
combine-as-imports = true
lines-after-imports = 2
known-first-party = ['geohashr', 'tests']
[tool.ruff.lint.per-file-ignores]
'geohashr/__init__.py' = ['F401']
'tests/**' = ['B018', 'S110', 'S501']