Skip to content

Commit b5d3620

Browse files
committed
fix: run pyproject-fmt
1 parent 9e33ebd commit b5d3620

File tree

1 file changed

+148
-146
lines changed

1 file changed

+148
-146
lines changed

pyproject.toml

Lines changed: 148 additions & 146 deletions
Original file line numberDiff line numberDiff line change
@@ -1,135 +1,135 @@
11
[build-system]
2-
requires = ["hatchling", "hatch-vcs"]
32
build-backend = "hatchling.build"
43

4+
requires = [ "hatch-vcs", "hatchling" ]
5+
56
[project]
67
name = "aleph-sdk-python"
7-
dynamic = ["version"]
88
description = "Lightweight Python Client library for the Aleph.im network"
99
readme = "README.md"
1010
license = { file = "LICENSE.txt" }
1111
authors = [
12-
{ name = "Aleph.im Team", email = "hello@aleph.im" },
12+
{ name = "Aleph.im Team", email = "hello@aleph.im" },
1313
]
1414
classifiers = [
15-
"Programming Language :: Python :: 3",
16-
"Development Status :: 4 - Beta",
17-
"Framework :: aiohttp",
18-
"Intended Audience :: Developers",
19-
"License :: OSI Approved :: MIT License",
20-
"Operating System :: POSIX :: Linux",
21-
"Operating System :: MacOS :: MacOS X",
22-
"Topic :: Software Development :: Libraries",
23-
]
15+
"Development Status :: 4 - Beta",
16+
"Framework :: aiohttp",
17+
"Intended Audience :: Developers",
18+
"License :: OSI Approved :: MIT License",
19+
"Operating System :: MacOS :: MacOS X",
20+
"Operating System :: POSIX :: Linux",
21+
"Programming Language :: Python :: 3 :: Only",
22+
"Programming Language :: Python :: 3.8",
23+
"Programming Language :: Python :: 3.9",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Topic :: Software Development :: Libraries",
28+
]
29+
dynamic = [ "version" ]
2430
dependencies = [
25-
"aiohttp>=3.8.3",
26-
"aleph-message>=0.4.9",
27-
"coincurve; python_version<\"3.11\"",
28-
"coincurve>=19.0.0; python_version>=\"3.11\"",
29-
"eth_abi>=4.0.0; python_version>=\"3.11\"",
30-
"jwcrypto==1.5.6",
31-
"python-magic",
32-
"typing_extensions",
33-
"aioresponses>=0.7.6",
34-
"aleph-superfluid>=0.2.1",
35-
"eth_typing==4.3.1",
36-
"web3==6.3.0",
31+
"aiohttp>=3.8.3",
32+
"aioresponses>=0.7.6",
33+
"aleph-message>=0.4.9",
34+
"aleph-superfluid>=0.2.1",
35+
"coincurve; python_version<'3.11'",
36+
"coincurve>=19; python_version>='3.11'",
37+
"eth-abi>=4; python_version>='3.11'",
38+
"eth-typing==4.3.1",
39+
"jwcrypto==1.5.6",
40+
"python-magic",
41+
"typing-extensions",
42+
"web3==6.3",
3743
]
3844

39-
[project.optional-dependencies]
40-
cosmos = [
41-
"cosmospy",
45+
optional-dependencies.all = [
46+
"aleph-sdk-python[cosmos,dns,docs,ledger,mqtt,nuls2,substrate,solana,tezos,encryption]",
4247
]
43-
dns = [
44-
"aiodns",
48+
optional-dependencies.cosmos = [
49+
"cosmospy",
4550
]
46-
docs = [
47-
"sphinxcontrib-plantuml",
51+
optional-dependencies.dns = [
52+
"aiodns",
4853
]
49-
ledger = [
50-
"ledgereth==0.9.1",
54+
optional-dependencies.docs = [
55+
"sphinxcontrib-plantuml",
5156
]
52-
mqtt = [
53-
"aiomqtt<=0.1.3",
54-
"certifi",
55-
"Click",
57+
optional-dependencies.encryption = [
58+
"eciespy; python_version<'3.11'",
59+
"eciespy>=0.3.13; python_version>='3.11'",
5660
]
57-
nuls2 = [
58-
"aleph-nuls2",
61+
optional-dependencies.ledger = [
62+
"ledgereth==0.9.1",
5963
]
60-
substrate = [
61-
"py-sr25519-bindings",
62-
"substrate-interface",
64+
optional-dependencies.mqtt = [
65+
"aiomqtt<=0.1.3",
66+
"certifi",
67+
"click",
6368
]
64-
solana = [
65-
"base58",
66-
"pynacl",
69+
optional-dependencies.nuls2 = [
70+
"aleph-nuls2",
6771
]
68-
tezos = [
69-
"aleph-pytezos==0.1.1",
70-
"pynacl",
72+
optional-dependencies.solana = [
73+
"base58",
74+
"pynacl",
7175
]
72-
encryption = [
73-
"eciespy; python_version<\"3.11\"",
74-
"eciespy>=0.3.13; python_version>=\"3.11\"",
76+
optional-dependencies.substrate = [
77+
"py-sr25519-bindings",
78+
"substrate-interface",
7579
]
76-
all = [
77-
"aleph-sdk-python[cosmos,dns,docs,ledger,mqtt,nuls2,substrate,solana,tezos,encryption]",
80+
optional-dependencies.tezos = [
81+
"aleph-pytezos==0.1.1",
82+
"pynacl",
7883
]
84+
urls.Documentation = "https://aleph.im/"
85+
urls.Homepage = "https://github.com/aleph-im/aleph-sdk-python"
7986

8087
[tool.hatch.metadata]
8188
allow-direct-references = true
8289

83-
[project.urls]
84-
Documentation = "https://aleph.im/"
85-
Homepage = "https://github.com/aleph-im/aleph-sdk-python"
86-
8790
[tool.hatch.version]
8891
source = "vcs"
8992

9093
[tool.hatch.build.targets.wheel]
9194
packages = [
92-
"src/aleph",
93-
"pyproject.toml",
94-
"README.md",
95-
"LICENSE.txt",
95+
"src/aleph",
96+
"pyproject.toml",
97+
"README.md",
98+
"LICENSE.txt",
9699
]
97100

98101
[tool.hatch.build.targets.sdist]
99102
include = [
100-
"src/aleph",
101-
"pyproject.toml",
102-
"README.md",
103-
"LICENSE.txt",
103+
"src/aleph",
104+
"pyproject.toml",
105+
"README.md",
106+
"LICENSE.txt",
104107
]
105108

106-
[tool.isort]
107-
profile = "black"
108-
109109
[[tool.hatch.envs.all.matrix]]
110-
python = ["3.9", "3.10", "3.11"]
110+
python = [ "3.9", "3.10", "3.11" ]
111111

112112
[tool.hatch.envs.testing]
113113
features = [
114-
"cosmos",
115-
"dns",
116-
"ledger",
117-
"nuls2",
118-
"substrate",
119-
"solana",
120-
"tezos",
121-
"encryption",
114+
"cosmos",
115+
"dns",
116+
"ledger",
117+
"nuls2",
118+
"substrate",
119+
"solana",
120+
"tezos",
121+
"encryption",
122122
]
123123
dependencies = [
124-
"pytest==8.0.1",
125-
"pytest-cov==4.1.0",
126-
"pytest-mock==3.12.0",
127-
"pytest-asyncio==0.23.5",
128-
"pytest-aiohttp==1.0.5",
129-
"aioresponses==0.7.6",
130-
"fastapi",
131-
"httpx",
132-
"secp256k1",
124+
"pytest==8.0.1",
125+
"pytest-cov==4.1.0",
126+
"pytest-mock==3.12.0",
127+
"pytest-asyncio==0.23.5",
128+
"pytest-aiohttp==1.0.5",
129+
"aioresponses==0.7.6",
130+
"fastapi",
131+
"httpx",
132+
"secp256k1",
133133
]
134134
[tool.hatch.envs.testing.scripts]
135135
test = "pytest {args:} ./src/ ./tests/ ./examples/"
@@ -146,101 +146,103 @@ cov = [
146146
[tool.hatch.envs.linting]
147147
detached = true
148148
dependencies = [
149-
"black==24.2.0",
150-
"mypy==1.9.0",
151-
"mypy-extensions==1.0.0",
152-
"ruff==0.4.8",
153-
"isort==5.13.2",
154-
"pyproject-fmt==2.2.1",
149+
"black==24.2.0",
150+
"mypy==1.9.0",
151+
"mypy-extensions==1.0.0",
152+
"ruff==0.4.8",
153+
"isort==5.13.2",
154+
"pyproject-fmt==2.2.1",
155155
]
156156
[tool.hatch.envs.linting.scripts]
157157
typing = "mypy --config-file=pyproject.toml {args:} ./src/ ./tests/ ./examples/"
158158
style = [
159-
"ruff check {args:.} ./src/ ./tests/ ./examples/",
160-
"black --check --diff {args:} ./src/ ./tests/ ./examples/",
161-
"isort --check-only --profile black {args:} ./src/ ./tests/ ./examples/",
162-
"pyproject-fmt --check pyproject.toml",
159+
"ruff check {args:.} ./src/ ./tests/ ./examples/",
160+
"black --check --diff {args:} ./src/ ./tests/ ./examples/",
161+
"isort --check-only --profile black {args:} ./src/ ./tests/ ./examples/",
162+
"pyproject-fmt --check pyproject.toml",
163163
]
164164
fmt = [
165-
"black {args:} ./src/ ./tests/ ./examples/",
166-
"ruff check --fix {args:.} ./src/ ./tests/ ./examples/",
167-
"isort --profile black {args:} ./src/ ./tests/ ./examples/",
168-
"pyproject-fmt pyproject.toml",
169-
"style",
165+
"black {args:} ./src/ ./tests/ ./examples/",
166+
"ruff check --fix {args:.} ./src/ ./tests/ ./examples/",
167+
"isort --profile black {args:} ./src/ ./tests/ ./examples/",
168+
"pyproject-fmt pyproject.toml",
169+
"style",
170170
]
171171
all = [
172-
"style",
173-
"typing",
174-
]
175-
176-
[tool.mypy]
177-
python_version = 3.9
178-
mypy_path = "src"
179-
exclude = [
180-
"conftest.py"
172+
"style",
173+
"typing",
181174
]
182-
show_column_numbers = true
183-
check_untyped_defs = true
184175

185-
# Import discovery
186-
# Install types for third-party library stubs (e.g. from typeshed repository)
187-
install_types = true
188-
non_interactive = true
189-
# Suppresses error messages about imports that cannot be resolved (no py.typed file, no stub file, etc).
190-
ignore_missing_imports = true
191-
# Don't follow imports
192-
follow_imports = "silent"
193-
194-
195-
# Miscellaneous strictness flags
196-
# Allows variables to be redefined with an arbitrary type, as long as the redefinition is in the same block and nesting level as the original definition.
197-
allow_redefinition = true
176+
[tool.isort]
177+
profile = "black"
198178

199179
[tool.pytest.ini_options]
200180
minversion = "6.0"
201-
pythonpath = ["src"]
181+
pythonpath = [ "src" ]
202182
addopts = "-vv -m \"not ledger_hardware\""
203-
norecursedirs = ["*.egg", "dist", "build", ".tox", ".venv", "*/site-packages/*"]
204-
testpaths = ["tests/unit"]
205-
markers = {ledger_hardware = "marks tests as requiring ledger hardware"}
183+
norecursedirs = [ "*.egg", "dist", "build", ".tox", ".venv", "*/site-packages/*" ]
184+
testpaths = [ "tests/unit" ]
185+
markers = { ledger_hardware = "marks tests as requiring ledger hardware" }
206186

207187
[tool.coverage.run]
208188
branch = true
209189
parallel = true
210190
source = [
211-
"src/",
191+
"src/",
212192
]
213193
omit = [
214-
"*/site-packages/*",
194+
"*/site-packages/*",
215195
]
216196

217197
[tool.coverage.paths]
218198
source = [
219-
"src/",
199+
"src/",
220200
]
221201
omit = [
222-
"*/site-packages/*",
202+
"*/site-packages/*",
223203
]
224204

225205
[tool.coverage.report]
226206
show_missing = true
227207
skip_empty = true
228208
exclude_lines = [
229-
# Have to re-enable the standard pragma
230-
"pragma: no cover",
209+
# Have to re-enable the standard pragma
210+
"pragma: no cover",
231211

232-
# Don't complain about missing debug-only code:
233-
"def __repr__",
234-
"if self\\.debug",
212+
# Don't complain about missing debug-only code:
213+
"def __repr__",
214+
"if self\\.debug",
235215

236-
# Don't complain if tests don't hit defensive assertion code:
237-
"raise AssertionError",
238-
"raise NotImplementedError",
216+
# Don't complain if tests don't hit defensive assertion code:
217+
"raise AssertionError",
218+
"raise NotImplementedError",
239219

240-
# Don't complain if non-runnable code isn't run:
241-
"if 0:",
242-
"if __name__ == .__main__.:",
220+
# Don't complain if non-runnable code isn't run:
221+
"if 0:",
222+
"if __name__ == .__main__.:",
243223

244-
# Don't complain about ineffective code:
245-
"pass",
224+
# Don't complain about ineffective code:
225+
"pass",
246226
]
227+
228+
[tool.mypy]
229+
python_version = 3.9
230+
mypy_path = "src"
231+
exclude = [
232+
"conftest.py",
233+
]
234+
show_column_numbers = true
235+
check_untyped_defs = true
236+
237+
# Import discovery
238+
# Install types for third-party library stubs (e.g. from typeshed repository)
239+
install_types = true
240+
non_interactive = true
241+
# Suppresses error messages about imports that cannot be resolved (no py.typed file, no stub file, etc).
242+
ignore_missing_imports = true
243+
# Don't follow imports
244+
follow_imports = "silent"
245+
246+
# Miscellaneous strictness flags
247+
# Allows variables to be redefined with an arbitrary type, as long as the redefinition is in the same block and nesting level as the original definition.
248+
allow_redefinition = true

0 commit comments

Comments
 (0)