-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
70 lines (66 loc) · 1.4 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
[build-system]
# Minimum requirements for the build system to execute.
requires = [
"setuptools>=42",
]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 79
[tool.ruff]
line-length = 79
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.lint]
select = [
"E", # Pycodestyle
"W", # Pycodestyle
"N", # pep8-naming
"B", # flake8-bugbear
"A", # flake8-builtins
"ISC", # flake8-implicit-str-concat
"T20", # flake8-print
"F", # Pyflakes
"I", # isort
"NPY", # numpy rules
"PD", # pandas-vet
"ASYNC", # flake8-async
"SLOT", # flake8-slots
"SIM", # flake8-simplify
"Q", # flake8-quotes
"C4", # flake8-comprehensions
"PERF", # perflint
"NPY201", # Numpy 2.0
]
extend-select = ["I"]
ignore = [
# Whitespace before ':'. flake8 is wrong when inside slice expressions.
"E203",
]
[tool.ruff.lint.isort]
known-first-party = ["raster_tools", "test"]
[tool.isort]
profile = "black"
line_length = 79
known_first_party = ["raster_tools", "test"]