Skip to content

Commit

Permalink
Flake8 travis and pre-commit setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lukelbd committed Nov 29, 2019
1 parent 78da51a commit e14f680
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ repos:
rev: v2.2.3
hooks:
- id: flake8
args: ["--max-line-length=88", "--exclude=__init__.py"]
args: ["--ignore=W503"]
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ install:
- python setup.py install --user

script:
- flake8 proplot --ignore=W503,F401,F403
- flake8 proplot --ignore=W503
- pushd docs
- make html
- popd
16 changes: 8 additions & 8 deletions proplot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
import pkg_resources as _pkg
from .utils import _benchmark
with _benchmark('total time'):
from .utils import *
from .utils import * # noqa
with _benchmark('styletools'):
from .styletools import *
from .styletools import * # noqa
with _benchmark('rctools'):
from .rctools import *
from .rctools import * # noqa
with _benchmark('axistools'):
from .axistools import *
from .axistools import * # noqa
with _benchmark('wrappers'):
from .wrappers import *
from .wrappers import * # noqa
with _benchmark('projs'):
from .projs import *
from .projs import * # noqa
with _benchmark('axes'):
from .axes import *
from .axes import * # noqa
with _benchmark('subplots'):
from .subplots import *
from .subplots import * # noqa


def _warning_proplot(message, category, filename, lineno, line=None):
Expand Down

0 comments on commit e14f680

Please sign in to comment.