Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (113 loc) · 2.81 KB
/
Copy pathpyproject.toml
File metadata and controls
130 lines (113 loc) · 2.81 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "safe-cli"
dynamic = ["version"]
description = "Command Line Interface for Safe"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [{ name = "Uxío Fuentefría", email = "uxio@safe.global" }]
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"art>=6",
"colorama>=0.4",
"hexbytes>1",
"prompt_toolkit>=3",
"pygments>=2",
"requests>=2",
"safe-eth-py>=7.20.0",
"tabulate>=0.8",
"typer>=0.14.0",
]
[dependency-groups]
dev = [
"coverage",
"hatch",
"ipdb",
"ipython",
"mypy",
"pre-commit",
"pytest",
"pytest-sugar",
]
[project.optional-dependencies]
ledger = ["ledgereth==0.10.0"]
trezor = ["trezor==0.13.10"]
[project.scripts]
safe-cli = "safe_cli.main:main"
safe-creator = "safe_cli.safe_creator:main"
[project.urls]
Download = "https://github.com/gnosis/safe-cli/releases"
Homepage = "https://github.com/gnosis/safe-cli"
[tool.hatch.version]
path = "src/safe_cli/__init__.py"
[tool.uv]
# Reject packages published less than 7 days ago to avoid supply-chain attacks
exclude-newer = "7 days"
compile-bytecode = true
exclude-newer-package = { safe-eth-py = false }
[tool.hatch.build.targets.sdist]
include = ["/src/safe_cli"]
[tool.hatch.build.targets.wheel]
packages = ["/src/safe_cli"]
[tool.coverage.run]
source_pkgs = ["safe_cli", "tests"]
branch = true
parallel = true
omit = [
"*__init__.py*",
"*tests*",
"*/migrations/*"
]
[tool.coverage.paths]
safe_cli = ["src/safe_cli", "*/safe-cli/src/safe_cli"]
tests = ["tests", "*/safe-cli/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if settings.DEBUG",
"raise NotImplementedError",
"pass",
]
[tool.ruff]
line-length = 88
target-version = "py311"
exclude = [
".tox", ".git", "*/static/CACHE/*",
"docs", "node_modules", ".venv"
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = ["E501", "B008"]
[tool.ruff.lint.isort]
known-first-party = ["safe_cli"]
known-third-party = ["py_eth_sig_utils", "safe", "fastapi", "pydantic"]
combine-as-imports = true
force-wrap-aliases = true
[tool.mypy]
python_version = "3.13"
check_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true