-
Notifications
You must be signed in to change notification settings - Fork 218
Expand file tree
/
Copy pathpyproject.toml
More file actions
163 lines (147 loc) · 3.49 KB
/
pyproject.toml
File metadata and controls
163 lines (147 loc) · 3.49 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
154
155
156
157
158
159
160
161
162
163
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "safe-eth-py"
dynamic = ["version"]
description = "Safe Ecosystem Foundation utilities for Ethereum projects"
readme = "README.rst"
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "Uxío", email = "uxio@safe.global" },
]
keywords = [
"cowswap",
"django",
"ethereum",
"gnosis",
"safe",
"web3",
"safe_eth",
]
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2.0",
"Framework :: Django :: 3.0",
"Framework :: Django :: 4.0",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
dependencies = [
"packaging",
"py-evm>=0.7.0a1",
"requests>=2",
"safe-pysha3>=1.0.0",
"web3>=7",
]
[project.optional-dependencies]
django = [
"django-filter>=2",
"django>=2",
"djangorestframework>=2",
"psycopg[binary,pool]>=3",
]
[project.urls]
Documentation = "https://safe-eth-py.readthedocs.io/en/latest/"
Homepage = "https://github.com/safe-global/safe-eth-py"
Source = "https://github.com/safe-global/safe-eth-py"
Tracker = "https://github.com/safe-global/safe-eth-py/issues"
[tool.hatch.version]
path = "safe_eth/__init__.py"
[tool.hatch.envs.types]
extra-dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:safe_eth}"
[tool.coverage.run]
include = ["safe_eth/*"]
# source_pkgs = ["safe_eth", "tests"]
branch = true
omit = [
"*__init__.py*",
"*tests*",
"*/migrations/*",
]
#[tool.coverage.paths]
#tests = ["tests", "*/safe_eth/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if settings.DEBUG",
"raise NotImplementedError",
"pass",
]
[tool.hatch.build.targets.sdist]
include = [
"/safe_eth",
]
[tool.hatch.build.targets.wheel]
packages = [
"/safe_eth",
]
[tool.isort]
profile = "black"
default_section = "THIRDPARTY"
known_first_party = "safe_eth"
known_safe_foundation = "py_eth_sig_utils"
known_django = "django"
sections = [
"FUTURE",
"STDLIB",
"DJANGO",
"THIRDPARTY",
"SAFE_FOUNDATION",
"FIRSTPARTY",
"LOCALFOLDER",
]
[dependency-groups]
dev = [
"coverage==7.13.5",
"coveralls",
"faker==40.1.2",
"flake8",
"gitpython",
"hatch",
"ipdb",
"ipython",
"isort",
"mypy==1.19.1",
"pre-commit",
"pytest==9.0.3",
"pytest-benchmark==5.2.3",
"pytest-django==4.12.0",
"pytest-env==1.6.0",
"pytest-rerunfailures==16.1",
"pytest-sugar==1.1.1",
"sphinx",
"sphinx-rtd-theme",
"types-requests==2.32.4.20260107",
]
[tool.uv]
# Reject packages published less than 7 days ago to avoid supply-chain attacks
exclude-newer = "7 days"
compile-bytecode = 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
[tool.pytest_env]
DJANGO_SETTINGS_MODULE = "config.settings.test"