Skip to content

Commit 75d054d

Browse files
committed
Fix workflow and test
1 parent 026dd1e commit 75d054d

File tree

12 files changed

+9
-17
lines changed

12 files changed

+9
-17
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
poetry install
31-
- name: Ensure pure cbor2 is installed
32-
run: |
33-
make ensure-pure-cbor2
3431
- name: Run unit tests
3532
run: |
3633
poetry run pytest --doctest-modules --ignore=examples --cov=pycardano --cov-config=.coveragerc --cov-report=xml

.github/workflows/publish.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
poetry install
27-
- name: Ensure pure cbor2 is installed
28-
run: |
29-
make ensure-pure-cbor2
3027
- name: Lint with flake8
3128
run: |
3229
poetry run flake8 pycardano

integration-test/run_tests.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ set -o pipefail
66
ROOT=$(pwd)
77

88
poetry install -C ..
9-
make ensure-pure-cbor2 -f ../Makefile
109
#poetry run pip install ogmios
1110

1211
##########

pycardano/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
if os.getenv("CBOR_C_EXETENSION", "0") == "1":
66
import cbor2
77
else:
8-
import cbor2pure as cbor2
8+
import cbor2pure as cbor2 # type: ignore[no-redef]
99

1010
from .address import *
1111
from .backend import *

pycardano/address.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
from typing import Optional, Type, Union
1515

1616
import base58
17-
from pycardano import cbor2
1817
from cbor2 import CBORTag
1918
from typing_extensions import override
2019

20+
from pycardano import cbor2
2121
from pycardano.crypto.bech32 import decode, encode
2222
from pycardano.exception import (
2323
DecodingException,

pycardano/backend/blockfrost.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
from fractions import Fraction
66
from typing import Dict, List, Optional, Union
77

8-
from pycardano import cbor2
98
from blockfrost import ApiError, ApiUrls, BlockFrostApi
109
from blockfrost.utils import Namespace
1110

11+
from pycardano import cbor2
1212
from pycardano.address import Address
1313
from pycardano.backend.base import (
1414
ALONZO_COINS_PER_UTXO_WORD,

pycardano/backend/cardano_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
from pathlib import Path
1313
from typing import Dict, List, Optional, Union
1414

15-
from pycardano import cbor2
1615
import docker
1716
from cachetools import Cache, LRUCache, TTLCache, func
1817
from docker.errors import APIError
1918

19+
from pycardano import cbor2
2020
from pycardano.address import Address
2121
from pycardano.backend.base import (
2222
ALONZO_COINS_PER_UTXO_WORD,

pycardano/plutus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
from hashlib import sha256
1111
from typing import Any, List, Optional, Type, Union
1212

13-
from pycardano import cbor2
1413
from cbor2 import CBORTag
1514
from nacl.encoding import RawEncoder
1615
from nacl.hash import blake2b
1716
from typeguard import typechecked
1817

18+
from pycardano import cbor2
1919
from pycardano.exception import DeserializeException, InvalidArgumentException
2020
from pycardano.hash import DATUM_HASH_SIZE, SCRIPT_HASH_SIZE, DatumHash, ScriptHash
2121
from pycardano.nativescript import NativeScript

pycardano/serialization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
)
3333

3434
from pycardano import cbor2
35-
3635
from pycardano.logging import logger
3736

3837
# Remove the semantic decoder for 258 (CBOR tag for set) as we care about the order of elements

pycardano/transaction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
from dataclasses import dataclass, field
77
from typing import Any, Callable, List, Optional, Type, Union
88

9-
from pycardano import cbor2
109
from cbor2 import CBORTag
1110
from nacl.encoding import RawEncoder
1211
from nacl.hash import blake2b
1312
from pprintpp import pformat
1413

14+
from pycardano import cbor2
1515
from pycardano.address import Address
1616
from pycardano.certificate import Certificate
1717
from pycardano.exception import InvalidDataException
@@ -105,7 +105,7 @@ def __add__(self, other: Asset) -> Asset:
105105

106106
def __iadd__(self, other: Asset) -> Asset:
107107
new_item = self + other
108-
self.data = new_item.data
108+
self.data = new_item.data # type: ignore[has-type]
109109
return self.normalize()
110110

111111
def __sub__(self, other: Asset) -> Asset:

0 commit comments

Comments
 (0)