Skip to content

Commit 09bab2e

Browse files
committed
Added Travis CI
1 parent 3baeb39 commit 09bab2e

7 files changed

+30
-8
lines changed

.travis.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1+
sudo: false
12
language: python
3+
python:
4+
- "2.7"
5+
- "3.3"
6+
27
install:
3-
- pip install tox
8+
# Install our dependencies
9+
- pip install -r requirements-dev.txt
10+
11+
# Install `flake8-quotes`
12+
- python setup.py develop
13+
414
script:
5-
- tox
15+
# Run our tests
16+
- ./test.sh

README.rst

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Flake8 Extension to lint for quotes.
22
===========================================
33

4+
.. image:: https://travis-ci.org/zheller/flake8-quotes.svg?branch=master
5+
:target: https://travis-ci.org/zheller/flake8-quotes
6+
:alt: Build Status
7+
48
Usage
59
-----
610

flake8_quotes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, tree, filename='(none)', builtins=None):
3232
def add_options(cls, parser):
3333
parser.add_option('--quotes', default='\'', action='store',
3434
help='Quote to expect in all files (default: \')')
35-
parser.config_options.append("quotes")
35+
parser.config_options.append('quotes')
3636

3737
@classmethod
3838
def parse_options(cls, options):

requirements-dev.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
flake8<2.6.0,>=2.5.0
2+
tox<2.4.0,>=2.3.1

setup.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length = 120

test.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
# Exit on first error and echo commands
3+
set -e
4+
set -x
5+
6+
# Run our linter and tests
7+
flake8 *.py test/*.py
8+
python setup.py test $*

tox.ini

-5
This file was deleted.

0 commit comments

Comments
 (0)