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
7 changes: 3 additions & 4 deletions .github/workflows/check-btcli-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ concurrency:
on:
pull_request:
branches:
- main
- staging
- master
types: [opened, synchronize, reopened, labeled, unlabeled]
Expand Down Expand Up @@ -53,7 +52,7 @@ jobs:
run-cli-tests: ${{ steps.get-labels.outputs.run-cli-tests }}
steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Get labels from PR
id: get-labels
Expand Down Expand Up @@ -146,7 +145,7 @@ jobs:
name: "e2e tests: ${{ matrix.test-file }}"
steps:
- name: Check-out repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install system dependencies
run: |
Expand Down Expand Up @@ -209,7 +208,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check-out repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install system dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-scalecodec-conflict.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v5
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/check-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ concurrency:
on:
pull_request:
branches:
- main
- staging
- master
types: [opened, synchronize, reopened, labeled, unlabeled]
Expand Down Expand Up @@ -61,7 +60,7 @@ jobs:
run-sdk-tests: ${{ steps.check-manual.outputs.run-sdk-tests || steps.get-labels-pr.outputs.run-sdk-tests }}
steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Skip label check for manual runs
id: check-manual
Expand Down Expand Up @@ -172,7 +171,7 @@ jobs:
name: "e2e tests: ${{ matrix.test-file }}"
steps:
- name: Check-out repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install system dependencies
run: |
Expand Down Expand Up @@ -241,7 +240,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check-out repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install system dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
test-files: ${{ steps.get-tests.outputs.test-files }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Find test files
id: get-tests
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
python-version: ["3.10", "3.14"] # Only run on oldest and latest supported versions
steps:
- name: Check-out repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Lint
permissions:
contents: read

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:

jobs:
lint:
if: '!github.event.pull_request.draft'
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Cache venv
id: cache
uses: actions/cache@v5
with:
path: venv
key: v1-lint-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}

- name: Install deps
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: |
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
python -m pip install uv
python -m uv sync --extra dev --active

- name: ruff check
run: |
source venv/bin/activate
ruff check async_substrate_interface/

- name: ruff format
run: |
source venv/bin/activate
ruff format --check async_substrate_interface/

- name: mypy
run: |
source venv/bin/activate
mypy async_substrate_interface/
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
name: Build Python distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-and-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -28,7 +28,7 @@ jobs:

- name: Cache venv
id: cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: venv
key: v2-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
Expand Down
12 changes: 6 additions & 6 deletions async_substrate_interface/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def _check_conflicts():
_check_conflicts()

__all__ = [
AsyncQueryMapResult,
AsyncSubstrateInterface,
AsyncExtrinsicReceipt,
QueryMapResult,
SubstrateInterface,
ExtrinsicReceipt,
"AsyncQueryMapResult",
"AsyncSubstrateInterface",
"AsyncExtrinsicReceipt",
"QueryMapResult",
"SubstrateInterface",
"ExtrinsicReceipt",
]
Loading
Loading