-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
87 lines (79 loc) · 2 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
[project]
name = "pysnapping"
description = "Snap points to a line string keeping a given order or spacing intact"
readme = "README.md"
dependencies = [
"shapely",
"numpy",
"pyproj>=3.2.0", # for defining custom CRS
]
requires-python = ">=3.9"
license = {file = "LICENSE"}
authors = [{name = "Alexander Held | geOps", email = "alexander.held@geops.com"}]
maintainers = [{name = "Alexander Held | geOps", email = "alexander.held@geops.com"}]
keywords = [
"snapping",
"projecting",
"linear referencing",
"order",
"linestring",
"GIS",
"GTFS",
"kilometrage",
"DAG",
"shortest path",
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/geops/pysnapping"
geOps = "https://geops.com/en"
[build-system]
requires = ["setuptools>=61", "setuptools_scm[toml]>=6.2", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.setuptools.packages.find]
include = ["pysnapping", "pysnapping.*"]
[tool.ruff]
select = [
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
"UP", # pyupgrade
"C901", # mccabe
"YTT", # no sys.version tuple comparisons
"ASYNC", # no obviously blocking io in corotine
"G", # flake8-logging-format
"PIE", # unnecessary statements
"SLOT", # str, tuple, namedtuple subclasses need __slots__
"FIX003", # line contains XXX
]
ignore = [
"E501", # line too long
"UP038", # see https://github.com/astral-sh/ruff/issues/7871
]
[tool.ruff.lint.mccabe]
max-complexity = 12
[tool.mypy]
ignore_missing_imports = true
plugins = [
"numpy.typing.mypy_plugin",
]
install_types = true
non_interactive = true
[tool.coverage.run]
branch = true
source = [
"pysnapping"
]
omit = [
"pysnapping/test/*",
]