Skip to content

Commit 187f304

Browse files
use GitHub Actions to run linters
1 parent 2142880 commit 187f304

File tree

3 files changed

+26
-11
lines changed

3 files changed

+26
-11
lines changed

.github/workflows/lint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Linter
2+
on:
3+
pull_request:
4+
branches: [ master ]
5+
push:
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-python@v1
15+
with:
16+
python-version: 3.8
17+
- name: Install Linters
18+
run: pip3 install flake8 isort black
19+
- name: flake8
20+
run: flake8 *.py
21+
- name: isort
22+
run: isort -c -df *.py
23+
- name: black
24+
run: black --check --diff *.py

.travis/script

Lines changed: 0 additions & 7 deletions
This file was deleted.

run.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22

3-
import argparse
43
import sys
4+
import argparse
55
from typing import List, Tuple
66

77
import testcases
@@ -33,9 +33,7 @@ def get_args():
3333
default=False,
3434
help="turn on debug logs",
3535
)
36-
parser.add_argument(
37-
"-s", "--server", help="server implementations (comma-separated)"
38-
)
36+
parser.add_argument("-s", "--server", help="server implementations (comma-separated)")
3937
parser.add_argument(
4038
"-c", "--client", help="client implementations (comma-separated)"
4139
)

0 commit comments

Comments
 (0)