-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (74 loc) · 1.97 KB
/
pyproject.toml
File metadata and controls
85 lines (74 loc) · 1.97 KB
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
[build-system]
requires = ['flit_core >=3.2,<4']
build-backend = 'flit_core.buildapi'
[project]
name = 'hid-parser'
description = 'Typed pure Python library to parse HID report descriptors'
version = '0.1.0'
readme = 'README.md'
requires-python = '>= 3.9'
license = {file = 'LICENSE'}
authors = [{ name = 'Filipe Laíns', email = 'lains@riseup.net' }]
classifiers = [
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'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 :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
]
urls.homepage = 'https://github.com/usb-tools/python-hid-parser'
urls.issues = 'https://github.com/usb-tools/python-hid-parser/issues'
urls.source = 'https://github.com/usb-tools/python-hid-parser'
dependencies = [
'typing_extensions >= 4.4.0; python_version < "3.13"'
]
[dependency-groups]
test = [
'pytest',
'pytest-cov',
'hypothesis'
]
dev = [
'mypy',
'nox',
]
[tool.uv]
default-groups = ['test', 'dev']
[tool.ruff]
line-length = 120
target-version = 'py39'
[tool.ruff.format]
quote-style = 'single'
[tool.ruff.lint]
extend-select = [
'B', # flake8-bugbear
'C4', # flake8-comprehensions
'C9', # mccabe
'I', # isort
'PGH', # pygrep-hooks
'RUF', # ruff
'UP', # pyupgrade
'W', # pycodestyle
'YTT', # flake8-2020
'TRY', # tryceratops
'EM', # flake8-errmsg
]
[tool.ruff.lint.extend-per-file-ignores]
'tests/**.py' = ['RUF012']
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
lines-between-types = 1
lines-after-imports = 2
[tool.mypy]
python_version = '3.9'
strict = true
show_error_codes = true
[tool.coverage.html]
show_contexts = true