| 1 |
[build-system] |
| 2 |
requires = ['setuptools>=77.0', 'Cython', "poetry-core>=2.0.0"] |
| 3 |
build-backend = "poetry.core.masonry.api" |
| 4 |
|
| 5 |
[project] |
| 6 |
name = "bluetooth-data-tools" |
| 7 |
version = "1.29.24" |
| 8 |
license = "Apache-2.0" |
| 9 |
description = "Tools for converting bluetooth data and packets" |
| 10 |
authors = [{ name = "J. Nick Koston", email = "[email protected]" }] |
| 11 |
readme = "README.md" |
| 12 |
requires-python = ">=3.10" |
| 13 |
|
| 14 |
[project.urls] |
| 15 |
"Repository" = "https://github.com/bdraco/bluetooth-data-tools" |
| 16 |
"Documentation" = "https://bluetooth-data-tools.readthedocs.io" |
| 17 |
"Bug Tracker" = "https://github.com/bdraco/bluetooth-data-tools/issues" |
| 18 |
"Changelog" = "https://github.com/bdraco/bluetooth-data-tools/blob/main/CHANGELOG.md" |
| 19 |
|
| 20 |
[tool.poetry] |
| 21 |
classifiers = [ |
| 22 |
"Development Status :: 5 - Production/Stable", |
| 23 |
"Intended Audience :: Developers", |
| 24 |
"Natural Language :: English", |
| 25 |
"Operating System :: OS Independent", |
| 26 |
"Topic :: Software Development :: Libraries", |
| 27 |
] |
| 28 |
packages = [ |
| 29 |
{ include = "bluetooth_data_tools", from = "src" }, |
| 30 |
] |
| 31 |
|
| 32 |
[tool.poetry.build] |
| 33 |
generate-setup-file = true |
| 34 |
script = "build_ext.py" |
| 35 |
|
| 36 |
[tool.poetry.dependencies] |
| 37 |
python = "^3.10" |
| 38 |
|
| 39 |
# Documentation Dependencies |
| 40 |
Sphinx = {version = ">=5,<9", optional = true} |
| 41 |
sphinx-rtd-theme = {version = ">=1,<4", optional = true} |
| 42 |
myst-parser = {version = ">=0.18,<4.1", optional = true} |
| 43 |
cryptography = ">=47.0.0" |
| 44 |
|
| 45 |
[tool.poetry.extras] |
| 46 |
docs = [ |
| 47 |
"myst-parser", |
| 48 |
"sphinx", |
| 49 |
"sphinx-rtd-theme", |
| 50 |
] |
| 51 |
|
| 52 |
[tool.poetry.group.benchmark.dependencies] |
| 53 |
pytest-benchmark = ">=4,<6" |
| 54 |
|
| 55 |
[tool.poetry.group.dev.dependencies] |
| 56 |
pytest-codspeed = "^5.0.3" |
| 57 |
pytest = "^9.0" |
| 58 |
pytest-cov = "^7.1" |
| 59 |
|
| 60 |
[tool.poetry.group.docs] |
| 61 |
optional = true |
| 62 |
|
| 63 |
[tool.poetry.group.docs.dependencies] |
| 64 |
myst-parser = ">=0.16" |
| 65 |
sphinx = ">=4.0" |
| 66 |
furo = ">=2023.5.20" |
| 67 |
sphinx-autobuild = ">=2021.3.14" |
| 68 |
|
| 69 |
|
| 70 |
[tool.semantic_release] |
| 71 |
version_toml = ["pyproject.toml:project.version"] |
| 72 |
version_variables = [ |
| 73 |
"src/bluetooth_data_tools/__init__.py:__version__", |
| 74 |
"docs/conf.py:release", |
| 75 |
] |
| 76 |
build_command = "pip install poetry && poetry build" |
| 77 |
branch = "main" |
| 78 |
|
| 79 |
[tool.pytest.ini_options] |
| 80 |
pythonpath = ["src"] |
| 81 |
testpaths = ["tests"] |
| 82 |
|
| 83 |
[tool.coverage.run] |
| 84 |
branch = true |
| 85 |
|
| 86 |
[tool.coverage.report] |
| 87 |
exclude_lines = [ |
| 88 |
"pragma: no cover", |
| 89 |
"@overload", |
| 90 |
"if TYPE_CHECKING", |
| 91 |
"raise NotImplementedError", |
| 92 |
] |
| 93 |
|
| 94 |
[tool.mypy] |
| 95 |
check_untyped_defs = true |
| 96 |
disallow_any_generics = true |
| 97 |
disallow_incomplete_defs = true |
| 98 |
disallow_untyped_defs = true |
| 99 |
mypy_path = "src/" |
| 100 |
no_implicit_optional = true |
| 101 |
show_error_codes = true |
| 102 |
warn_unreachable = true |
| 103 |
warn_unused_ignores = true |
| 104 |
exclude = [ |
| 105 |
'docs/.*', |
| 106 |
'setup.py', |
| 107 |
] |
| 108 |
|
| 109 |
[[tool.mypy.overrides]] |
| 110 |
module = "tests.*" |
| 111 |
allow_untyped_defs = true |
| 112 |
|
| 113 |
[[tool.mypy.overrides]] |
| 114 |
module = "bench.*" |
| 115 |
allow_untyped_defs = true |
| 116 |
|
| 117 |
[[tool.mypy.overrides]] |
| 118 |
module = "docs.*" |
| 119 |
ignore_errors = true |
| 120 |
|
| 121 |
[tool.ruff] |
| 122 |
exclude = ["docs"] |
| 123 |
line-length = 88 |
| 124 |
target-version = "py310" |
| 125 |
|
| 126 |
[tool.ruff.lint] |
| 127 |
# `select`, not `extend-select`: extending builds on whatever ruff ships as its |
| 128 |
# default selection, so a version bump can enable rules -- with autofixes -- that |
| 129 |
# this project never opted into. Adopt new rules by editing this list. |
| 130 |
select = [ |
| 131 |
"B", |
| 132 |
"E", |
| 133 |
"F", |
| 134 |
"I", # isort |
| 135 |
"PLC0415", # import-outside-toplevel |
| 136 |
"S", # security (bandit) |
| 137 |
"W", |
| 138 |
"UP", # pyupgrade |
| 139 |
] |
| 140 |
extend-ignore = [ |
| 141 |
"E501", # formatter will take care of line lengths |
| 142 |
] |
| 143 |
|
| 144 |
[tool.ruff.lint.per-file-ignores] |
| 145 |
"tests/**/*" = [ |
| 146 |
"S101", # assert ok in tests |
| 147 |
"S311", # fuzzer seeding does not need a crypto RNG |
| 148 |
] |
| 149 |
|
| 150 |
[tool.ruff.lint.isort] |
| 151 |
known-first-party = ["bluetooth_data_tools", "tests"] |