Skip to content

use GitHub Actions instead of Travis to run linters #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Linter
on:
pull_request:
branches: [ master ]
push:

jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Linters
run: pip3 install flake8 isort black
- name: flake8
run: flake8 *.py
- name: isort
run: isort -c -df *.py
- name: black
run: black --check --diff *.py
7 changes: 0 additions & 7 deletions .travis/script

This file was deleted.

6 changes: 2 additions & 4 deletions run.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3

import argparse
import sys
import argparse
from typing import List, Tuple

import testcases
Expand Down Expand Up @@ -33,9 +33,7 @@ def get_args():
default=False,
help="turn on debug logs",
)
parser.add_argument(
"-s", "--server", help="server implementations (comma-separated)"
)
parser.add_argument("-s", "--server", help="server implementations (comma-separated)")
parser.add_argument(
"-c", "--client", help="client implementations (comma-separated)"
)
Expand Down