Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reformat code using black, sort imports using isort
Add a script to make Travis enforce formatting and linting.
  • Loading branch information
jlaine committed Feb 14, 2020
1 parent 04e25d7 commit 45ca7e8
Show file tree
Hide file tree
Showing 9 changed files with 1,162 additions and 954 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
@@ -0,0 +1,6 @@
dist: xenial
install: pip install -r requirements.txt black flake8 isort
language: python
python: "3.8"
script: .travis/script
sudo: true
7 changes: 7 additions & 0 deletions .travis/script
@@ -0,0 +1,7 @@
#!/bin/sh

set -e

flake8 *.py
isort -c -df *.py
black --check --diff *.py
20 changes: 10 additions & 10 deletions implementations.py
@@ -1,12 +1,12 @@
# add your QUIC implementation here
IMPLEMENTATIONS = { # name => [ docker image, role ]; role: 0 == 'client', 1 == 'server', 2 == both
"quicgo": { "url": "martenseemann/quic-go-interop:latest", "role": 2 },
"quicly": { "url": "janaiyengar/quicly:interop", "role": 2 },
"ngtcp2": { "url": "ngtcp2/ngtcp2-interop:latest", "role": 2 },
"quant": { "url": "ntap/quant:interop", "role": 2 },
"mvfst": { "url": "lnicco/mvfst-qns:latest", "role": 2 },
"quiche": { "url": "cloudflare/quiche-qns:latest", "role": 2 },
"kwik": { "url": "peterdoornbosch/kwik_n_flupke-interop", "role": 0 },
"picoquic": { "url": "privateoctopus/picoquic:latest", "role":2 },
"aioquic": { "url": "aiortc/aioquic-qns:latest", "role": 2 },
IMPLEMENTATIONS = { # name => [ docker image, role ]; role: 0 == 'client', 1 == 'server', 2 == both
"quicgo": {"url": "martenseemann/quic-go-interop:latest", "role": 2},
"quicly": {"url": "janaiyengar/quicly:interop", "role": 2},
"ngtcp2": {"url": "ngtcp2/ngtcp2-interop:latest", "role": 2},
"quant": {"url": "ntap/quant:interop", "role": 2},
"mvfst": {"url": "lnicco/mvfst-qns:latest", "role": 2},
"quiche": {"url": "cloudflare/quiche-qns:latest", "role": 2},
"kwik": {"url": "peterdoornbosch/kwik_n_flupke-interop", "role": 0},
"picoquic": {"url": "privateoctopus/picoquic:latest", "role": 2},
"aioquic": {"url": "aiortc/aioquic-qns:latest", "role": 2},
}

0 comments on commit 45ca7e8

Please sign in to comment.