formatting and linting automation

Squashed commits:
[cd479ba] formatting and linting automation
[7fbfabb] formatting and linting automation
[c4f9505] fix after rebase
[f506ad4] rename job
[441d517] update doc (+7 squashed commits)
[2e1b416] fix invoke and github action
[6ae5bb4] doc for git blame
[44b5461] add GitHub action
[b07474f] add docs
[4cd9a6f] more linter fixes
[db71901] wip
[540dc88] wip
This commit is contained in:
Gilles Boccon-Gibod
2022-12-10 09:29:51 -08:00
parent 80fe2ea422
commit c2959dadb4
140 changed files with 2632 additions and 1346 deletions

View File

@@ -4,3 +4,49 @@ build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "bumble/_version.py"
[tool.pytest.ini_options]
pythonpath = "."
testpaths = [
"tests"
]
[tool.pylint.master]
init-hook = 'import sys; sys.path.append(".")'
[tool.pylint.messages_control]
max-line-length = "88"
disable = [
"broad-except",
"fixme",
"logging-fstring-interpolation",
"logging-not-lazy",
"no-member", # Temporary until pylint works better with class/method decorators
"no-value-for-parameter", # Temporary until pylint works better with class/method decorators
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-public-methods",
"too-many-statements",
]
ignore = [
"emulated_bluetooth_pb2.py",
"emulated_bluetooth_pb2_grpc.py",
"emulated_bluetooth_vhci_pb2_grpc.py",
"emulated_bluetooth_packets_pb2.py",
"emulated_bluetooth_vhci_pb2.py"
]
[tool.pylint.typecheck]
signature-mutators="AsyncRunner.run_in_task"
[tool.black]
skip-string-normalization = true