-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
160 lines (141 loc) · 3.69 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# Project: bluepy3
# Hatchling https://packaging.python.org/en/latest/key_projects/#hatch
# https://hatch.pypa.io/latest/config/metadata/
# PEP 621 https://peps.python.org/pep-0621/
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "bluepy3"
version = "2.20.1" # latest/current distribution version
# version = "2.19.1" # latest test version
description = "A Python3 module for interfacing with Bluetooth LE devices on Linux."
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
# license-files = { paths = ["LICENSE"] }
authors = [
{ name="Mausy5043" },
]
keywords = [
"Bluetooth",
"Bluetooth Smart",
"BLE",
"Bluetooth Low Energy",
"Raspberry Pi",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: C",
"Topic :: Home Automation"
]
dependencies = [
"tomli==2.2.1",
]
[project.urls]
"Homepage" = "https://github.com/Mausy5043/bluepy3"
"Bug Tracker" = "https://github.com/Mausy5043/bluepy3/issues"
[project.scripts]
blescan = 'bluepy3.blescan:main'
helpermaker = 'bluepy3.helpermaker:main'
[tool.hatch.build]
include = [
"bluepy3/*.py",
"bluepy3/bluepy3-helper", # built during install
"bluepy3/bluepy3-helper.c",
"bluepy3/config/config.*.h",
"bluepy3/Makefile",
"bluepy3/py.typed",
"bluepy3/uuids.json",
"bluepy3/version.h",
]
[tool.hatch.build.targets.wheel.force-include]
"./pyproject.toml" = "bluepy3/pyproject.toml"
[tool.autopep8]
python_version = "3.9"
max_line_length = 98
in-place = true
recursive = true
aggressive = 2
ignore = [
# whitespace before ':': is enforced by black
"E203"
]
[tool.bandit]
skips = [
# assert used
"B101",
# possible shell injection via Paramiko call
# "B601",
# subprocess without shell equals true
"B603",
]
[tool.black]
line-length = 98
required-version = ">=3.9"
target-version = ["py39", "py310", "py311", "py312", "py313"]
[tool.isort]
profile = "black"
py_version = "39"
[tool.flake8]
max_line_length = 98
ignore = [
# function too complex: is what we do ;-)
"C901",
# whitespace before ':': is enforced by black
"E203",
# line too long: is checked by pylint
"E501",
# do not use bare 'except': don't care
"E722",
# line break before binary: is against policy.
"W503",
]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
strict_equality = true
check_untyped_defs = true
disallow_subclassing_any = true
disallow_untyped_decorators = true
disallow_untyped_calls = true
no_implicit_reexport = true
extra_checks = true
[tool.pydocstyle]
inherit = false
convention = "google"
match = ".*\\.py"
add-ignore = "D"
[tool.ruff]
target-version = "py39"
fix = true
indent-width = 4
line-length = 98
output-format = "concise"
include = ["pyproject.toml", "bluepy3/**/*.py"]
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
quote-style = "preserve"
[tool.ruff.lint]
select = ["B", "E", "F", "I", "SIM", "UP", "W"]
ignore = [
# line too long: formatter is leading
"E501"
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# pylint is controlled by .pylintrc