-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathpyproject.toml
More file actions
153 lines (137 loc) · 2.79 KB
/
Copy pathpyproject.toml
File metadata and controls
153 lines (137 loc) · 2.79 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[project]
name = "safe-cli"
dynamic = [
"version",
]
description = "Command Line Interface for Safe"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10" # Cannot use 3.8 & 3.9 due to dependency issues
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.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"art>=6",
"colorama>=0.4",
"hexbytes>1",
"prompt_toolkit>=3",
"pygments>=2",
"requests>=2",
"safe-eth-py>=7",
"tabulate>=0.8",
"typer>=0.14.0",
]
[build-system]
requires = [
"hatchling",
]
build-backend = "hatchling.build"
[tool.uv]
managed = true
package = true
dev-dependencies = [
"coverage==7.8.0",
"flake8==7.2.0",
"pytest==8.3.5",
"pytest-sugar==1.0.0",
"hatch",
"ipdb",
"ipython",
"isort",
"pre-commit",
"ledgereth==0.10.0",
"trezor==0.13.10",
]
[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.hatch.envs.types]
extra-dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/safe_cli tests}"
[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.isort]
profile = "black"
default_section = "THIRDPARTY"
known_first_party = "safe_cli"
known_safe_foundation = [
"py_eth_sig_utils",
"gnosis",
]
known_django = "django"
sections = [
"FUTURE",
"STDLIB",
"DJANGO",
"THIRDPARTY",
"SAFE_FOUNDATION",
"FIRSTPARTY",
"LOCALFOLDER",
]
[tool.mypy]
python_version = "3.12"
check_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true