You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
1.7 KiB
87 lines
1.7 KiB
# Root pyproject.toml — tooling configuration only.
|
|
# To install packages, use:
|
|
# pip install -e decoupled_wbc/ (or decoupled_wbc[full], decoupled_wbc[dev])
|
|
# pip install -e gear_sonic/ (or gear_sonic[teleop], gear_sonic[sim])
|
|
|
|
[tool.black]
|
|
line-length = 100
|
|
include = '\.pyi?$'
|
|
exclude = '''
|
|
(
|
|
__pycache__
|
|
| \.git
|
|
| \.mypy_cache
|
|
| \.pytest_cache
|
|
| \.vscode
|
|
| \.venv
|
|
| \bdist\b
|
|
| \bdoc\b
|
|
| external_dependencies
|
|
| logs
|
|
| source
|
|
| /(
|
|
| external_dependencies/
|
|
)/
|
|
)
|
|
'''
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
multi_line_output = 3
|
|
skip = [
|
|
"external_dependencies",
|
|
"external_dependencies/**",
|
|
]
|
|
skip_glob = [
|
|
"external_dependencies/*",
|
|
]
|
|
|
|
[tool.pyright]
|
|
reportPrivateImportUsage = false
|
|
|
|
[tool.ruff]
|
|
line-length = 115
|
|
target-version = "py310"
|
|
exclude = [
|
|
"gear_sonic/dexmg",
|
|
"external_dependencies",
|
|
"external_dependencies/**",
|
|
"./external_dependencies/**",
|
|
"*.ipynb",
|
|
]
|
|
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"__init__.py" = ["F401"]
|
|
|
|
[tool.ruff.lint.isort]
|
|
case-sensitive = false
|
|
combine-as-imports = true
|
|
force-sort-within-sections = true
|
|
from-first = false
|
|
single-line-exclusions = ["typing"]
|
|
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
|
|
|
|
[tool.mypy]
|
|
ignore_missing_imports = true
|
|
no_site_packages = true
|
|
check_untyped_defs = true
|
|
exclude = [
|
|
"external_dependencies",
|
|
]
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = "tests.*"
|
|
strict_optional = false
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = "decoupled_wbc/tests/"
|
|
python_classes = [
|
|
"Test*",
|
|
"*Test"
|
|
]
|
|
log_format = "%(asctime)s - %(levelname)s - %(name)s - %(message)s"
|
|
log_level = "DEBUG"
|