forked from qualcomm-linux/qcom-ptool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (63 loc) · 1.9 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (63 loc) · 1.9 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
[build-system]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"
[project]
name = "qcom-ptool"
version = "1.0.0"
description = "Qualcomm partition tool - GPT partition table generator and mass storage programmer"
readme = "README.md"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
requires-python = ">=3.8"
dependencies = [
"PyYAML>=5.1",
"jsonschema>=3.2",
]
[project.optional-dependencies]
test = ["pytest"]
[project.scripts]
qcom-ptool = "qcom_ptool.cli:main"
[tool.setuptools.packages.find]
include = ["qcom_ptool*"]
[tool.setuptools.package-data]
"qcom_ptool.schema" = ["*.json"]
"qcom_ptool.data" = ["*.in", "*.list"]
[tool.ruff]
target-version = "py38"
line-length = 120
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort (replaces standalone isort)
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line too long - existing code exceeds limits extensively
"UP031", # %-format strings - pervasive in existing code, convert incrementally
"UP034", # extraneous parentheses - minor style issue
"SIM115", # use context manager for open() - would require restructuring legacy code
]
[tool.ruff.lint.isort]
known-first-party = ["qcom_ptool"]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = false
disallow_untyped_defs = false
check_untyped_defs = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["qcom_ptool.msp", "qcom_ptool.ptool"]
# Legacy scripts - enable gradually
check_untyped_defs = false
[tool.pytest.ini_options]
# Allow running `pytest` from the repo root without requiring an editable
# install of the package; tests under tests/unit/ import qcom_ptool directly
# from the source tree.
pythonpath = ["."]
testpaths = ["tests/unit"]