forked from mheberger/upstream-delineator
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (68 loc) · 2.07 KB
/
pyproject.toml
File metadata and controls
77 lines (68 loc) · 2.07 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
dependencies = [
"geopandas~=1.0",
"graphviz==0.20.3",
"matplotlib==3.*",
"networkx~=3.0",
"numpy>=1.26,<3",
"pandas~=2.1",
"pyarrow",
"pyogrio",
"pyproj~=3.0",
"pysheds>=0.3",
"requests~=2.32",
"scipy~=1.0",
"shapely~=2.1",
"topojson~=1.9",
]
name = "upstream_delineator"
version = "0.1.1"
description = "Delineate basins"
requires-python = ">=3.11"
[dependency-groups]
dev = [
"ruff~=0.9",
"pytest~=9.0",
"pytest-sugar~=1.0",
"pytest-timeout~=2.3",
"syrupy~=5.0",
]
[tool.pytest.ini_options]
testpaths = ["tests/"]
addopts = "--strict-markers"
timeout = 90
[tool.ruff]
target-version = "py311"
[tool.ruff.lint]
select = [
"F", # https://docs.astral.sh/ruff/rules/#pyflakes-f
"RUF", # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
"T100", # https://docs.astral.sh/ruff/rules/debugger/
"PT", # https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt
"TC", # https://docs.astral.sh/ruff/rules/#flake8-type-checking-tc
"FURB", # https://docs.astral.sh/ruff/rules/#refurb-furb
"S", # https://docs.astral.sh/ruff/rules/#flake8-bandit-s
"I", # https://docs.astral.sh/ruff/rules/#isort-i
"INP001", # https://docs.astral.sh/ruff/rules/implicit-namespace-package/
"PLE", # https://docs.astral.sh/ruff/rules/#error-ple
"NPY", # https://docs.astral.sh/ruff/rules/#numpy-specific-rules-npy
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
"ICN", # https://docs.astral.sh/ruff/rules/#flake8-import-conventions-icn
"TID", # https://docs.astral.sh/ruff/rules/#flake8-tidy-imports-tid
]
ignore = [
"S101", # https://docs.astral.sh/ruff/rules/assert/
]
allowed-confusables = ["’", "–"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"