Skip to content
Open
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
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ jobs:
with:
python-version: '3.12'

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.11.0'
cache: 'npm'

- name: Install Node dependencies
run: npm ci

- name: Install uv
run: pip install uv

Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/playwright-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20.11.0'
cache: 'npm'

- name: Install dependencies
run: npm ci
Expand All @@ -44,9 +45,10 @@ jobs:
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20.11.0'
cache: 'npm'

- name: Install dependencies
run: npm ci
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install -e .
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
pylint --rcfile=.pylintrc $(git ls-files 'src/*.py')
6 changes: 3 additions & 3 deletions .github/workflows/release-rofl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "22.x"
cache: yarn
cache-dependency-path: scripts/propose_transactions
cache: npm
cache-dependency-path: scripts/propose_transactions/package-lock.json

- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
working-directory: scripts/propose_transactions

- name: Propose transactions to safe.oasis.io
Expand Down
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,14 @@ data/

scratch.py
tmp.py

# Next.js
.next/
out/
node_modules/
.env*.local
.env.production
.vercel

# Shaders
public/shaders/moteSimulation.glsl
25 changes: 25 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[MASTER]
ignore=tests,venv,node_modules,.next

[MESSAGES CONTROL]
disable=
C0114, # missing-module-docstring
C0115, # missing-class-docstring
C0116, # missing-function-docstring
R0903, # too-few-public-methods
W0511, # todo
R0801 # duplicate-code (handled globally with min-similarity-lines, but we can disable if still noisy)

[REPORTS]
output-format=colorized
reports=yes
score=yes

[FORMAT]
max-line-length=88

[SIMILARITIES]
min-similarity-lines=25
ignore-comments=yes
ignore-docstrings=yes
ignore-imports=yes
Loading
Loading