Skip to content

Commit

Permalink
pep257 → pydocstyle
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 5, 2016
1 parent 59e29fe commit 533867c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -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)
Expand All @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions dodo.py
Expand Up @@ -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/"],
}


Expand Down

0 comments on commit 533867c

Please sign in to comment.