Skip to content

Commit 9793ade

Browse files
committed
Add linting and typechecking actions
1 parent 9f5756b commit 9793ade

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Linter & Type Checker
2+
on: [push, pull_request]
3+
jobs:
4+
ruff:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
9+
- name: Lint with Ruff
10+
uses: astral-sh/ruff-action@v3
11+
with:
12+
version: 0.9.6
13+
14+
- name: Format with Ruff
15+
uses: astral-sh/ruff-action@v3
16+
with:
17+
version: 0.9.6
18+
args: "format --check --diff"
19+
20+
pyright:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Setup UV
26+
uses: astral-sh/setup-uv@v5
27+
with:
28+
enable-cache: true
29+
30+
- name: Synchronize dependencies
31+
run: uv sync
32+
33+
- name: Check with Pyright
34+
uses: jakebailey/pyright-action@v2
35+
with:
36+
pylance-version: latest-release
37+
project: pyproject.toml

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Developers Foundry Wallet User Service System
44

55
 
66
[![Version: v1.2.0](https://img.shields.io/badge/api-v1.2.0-blue?style=flat&logo=money)](CHANGELOG.md)
7+
[![Checked with pyright](https://microsoft.github.io/pyright/img/pyright_badge.svg)](https://microsoft.github.io/pyright/)
8+
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
79

810
---
911

0 commit comments

Comments
 (0)