Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/generate_vectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run test vector generation

defaults:
run:
shell: zsh {0}
shell: zsh -e {0}

on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Nightly mainnet tests

defaults:
run:
shell: zsh {0}
shell: zsh -e {0}

on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run tests

defaults:
run:
shell: zsh {0}
shell: zsh -e {0}

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion pysetup/md_to_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _process_code_block(self, code_block: FencedCode) -> None:
source = _get_source_from_code_block(code_block)
module = ast.parse(source)

# AST element for each top level defintion of the module
# AST element for each top level definition of the module
for element in module.body:
element_source = ast.unparse(element)
clean_source = "\n".join(line.rstrip() for line in element_source.splitlines())
Expand Down
4 changes: 1 addition & 3 deletions specs/_features/eip7805/fork-choice.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,14 @@ def get_forkchoice_store(anchor_state: BeaconState, anchor_block: BeaconBlock) -
#### New `validate_inclusion_lists`

```python
def validate_inclusion_lists(store: Store,
def validate_inclusion_lists(_store: Store,
inclusion_list_transactions: Sequence[Transaction],
execution_payload: ExecutionPayload) -> None:
"""
The ``execution_payload`` satisfies ``inclusion_list_transactions`` validity conditions either
when all transactions are present in payload or when any missing transactions are found to be
invalid when appended to the end of the payload unless the block is full.
"""
# pylint: disable=unused-argument

# Verify inclusion list transactions are present in the execution payload
contains_all_txs = all(tx in execution_payload.transactions for tx in inclusion_list_transactions)
if contains_all_txs:
Expand Down
12 changes: 4 additions & 8 deletions specs/altair/light-client/sync-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,32 +176,28 @@ class LightClientStore(object):
### `finalized_root_gindex_at_slot`

```python
def finalized_root_gindex_at_slot(slot: Slot) -> GeneralizedIndex:
# pylint: disable=unused-argument
def finalized_root_gindex_at_slot(_slot: Slot) -> GeneralizedIndex:
return FINALIZED_ROOT_GINDEX
```

### `current_sync_committee_gindex_at_slot`

```python
def current_sync_committee_gindex_at_slot(slot: Slot) -> GeneralizedIndex:
# pylint: disable=unused-argument
def current_sync_committee_gindex_at_slot(_slot: Slot) -> GeneralizedIndex:
return CURRENT_SYNC_COMMITTEE_GINDEX
```

### `next_sync_committee_gindex_at_slot`

```python
def next_sync_committee_gindex_at_slot(slot: Slot) -> GeneralizedIndex:
# pylint: disable=unused-argument
def next_sync_committee_gindex_at_slot(_slot: Slot) -> GeneralizedIndex:
return NEXT_SYNC_COMMITTEE_GINDEX
```

### `is_valid_light_client_header`

```python
def is_valid_light_client_header(header: LightClientHeader) -> bool:
# pylint: disable=unused-argument
def is_valid_light_client_header(_header: LightClientHeader) -> bool:
return True
```

Expand Down
5 changes: 2 additions & 3 deletions specs/deneb/polynomial-commitments.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@ This function performs a multi-scalar multiplication between `points` and
`integers`. `points` can either be in G1 or G2.

```python
def multi_exp(points: Sequence[TPoint],
integers: Sequence[uint64]) -> Sequence[TPoint]:
# pylint: disable=unused-argument
def multi_exp(_points: Sequence[TPoint],
_integers: Sequence[uint64]) -> Sequence[TPoint]:
...
```

Expand Down
2 changes: 1 addition & 1 deletion specs/phase0/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ def get_matching_head_attestations(state: BeaconState, epoch: Epoch) -> Sequence
```python
def get_unslashed_attesting_indices(state: BeaconState,
attestations: Sequence[PendingAttestation]) -> Set[ValidatorIndex]:
output = set() # type: Set[ValidatorIndex]
output: Set[ValidatorIndex] = set()
for a in attestations:
output = output.union(get_attesting_indices(state, a))
return set(filter(lambda index: not state.validators[index].slashed, output))
Expand Down