-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
45 lines (41 loc) · 1.01 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
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py39"
[tool.ruff.lint]
# Enable ruff rules to act like flake8
select = [
"E", # pycodestyle (formerly part of flake8)
"F", # pyflakes (formerly part of flake8)
"I", # import order (like isort)
# "B", # flake8-bugbear
"C90", # flake8-comprehensions
]
# Exclude specific rules if needed
ignore = [
"E501", # Ignore line length (similar to flake8's max-line-length)
]
[tool.ruff.lint.isort]
case-sensitive = false
force-single-line = true
lines-after-imports = 2
lines-between-types = 1
order-by-type = false
[tool.pytest.ini_options]
addopts = [
"-r", "a",
"--verbose",
"--strict-markers",
"--cov", "src",
"--cov-branch",
"--cov-report", "html",
"--cov-report", "term-missing:skip-covered",
"--durations-min", "1",
"--durations", "10",
"--color", "yes",
"--showlocals",
"--pdbcls", "IPython.terminal.debugger:TerminalPdb",
]
asyncio_mode = "auto"
testpaths = "tests"
pythonpath = "src"