-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
42 lines (38 loc) · 1.05 KB
/
pyproject.toml
File metadata and controls
42 lines (38 loc) · 1.05 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
# Configuration for Ruff.
[tool.ruff]
exclude = [
".git",
".ipynb_checkpoints",
".mypy_cache",
".pytest_cache",
".ruff_cache",
"__pypackages__",
]
line-length = 80
target-version = "py312"
indent-width = 4
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F", "I"]
ignore = [
"E203",
"E501",
"E722",
"E741",
"F821",
]
[tool.ruff.lint.isort]
# Force single line imports
force-single-line = false
# Split on trailing comma
split-on-trailing-comma = true
[tool.pytest.ini_options]
filterwarnings = "ignore:greenlet.greenlet size changed"
# 600s should be quite enough for a single test
# If your test exceeds this time, first check if there is inappropriate sleep or infinite loop.
# If your function do require a long time to run, please overide this by
# adding "@pytest.mark.timeout(300)" to your test.
# https://pypi.org/project/pytest-timeout/
timeout = 600