Skip to content
Merged
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ force-single-line = false
known-first-party = ["lean_spec"]

[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D", "F401", "F403"]
"tests/**" = ["D"]

[tool.ty.environment]
python-version = "3.12"
Expand Down
4 changes: 1 addition & 3 deletions tests/consensus/devnet/fc/test_fork_choice_reorgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
)

from lean_spec.subspecs.containers.slot import Slot
from lean_spec.subspecs.containers.state import Validators
from lean_spec.subspecs.containers.validator import Validator
from lean_spec.types import Bytes52, Uint64
from lean_spec.types import Uint64

pytestmark = pytest.mark.valid_until("Devnet")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
import pytest
from consensus_testing import (
BlockSpec,
SignedAttestationSpec,
VerifySignaturesTestFiller,
generate_pre_state,
)

from lean_spec.subspecs.containers.slot import Slot
from lean_spec.types import Uint64

pytestmark = pytest.mark.valid_until("Devnet")

Expand Down
3 changes: 0 additions & 3 deletions tests/lean_spec/subspecs/containers/test_state_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

from __future__ import annotations

import pytest

from lean_spec.subspecs.containers.attestation import (
AggregatedAttestation,
AggregationBits,
Attestation,
AttestationData,
Expand Down
5 changes: 2 additions & 3 deletions tests/lean_spec/subspecs/ssz/test_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@
from __future__ import annotations

from hashlib import sha256
from typing import Any, Iterable, Tuple, Type
from typing import Iterable, Tuple, Type

import pytest

from lean_spec.subspecs.ssz.hash import HashTreeRoot, hash_tree_root
from lean_spec.types.bitfields import BaseBitlist, BaseBitvector
from lean_spec.types.boolean import Boolean
from lean_spec.types.byte import Byte
from lean_spec.types.byte_arrays import BaseByteList, BaseBytes, Bytes48
from lean_spec.types.byte_arrays import BaseByteList, Bytes48
from lean_spec.types.collections import SSZList, SSZVector
from lean_spec.types.container import Container
from lean_spec.types.ssz_base import SSZType
from lean_spec.types.uint import (
BaseUint,
Uint8,
Expand Down
2 changes: 0 additions & 2 deletions tests/lean_spec/subspecs/sync/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

from __future__ import annotations

from typing import TYPE_CHECKING

import pytest

from lean_spec.subspecs.containers import (
Expand Down
1 change: 0 additions & 1 deletion tests/lean_spec/subspecs/xmss/test_hypercube.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Tests for the hypercube mathematical operations."""

import itertools
import math
from functools import lru_cache
from typing import Any, Callable, List, Tuple
Expand Down
2 changes: 1 addition & 1 deletion tests/lean_spec/types/test_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from lean_spec.types.boolean import Boolean
from lean_spec.types.collections import SSZList, SSZVector
from lean_spec.types.container import Container
from lean_spec.types.exceptions import SSZSerializationError, SSZTypeError, SSZValueError
from lean_spec.types.exceptions import SSZTypeError, SSZValueError
from lean_spec.types.uint import Uint8, Uint16, Uint32, Uint256

# Type alias for errors that can be SSZValueError or wrapped in ValidationError
Expand Down
Loading