-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
131 lines (127 loc) · 1.76 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[tool.ruff]
target-version = "py39"
line-length = 100
exclude = [
".nox",
"__pycache__",
]
lint.select = [
# flake8-bugbear
"B",
# flake8-comprehensions
"C4",
# pydocstyle
"D",
# Error
"E",
# pyflakes
"F",
# refurb
"FURB",
# isort
"I",
# flake8-gettext
"INT",
# flake8-implicit-str-concat
"ISC",
# pep8-naming
"N",
# compatibility with numpy 2.0
"NPY201",
# Perflint
"PERF",
# pygrep-hooks
"PGH",
# misc lints
"PIE",
# pylint
"PLC",
"PLE",
"PLR",
"PLW",
# flake8-pytest-style
"PT",
# flake8-use-pathlib
"PTH",
# flake8-pyi
"PYI",
# flake8-quotes
"Q",
# Ruff-specific rules
"RUF",
# bandit
"S",
# flake8-simplify
"SIM",
# flake8-debugger
"T10",
# flake8-print
"T20",
# type-checking imports
"TC",
# tidy imports
"TID",
# tryceratops
"TRY",
# pyupgrade
"UP",
# Warning
"W",
# flake8-2020
"YTT",
]
lint.ignore = [
"D103",
"D105",
"E501",
# conflict with ruff-formatter
"ISC001",
# specific type error ignored
"PGH003",
"PLR0913",
"PLR2004",
# url schema
"S310",
"S603",
# shell command
"S605",
"S607",
# custom exception
"TRY003",
# print
"T201",
# pickle
"S301",
# no lambda
"E731",
# try-except
"PERF203",
# specify noqa rule
"PGH004",
]
lint.extend-safe-fixes = [
# break down assert
"PT018",
# Move imports
"TC",
# absolute imports
"TID252",
# module level imports
"E402",
]
lint.isort.known-first-party = [
"async_retriever",
"pygeoogc",
"pygeoutils",
"pynhd",
"py3dep",
"hydrosignatures",
"pygeohydro",
"pydaymet",
"pygridmet",
"pynldas2",
"seamless_3dep",
"pywbt",
]
lint.isort.required-imports = [ "from __future__ import annotations" ]
lint.pydocstyle.convention = "numpy"