-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
74 lines (68 loc) · 1.16 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
[project]
name = "pyfu-usb"
version = "2.0.2"
requires-python = ">=3.8"
authors = [{name = "Block, Inc."}]
description = "Python USB firmware update library."
keywords = ["dfu-util", "pydfu"]
readme = "README.md"
readme-content-type = "text/markdown"
package-data = {pyfu_usb = ["py.typed"]}
license = {text = "MIT"}
dependencies = [
"pyusb>=1.0.2",
"rich>=12.2",
]
[project.scripts]
pyfu-usb = "pyfu_usb.__main__:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
managed = true
dev-dependencies = [
"coverage",
"mypy",
"pre-commit",
"pytest",
"ruff",
]
[tool.ruff]
line-length = 80
indent-width = 4
exclude = [
".coverage",
".eggs",
".git",
".mypy_cache",
".pytest_cache",
".ruff_cache",
".venv",
".vscode",
"build",
"dist",
"htmlcov",
"venv",
]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# pyflakes
"F",
# flake8-bugbear
"B",
# isort
"I",
# pylint
"PL"
]
ignore = [
# pylint: magic-value-comparison
"PLR2004",
# pylint: too-many-arguments
"PLR0913"
]
[tool.mypy]
strict = true
ignore_missing_imports = true