Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

Commit

Permalink
tests: pep257 to pydocstyle
Browse files Browse the repository at this point in the history
Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
  • Loading branch information
tiborsimko committed Jun 28, 2016
1 parent 49c4e3b commit daaad88
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ cache:

install:
# Install test dependencies
- "travis_retry pip install coveralls pep257 Sphinx twine wheel"
- "travis_retry pip install coveralls pydocstyle Sphinx twine wheel"
- "travis_retry pip install pytest pytest-pep8 pytest-cov pytest-cache"
- "travis_retry pip install -r requirements.${REQUIREMENTS}.txt"
- "travis_retry pip install -e ."

script:
- pep257 flask_appfactory
- pydocstyle flask_appfactory
- "sphinx-build -qnNW docs docs/_build/html"
- python setup.py test
- "sphinx-build -qnNW -b doctest docs docs/_build/doctest"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN pip install Flask \
coveralls \
ipython \
itsdangerous \
pep257 \
pydocstyle \
pytest \
pytest-cache \
pytest-cov \
Expand Down
3 changes: 1 addition & 2 deletions flask_appfactory/cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Flask-AppFactory
# Copyright (C) 2015 CERN.
# Copyright (C) 2015, 2016 CERN.
#
# Flask-AppFactory is free software; you can redistribute it and/or
# modify it under the terms of the Revised BSD License; see LICENSE
Expand All @@ -19,7 +19,6 @@


class CLIDiscoveryRegistry(ModuleAutoDiscoveryRegistry):

"""Discover CLI modules and register them on a command collection.
Searches for a variable ``commands`` in a module ``cli`` in each package.
Expand Down
3 changes: 1 addition & 2 deletions flask_appfactory/ext/jinja2.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Flask-AppFactory
# Copyright (C) 2015 CERN.
# Copyright (C) 2015, 2016 CERN.
#
# Flask-AppFactory is free software; you can redistribute it and/or
# modify it under the terms of the Revised BSD License; see LICENSE
Expand Down Expand Up @@ -43,7 +43,6 @@ def blueprint_is_module(blueprint):


class OrderAwareDispatchingJinjaLoader(DispatchingJinjaLoader):

"""Order aware dispatching Jinja loader.
Customization of default Flask Jinja2 template loader. By default the
Expand Down
2 changes: 1 addition & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# modify it under the terms of the Revised BSD License; see LICENSE
# file for more details.

pep257 flask_appfactory && \
pydocstyle flask_appfactory && \
sphinx-build -qnNW docs docs/_build/html && \
python setup.py test && \
sphinx-build -qnNW -b doctest docs docs/_build/doctest

0 comments on commit daaad88

Please sign in to comment.