Skip to content

Commit 8edd88f

Browse files
committed
add ci workflows to GitHub
1 parent 24024d4 commit 8edd88f

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on: [ 'push', 'pull_request' ]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
name: lint
9+
strategy:
10+
matrix:
11+
python-version: [ '3.10', '3.11' ]
12+
fail-fast: false
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
21+
- name: Install Dependencies
22+
run: pip install ruff==0.0.262 pre-commit==3.2.2
23+
24+
- name: ruff check
25+
uses: chartboost/ruff-action@v1
26+
with:
27+
args: [ '--config', '.ruff.toml' ]
28+
29+
- name: black formatter
30+
uses: psf/black@stable
31+
with:
32+
options: '--skip-string-normalization --line-length 120'
33+
34+
- name: pre-commit
35+
uses: pre-commit/action@v3.0.0
36+
with:
37+
extra_args: --all-files --verbose

.pre-commit-config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ repos:
2323
- '--skip-string-normalization'
2424
- '--line-length'
2525
- '120'
26-
- '--target-version'
27-
- 'py310'

0 commit comments

Comments
 (0)