Skip to content

Commit

Permalink
Fix the make lint command.
Browse files Browse the repository at this point in the history
The flake8 directive was specified in tox.ini and setup.cfg while only
one is used. Also remove the lint.sh script and move the code to the
Makefile.
  • Loading branch information
mvantellingen committed Jul 31, 2016
1 parent 9999048 commit e290b42
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ coverage:
py.test --cov=oscar --cov-report=term-missing py.test --cov=oscar --cov-report=term-missing


lint: lint:
./lint.sh flake8 src/oscar/
isort -q --recursive --diff src/


testmigrations: testmigrations:
pip install -r requirements_migrations.txt pip install -r requirements_migrations.txt
Expand Down
7 changes: 0 additions & 7 deletions lint.sh

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ whitenoise==3.2
Pillow==3.3.0 Pillow==3.3.0


# Misc # Misc
flake8==2.5.1 flake8==3.0.3
flake8-debugger==1.4.0 flake8-debugger==1.4.0
flake8-blind-except==0.1.0 flake8-blind-except==0.1.0
pyprof2calltree==1.3.2 pyprof2calltree==1.3.2
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ python_files=test_*.py *tests.py
testpaths = tests/ testpaths = tests/


[flake8] [flake8]
exclude = migrations
ignore = F405,W503
max-complexity = 10
max-line-length=99 max-line-length=99


[isort] [isort]
Expand Down
5 changes: 0 additions & 5 deletions tox.ini
Original file line number Original file line Diff line number Diff line change
@@ -1,8 +1,3 @@
[flake8]
exclude = migrations
max-complexity = 10
ignore = W503

[tox] [tox]
envlist = {py27,py33,py34,py35}-{1.8,1.9} envlist = {py27,py33,py34,py35}-{1.8,1.9}


Expand Down

0 comments on commit e290b42

Please sign in to comment.