-
Notifications
You must be signed in to change notification settings - Fork 64
/
pyproject.toml
54 lines (49 loc) · 1.42 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
[tool.black]
line-length = 89
[tool.ruff]
line-length = 89
select = [
"F", # Errors detected by Pyflakes
"E", # Error detected by Pycodestyle
"W", # Warning detected by Pycodestyle
"I", # isort
"D", # pydocstyle
"B", # flake8-bugbear
"TID", # flake8-tidy-imports
"C4", # flake8-comprehensions
"BLE", # flake8-blind-except
"UP", # pyupgrade
"RUF100", # Report unused noqa directives
]
ignore = [
# Missing docstring in public package
"D104",
# Missing docstring in public module
"D100",
# Missing docstring in __init__
"D107",
# We don’t want a blank line before a class docstring
"D203",
# We want docstrings to start immediately after the opening triple quote
"D213",
]
[tool.ruff.isort]
force-single-line = true
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.ruff.per-file-ignores]
"docs/*" = ["I"]
"tests/*" = ["D"]
# Ignore errors linked to sphinx gallery syntax
"examples/*" = ["D205", "B018", "D400"]
# Ignore unused imports in __init__.py files
"*/__init__.py" = ["F401"]
# pyproject.toml
[tool.pytest.ini_options]
filterwarnings = [
"error",
'''ignore:\s*Pyarrow will become a required dependency of pandas:DeprecationWarning''',
# ignore Pyarrow deprecation warnings
'''ignore:\s*A value is trying to be set on a copy of a DataFrame:FutureWarning''',
'''ignore:\s*Setting an item of incompatible dtype:FutureWarning''',
]