-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (75 loc) · 2.03 KB
/
pyproject.toml
File metadata and controls
84 lines (75 loc) · 2.03 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# CI: Updated to test workflow registration
[project]
name = "geospeed"
version = "0.1.0"
description = "Speed comparison of modern GIS tools for spatial overlay operations"
authors = [{name = "SeHe"}]
requires-python = ">=3.13.7"
dependencies = [
"geopandas==1.1.3",
"pyogrio==0.12.1",
"fiona==1.10.1",
"pyarrow",
"dask-geopandas",
"matplotlib",
"memory-profiler",
"psutil",
"duckdb~=1.5.2",
"pyspark==3.5.8",
"apache-sedona[spark]==1.8.1",
"geofileops>=0.11.1",
]
[dependency-groups]
dev = [
"mypy",
"pytest>=8.4.2",
"pytest-cov",
"coverage[toml]",
"ruff",
"ty>=0.0.29",
]
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
".venv",
".ipynb_checkpoints"
]
include = ["*.py", "*.ipynb"]
line-length = 120
indent-width = 4
target-version = "py313"
[tool.ruff.lint]
select = ["ALL"]
ignore = ["D203", "D212", "ISC001", "COM812", "E501", "T201"]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow test-specific patterns in test files
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"S101", # Allow assert statements in tests
"PLC0415", # Allow imports inside functions in tests (for import testing)
"S603", # Allow subprocess calls in tests (for integration testing)
]
[tool.uv]
# If pyogrio is installed with binaries, it installs an extra GDAL that does not include
# mod_spatialite which breaks geofileops.
no-binary-package = ["pyogrio"]
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "-v --tb=short --strict-markers --cov=geospeed --cov-report=term-missing --cov-report=html"
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
minversion = "8.4"
markers = [
"integration: marks tests as integration tests (may be slow or require external dependencies)",
]