Skip to content

Commit 6f95dcf

Browse files
committed
Merge pull request #13 from jmchilton/lint
Setup very basic linting and CI through Travis.
2 parents d382c03 + 33e6dc6 commit 6f95dcf

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.tox/

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: python
2+
python: 2.7
3+
os:
4+
- linux
5+
env:
6+
- TOX_ENV=py27-lint
7+
8+
install:
9+
- pip install tox
10+
11+
script: tox -e $TOX_ENV
12+
13+
notifications:
14+
email: false

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
ignore=E124,E128,E129,E201,E202,E225,E226,E231,E265,E271,E302,E303,F401,E402,E501,W503,E731,F811,F821,F841

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[tox]
2+
envlist = py27-lint
3+
skipsdist = True
4+
5+
[testenv:py27-lint]
6+
commands = flake8 schema_salad
7+
whitelist_externals = flake8
8+
deps = flake8

0 commit comments

Comments
 (0)