Skip to content

Commit ddf70c6

Browse files
committed
[qa] Removed runflake8 & runisort in favour of setup.cfg
1 parent 5f8483e commit ddf70c6

5 files changed

Lines changed: 18 additions & 15 deletions

File tree

.travis.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@ branches:
1111
only:
1212
- master
1313

14-
# command to install requirements
15-
install:
16-
- python setup.py -q develop
14+
before_install:
15+
- pip install -U pip setuptools wheel
1716
- pip install -r requirements-test.txt
17+
- flake8
18+
- isort --check-only --recursive .
1819

19-
before_script:
20-
- ./runflake8
21-
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then ./runisort; fi
20+
install:
21+
- python setup.py -q develop
2222

23-
# command to run tests, e.g. python setup.py test
2423
script:
2524
- nosetests --with-coverage --cover-package=netjsonconfig
2625

docs/source/general/contributing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ Before committing your work check that your changes are not breaking the style c
8383

8484
.. code-block:: shell
8585
86-
./runflake8 && ./runisort
86+
flake8
87+
isort --check-only --recursive .
8788
8889
For more information, please see:
8990

runflake8

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

runisort

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

setup.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
[bdist_wheel]
22
universal=1
3+
4+
[flake8]
5+
max-line-length=110
6+
max-complexity=9
7+
exclude=./docs/,
8+
./build/,
9+
./setup.py
10+
11+
[isort]
12+
skip=setup.py

0 commit comments

Comments
 (0)