Gilles Boccon-Gibod | 6ac91f7 | 2022-05-16 19:42:31 -0700 | [diff] [blame] | 1 | [build-system] |
| 2 | requires = ["setuptools>=52", "wheel", "setuptools_scm>=6.2"] |
| 3 | build-backend = "setuptools.build_meta" |
| 4 | |
| 5 | [tool.setuptools_scm] |
Alan Rosenthal | 55e2f23 | 2022-12-09 12:23:45 -0500 | [diff] [blame] | 6 | write_to = "bumble/_version.py" |
Gilles Boccon-Gibod | c2959da | 2022-12-10 09:29:51 -0800 | [diff] [blame] | 7 | |
| 8 | [tool.pytest.ini_options] |
| 9 | pythonpath = "." |
| 10 | testpaths = [ |
| 11 | "tests" |
| 12 | ] |
| 13 | |
| 14 | [tool.pylint.master] |
| 15 | init-hook = 'import sys; sys.path.append(".")' |
Gilles Boccon-Gibod | 5f86cdd | 2023-01-18 23:27:06 +0000 | [diff] [blame] | 16 | ignore-paths = [ |
| 17 | '.*_pb2(_grpc)?.py' |
| 18 | ] |
Gilles Boccon-Gibod | c2959da | 2022-12-10 09:29:51 -0800 | [diff] [blame] | 19 | |
| 20 | [tool.pylint.messages_control] |
| 21 | max-line-length = "88" |
| 22 | |
| 23 | disable = [ |
| 24 | "broad-except", |
| 25 | "fixme", |
| 26 | "logging-fstring-interpolation", |
| 27 | "logging-not-lazy", |
| 28 | "no-member", # Temporary until pylint works better with class/method decorators |
| 29 | "no-value-for-parameter", # Temporary until pylint works better with class/method decorators |
| 30 | "missing-class-docstring", |
| 31 | "missing-function-docstring", |
| 32 | "missing-module-docstring", |
| 33 | "too-few-public-methods", |
| 34 | "too-many-arguments", |
| 35 | "too-many-branches", |
| 36 | "too-many-instance-attributes", |
| 37 | "too-many-lines", |
| 38 | "too-many-locals", |
| 39 | "too-many-public-methods", |
| 40 | "too-many-statements", |
| 41 | ] |
| 42 | |
uael | afcce0d | 2023-05-10 08:20:24 +0000 | [diff] [blame] | 43 | [tool.pylint.main] |
| 44 | ignore="pandora" # FIXME: pylint does not support stubs yet: |
| 45 | |
Gilles Boccon-Gibod | c2959da | 2022-12-10 09:29:51 -0800 | [diff] [blame] | 46 | [tool.pylint.typecheck] |
| 47 | signature-mutators="AsyncRunner.run_in_task" |
| 48 | |
| 49 | [tool.black] |
| 50 | skip-string-normalization = true |
Gilles Boccon-Gibod | 5f86cdd | 2023-01-18 23:27:06 +0000 | [diff] [blame] | 51 | extend-exclude = ''' |
| 52 | ( |
| 53 | .*_pb2(_grpc)?.py # exclude autogenerated Protocol Buffer files anywhere in the project |
| 54 | ) |
| 55 | ''' |
| 56 | |
| 57 | [tool.mypy] |
| 58 | exclude = ['bumble/transport/grpc_protobuf'] |
Gilles Boccon-Gibod | 99758e4 | 2023-01-20 00:20:50 -0800 | [diff] [blame] | 59 | |
| 60 | [[tool.mypy.overrides]] |
Gilles Boccon-Gibod | 5f86cdd | 2023-01-18 23:27:06 +0000 | [diff] [blame] | 61 | module = "bumble.transport.grpc_protobuf.*" |
Gilles Boccon-Gibod | 99758e4 | 2023-01-20 00:20:50 -0800 | [diff] [blame] | 62 | ignore_errors = true |
| 63 | |
| 64 | [[tool.mypy.overrides]] |
| 65 | module = "aioconsole.*" |
| 66 | ignore_missing_imports = true |
| 67 | |
| 68 | [[tool.mypy.overrides]] |
Gilles Boccon-Gibod | b7ef09d | 2023-02-04 09:26:31 -0800 | [diff] [blame] | 69 | module = "construct.*" |
| 70 | ignore_missing_imports = true |
| 71 | |
| 72 | [[tool.mypy.overrides]] |
Gilles Boccon-Gibod | 99758e4 | 2023-01-20 00:20:50 -0800 | [diff] [blame] | 73 | module = "grpc.*" |
| 74 | ignore_missing_imports = true |
| 75 | |
| 76 | [[tool.mypy.overrides]] |
| 77 | module = "serial_asyncio.*" |
| 78 | ignore_missing_imports = true |
| 79 | |
| 80 | [[tool.mypy.overrides]] |
| 81 | module = "usb.*" |
| 82 | ignore_missing_imports = true |
| 83 | |
| 84 | [[tool.mypy.overrides]] |
| 85 | module = "usb1.*" |
| 86 | ignore_missing_imports = true |
| 87 | |