forked from xpublish-community/xpublish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
61 lines (55 loc) · 1.06 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
[tool.black]
line-length = 100
skip-string-normalization = true
[tool.pytest.ini_options]
log_cli = true
log_level = "INFO"
addopts = "--cov=./ --cov-report=xml --verbose"
[tool.ruff]
select = [
"B", # flake8-bugbear
"C",
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"W", # pycodestyle
# "T4",
"B9",
]
ignore = [
# "E203",
# "E266",
"E501",
# "W503",
"E722",
"E402",
"C901",
]
line-length = 100
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 18
[tool.ruff.isort]
combine-as-imports = true
known-first-party = ["xpublish"]
known-third-party = [
"cachey",
"dask",
"fastapi",
"numcodecs",
"numpy",
"pandas",
"pkg_resources",
"pluggy",
"pydantic",
"pytest",
"setuptools",
"sphinx_autosummary_accessors",
"starlette",
"uvicorn",
"xarray",
"zarr",
]
[tool.ruff.flake8-bugbear]
# Allow fastapi.Depends and other dependency injection style function arguments
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"]