Skip to content

Commit 0d4a093

Browse files
committed
add linting
1 parent 14aa9b8 commit 0d4a093

7 files changed

Lines changed: 2127 additions & 148 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ ACCOUNT_ID=replaceme
1919
PRIVATE_KEY=replacemereplacemereplacemereplacemereplacemereplacemereplaceme
2020
CHAIN_ID=1729
2121
REYA_WS_URL="wss://ws.reya.xyz/"
22-
WALLET_ADDRESS=replaceme
22+
WALLET_ADDRESS=replaceme

.github/workflows/pylint.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Lint
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
concurrency:
9+
# Concurrency group that uses the workflow name and PR number if available
10+
# or commit SHA as a fallback. If a new build is triggered under that
11+
# concurrency group while a previous build is running it will be canceled.
12+
# Repeated pushes to a PR will cancel all previous builds, while multiple
13+
# merges to master will not cancel.
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
pre-commit:
19+
runs-on: ubuntu-24.04
20+
strategy:
21+
matrix:
22+
python-version: ['3.10']
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: Set up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
31+
- name: Install poetry
32+
run: make poetry-download
33+
34+
- name: Set up cache
35+
uses: actions/cache@v4
36+
with:
37+
path: |
38+
.venv
39+
~/.cache/pre-commit
40+
key: venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}-${{ hashFiles('.pre-commit-config.yaml') }}
41+
42+
- name: Install dependencies
43+
run: |
44+
poetry config virtualenvs.in-project true
45+
make install
46+
47+
- name: Lint
48+
run: |
49+
make pre-commit

0 commit comments

Comments
 (0)