Skip to content
Permalink
Browse files

pep257 → pydocstyle

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 5, 2016
1 parent 59e29fe commit 533867c98b75556403c31dded0eb90d146c2ca5e
Showing with 5 additions and 5 deletions.
  1. +2 −2 .travis.yml
  2. +3 −3 dodo.py
@@ -23,7 +23,7 @@ install:
- "if [[ $NMODE == 'nikola' ]]; then scripts/getwheelhouse.sh $(scripts/getpyver.py short); fi"
- "if [[ $NMODE == 'nikola' ]]; then pip install -r requirements-tests.txt; if [[ \"$?\" == '1' ]]; then cat /home/travis/.pip/pip.log; false; fi; fi"
- "if [[ $NMODE == 'nikola' ]]; then pip install .; fi"
- "if [[ $NMODE == 'flake8' ]]; then pip install flake8 pep257; fi"
- "if [[ $NMODE == 'flake8' ]]; then pip install flake8 pydocstyle; fi"
# We run tests and nikola (to see if the command is executable) OR flake8.
# We run `nikola` and `nikola help` because things may break due to human
# errors in argument parsing (cf. 96e78dd)
@@ -35,7 +35,7 @@ script:
- "if [[ $NMODE == 'nikola' ]]; then nikola help; fi"
- "if [[ $NMODE == 'nikola' ]]; then scripts/baseline.sh check; fi"
- "if [[ $NMODE == 'flake8' ]]; then flake8 nikola/; fi"
- "if [[ $NMODE == 'flake8' ]]; then pep257 --count --match-dir='(?!^\\\\.)(?!data).*' nikola/; fi"
- "if [[ $NMODE == 'flake8' ]]; then pydocstyle --count --match-dir='(?!^\\\\.)(?!data).*' nikola/; fi"
after_success:
- "if [[ $NMODE == 'nikola' ]]; then coveralls; fi"
notifications:
@@ -25,11 +25,11 @@ def task_flake8():
}


def task_pep257():
"""pep257 -- static check for docstring style"""
def task_pydocstyle():
"""pydocstyle -- static check for docstring style"""
yield {
'name': os.path.join(os.getcwd(), 'nikola'),
'actions': ["pep257 --count --match-dir='(?!^\.)(?!data).*' nikola/"],
'actions': ["pydocstyle --count --match-dir='(?!^\.)(?!data).*' nikola/"],
}


0 comments on commit 533867c

Please sign in to comment.
You can’t perform that action at this time.