Skip to content

Commit

Permalink
setup, ci: update Black (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje authored Sep 27, 2023
1 parent 5fdd2f0 commit e6c7db7
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate-pr-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- uses: psf/black@stable
with:
options: '--check --target-version py310'
version: '22.8.0'
version: '23.9.1'
src: "neo3/ examples/ tests/"
type-checking:
needs: setup
Expand Down
1 change: 0 additions & 1 deletion neo3/api/noderpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,6 @@ def _parse_stack_item(item: _Item) -> StackItem:
elif type_ == StackItemType.MAP:
map_ = []
for stack_item in item["value"]:

key = ExecutionResult._parse_stack_item(stack_item["key"])
key_type = StackItemType(stack_item["key"]["type"])
if key_type == StackItemType.BYTE_STRING:
Expand Down
1 change: 0 additions & 1 deletion neo3/wallet/scrypt_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class ScryptParameters(interfaces.IJson):

json_schema = {
"type": "object",
"properties": {
Expand Down
52 changes: 26 additions & 26 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,47 @@ name = "neo-mamba"
description = "Python SDK for the NEO 3 blockchain"
readme = "README.rst"
requires-python = ">= 3.10.0,<= 3.12"
license = {file = "LICENSE.md"}
license = { file = "LICENSE.md" }
keywords = ["NEO", "NEO3", "blockchain", "SDK"]
authors = [
{name = "Erik van den Brink", email = "[email protected]"},
{ name = "Erik van den Brink", email = "[email protected]" },
]
maintainers = [
{name = "Erik van den Brink", email = "[email protected]"},
{ name = "Erik van den Brink", email = "[email protected]" },
]
dynamic = ["version"]
dependencies = [
"aiodns==3.0.0",
"aiohttp==3.8.5",
"base58==2.1.1",
"bitarray==2.8.1",
"Events==0.5",
"jsonschema>=4.19.0",
"lz4==4.3.2",
"neo3crypto==0.4",
"netaddr>=0.8.0",
"orjson>=3.9.4",
"pycryptodome==3.18.0",
"pybiginteger==1.3.0",
"pybiginteger-stubs==1.3.0",
"aiohttp==3.8.5",
"base58==2.1.1",
"bitarray==2.8.1",
"Events==0.5",
"jsonschema>=4.19.0",
"lz4==4.3.2",
"neo3crypto==0.4",
"netaddr>=0.8.0",
"orjson>=3.9.4",
"pycryptodome==3.18.0",
"pybiginteger==1.3.0",
"pybiginteger-stubs==1.3.0",
]

[project.optional-dependencies]
dev = [
"aioresponses==0.7.4",
"black==22.8.0",
"build==0.10.0",
"bump-my-version==0.10.0",
"coverage>=7.3.1",
"docutils==0.17.1",
"mypy==1.4.1",
"mypy-extensions==1.0.0",
"black==23.9.1",
"build==0.10.0",
"bump-my-version==0.10.0",
"coverage>=7.3.1",
"docutils==0.17.1",
"mypy==1.4.1",
"mypy-extensions==1.0.0",
]
docs = [
"mkdocs==1.4.1",
"mkdocs-material==8.5.7",
"mkdocs-material-extensions==1.1",
"mkapi-fix-coz==0.1.0",
"mkdocs-material==8.5.7",
"mkdocs-material-extensions==1.1",
"mkapi-fix-coz==0.1.0",
]

[project.urls]
Expand All @@ -59,7 +59,7 @@ build-backend = "setuptools.build_meta"
target-version = ['py310']

[tool.setuptools.dynamic]
version = {attr = "neo3.__version__"}
version = { attr = "neo3.__version__" }

[tool.bumpversion]
current_version = "2.0.2"
Expand Down
1 change: 0 additions & 1 deletion tests/network/convenience/test_syncmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ def test_on_block_received(self):
self.assertEqual(1, len(self.syncmgr.block_cache))

async def test_persist_blocks(self):

fake_block1 = mock.AsyncMock()
fake_block1.index = 1
fake_block2 = mock.AsyncMock()
Expand Down
1 change: 0 additions & 1 deletion tests/network/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,6 @@ def _mock_data(self):
data = b"".join(list(_mock_data(self)))
with self.assertLogs(network_logger, "DEBUG") as log_context:
try:

loop.call_soon(w.send, data)
n, _ = await node.NeoNode.connect_to(
socket=r, _test_data=self.peername_data
Expand Down

0 comments on commit e6c7db7

Please sign in to comment.