-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
50 lines (40 loc) · 1.23 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
# ============================================================================
# Testing
# ============================================================================
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests", "src/compas_robots"]
python_files = [
"test_*.py",
"tests.py"
]
addopts = "-ra --strict --doctest-modules --doctest-glob=*.rst --tb=short"
doctest_optionflags= "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ALLOW_UNICODE ALLOW_BYTES NUMBER"
filterwarnings = "ignore::DeprecationWarning"
# ============================================================================
# Linting and formatting
# ============================================================================
[tool.black]
line-length = 120
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = [
"compas_robots",
]
[tool.ruff]
line-length = 179
indent-width = 4
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["I001"]
"tests/*" = ["I001", "E501"]
"tasks.py" = ["I001"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.pycodestyle]
max-doc-length = 179
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"