-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
110 lines (99 loc) · 2.77 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
[build-system]
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[project]
name = "giddy"
dynamic = ["version"]
maintainers = [
{name = "Wei Kang", email = "weikang9009@gmail.com"},
]
license = {text = "BSD 3-Clause"}
description = "PySAL-giddy for exploratory spatiotemporal data analysis"
keywords = ["spatial statistics", "spatiotemporal analysis"]
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: GIS",
]
requires-python = ">=3.10"
dependencies = [
"esda>=2.4",
"libpysal>=4.8",
"mapclassify>=2.5",
"quantecon>=0.7",
"scipy>=1.8",
]
[project.urls]
Home = "https://pysal.org/giddy/"
Repository = "https://github.com/pysal/giddy"
[project.optional-dependencies]
dev = [
"ruff",
"pre-commit",
]
docs = [
"nbsphinx",
"numpydoc",
"sphinx",
"sphinxcontrib-bibtex",
"sphinx_bootstrap_theme",
]
tests = [
"codecov",
"ipywidgets",
"matplotlib",
"pytest",
"pytest-cov",
"pytest-xdist",
"splot",
]
[tool.setuptools.packages.find]
include = [
"giddy",
"giddy.*",
]
[tool.ruff]
line-length = 88
lint.select = ["E", "F", "W", "I", "UP", "N", "B", "A", "C4", "SIM", "ARG"]
exclude = ["giddy/tests/*", "docs/*"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401" # imported but unused
]
"giddy/{directional,ergodic,markov,rank,sequence,util}.py" = [
"ARG002", # Unused method argument
"N801", # Class name should use CapWords convention
"N802", # Function name should be lowercase
"N803", # Argument name should be lowercase
"N806", # Variable in function should be lowercase
]
"giddy/markov.py" = [
"B006", # Do not use mutable data structures for argument defaults
"UP031", # Use format specifiers instead of percent format
]
"giddy/{ergodic,markov,sequence}.py" = [
"E501", # Line too long
]
[tool.coverage.run]
source = ["./giddy"]
[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError",
"except ModuleNotFoundError:",
"except ImportError",
]
ignore_errors = true
omit = ["giddy/tests/*", "docs/conf.py"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:The weights matrix is not fully connected", # libpysal
"ignore:Objects based on the `Geometry` class will deprecated", # libpysal
"ignore:divide by zero encountered",
"ignore:invalid value encountered",
"ignore:numba.generated_jit is deprecated.", # numba/quantecon
"ignore:::.*quantecon.lss:19", # numba/quantecon
]