-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (80 loc) · 2.57 KB
/
pyproject.toml
File metadata and controls
88 lines (80 loc) · 2.57 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
86
87
88
[project]
name = "onekey_client"
version = "2.5.0"
description = "ONEKEY API client"
authors = [{ name = "ONEKEY", email = "support@onekey.com" }]
requires-python = ">=3.10"
readme = "README.md"
license = "MIT"
keywords = ["iot", "security", "firmware", "analysis"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Security",
]
dependencies = [
"httpx>=0.28.1",
"pydantic>=2.12.5",
"Authlib>=1.4.1,<2.0.0",
"click>=8.1.3,<9",
"junit-xml>=1.9,<2",
]
[project.urls]
Homepage = "https://www.onekey.com/"
GitHub = "https://github.com/onekey-sec/python-client"
"Bug Tracker" = "https://github.com/onekey-sec/python-client/issues"
[project.scripts]
onekey = "onekey_client.cli.cli:main"
[dependency-groups]
dev = ["ruff==0.14.10"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe
"COM818", # flake8-commas; trailing-comma-on-bare-tuple
"D", # pydocstyle
"E", # pycodestyle (errors)
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # ruff's own lints
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLF", # flake8-self
"T10", # flake8-debugger
"T20", # flake8-print
"TC", # flake8-type-checking
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle (warnings)
]
ignore = [
"D1", # undocumented-*: We are not documenting every public symbol
"D203", # one-blank-line-before-class: D211 (no-blank-line-before-class) is used instead
"D213", # multi-line-summary-second-line: D212 (multi-line-summary-first-line) is used instead
"E501", # line-too-long: Let ruff format handle line length violations
"N818", # error-suffix-on-exception-name: Exception names can be meaningful without smurfs
"PLR09", # too-many-{arguments,branches,...}: We do not want to impose hard limits
"S101", # assert: Enable usage of asserts
]
[tool.ruff.lint.per-file-ignores]
"examples/*" = [
"T201", # print
]