-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4755c42
commit b4a007b
Showing
4 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ install: "pip install -r requirements.txt" | |
script: | ||
- py.test | ||
- pep8 *.py | ||
- doit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import os | ||
import glob | ||
|
||
from pyflakes.scripts.pyflakes import checkPath | ||
|
||
|
||
DOIT_CONFIG = { | ||
# output from actions should be sent to the terminal/console | ||
'verbosity': 2, | ||
# does not stop execution on first task failure | ||
'continue': True, | ||
# doit itself should not produce any output (use only actions output) | ||
'reporter': 'zero', | ||
# use multi-processing / parallel execution | ||
'num_process': 2, | ||
} | ||
|
||
|
||
def check_path(filename): | ||
"""execute pyflakes checker""" | ||
return not bool(checkPath(filename)) | ||
|
||
def task_pyflakes(): | ||
"""generate task for each file to be checked""" | ||
for filename in glob.glob('*.py'): | ||
path = os.path.abspath(filename) | ||
yield { | ||
'name': path, # name required to identify tasks | ||
'file_dep': [path], # file dependency | ||
'actions': [(check_path, (filename,)) ], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
pytest>=2.8.3 | ||
pep8>=1.6.2 | ||
astroid==1.3.8 | ||
cloudpickle==0.1.1 | ||
configparser==3.3.0.post2 | ||
doit==0.29.0 | ||
logilab-common==1.1.0 | ||
pep8==1.6.2 | ||
py==1.4.30 | ||
pyflakes==1.0.0 | ||
pyinotify==0.9.6 | ||
pylint==1.4.4 | ||
pytest==2.8.3 | ||
six==1.10.0 | ||
wheel==0.24.0 |