-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
96 lines (84 loc) · 2.01 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "gridit"
dynamic = ["version"]
authors = [
{name = "Mike Taves", email = "[email protected]"},
]
description = "Spatial tools to translate raster or vector geometry data to regular grids"
readme = "README.md"
keywords = ["rasterize", "grid", "regular grid"]
license = {text = "BSD 3-Clause"}
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: GIS",
]
requires-python = ">=3.9"
dependencies = [
"numpy",
]
[project.optional-dependencies]
dev = ["gridit[test,optional]", "pre-commit"]
optional = [
"fiona",
"flopy",
"matplotlib",
"netCDF4",
"geopandas",
"rasterio >=1.2.2",
"scipy",
"shapely",
"xarray",
]
test = [
"pytest",
"pytest-cov",
"pytest-xdist",
]
[project.scripts]
gridit = "gridit.__main__:cli_main"
[project.urls]
Repository = "https://github.com/mwtoews/gridit"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/gridit/_version.py"
[tool.hatch.build.targets.sdist]
only-include = ["src", "tests"]
[tool.hatch.build.targets.wheel]
sources = ["src"]
[tool.pytest.ini_options]
testpaths = [
"tests",
]
filterwarnings = [
"ignore:distutils Version classes are deprecated:DeprecationWarning:numexpr",
"ignore:numpy.ndarray size changed:RuntimeWarning",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"NPY", # NumPy-specific
"RET", # flake8-return
"RUF", # Ruff-specific rules
"UP", # pyupgrade
]
ignore = [
"RUF005", # Consider iterable unpacking instead of concatenation
"RUF012", # Mutable class attributes should be annotated with ...
]
[tool.ruff.lint.per-file-ignores]
"**/{tests}/*" = ["D", "ANN"]
[tool.codespell]
skip = "*grb"
check-filenames = true
ignore-words-list = [
"nam",
"delt",
]