Skip to content

Commit

Permalink
Fix autopep8 config
Browse files Browse the repository at this point in the history
  • Loading branch information
unnonouno committed Feb 22, 2018
1 parent a4f321a commit fb7e93a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .pep8

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -57,7 +57,7 @@ install:

script:
- flake8
- autopep8 -r . --global-config .pep8 --diff | tee check_autopep8
- autopep8 -r . --diff | tee check_autopep8
- test ! -s check_autopep8
- cd tests
- CHAINER_TEST_GPU_LIMIT=0 pytest -m "not slow and not cudnn and not ideep" chainer_tests
Expand Down
4 changes: 2 additions & 2 deletions docs/source/contribution.rst
Expand Up @@ -215,12 +215,12 @@ We use `PEP 8 <https://www.python.org/dev/peps/pep-0008/>`_ and a part of `OpenS
To check your code, use ``autopep8`` and ``flake8`` command installed by ``hacking`` package::

$ pip install autopep8 hacking
$ autopep8 --global-config .pep8 path/to/your/code.py
$ autopep8 path/to/your/code.py
$ flake8 path/to/your/code.py

The ``autopep8`` supports automatically correct Python code to conform to the PEP 8 style guide::

$ autopep8 --in-place --global-config .pep8 path/to/your/code.py
$ autopep8 --in-place path/to/your/code.py

The ``flake8`` command lets you know the part of your code not obeying our style guidelines.
Before sending a pull request, be sure to check that your code passes the ``flake8`` checking.
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
@@ -1,6 +1,9 @@
[flake8]
exclude = .eggs,*.egg,build,caffe_pb2.py,caffe_pb3.py,docs,.git

[pep8]
exclude = .eggs,*.egg,build,caffe_pb2.py,caffe_pb3.py,docs,.git

[tool:pytest]
filterwarnings= ignore::FutureWarning
error::DeprecationWarning
Expand Down

0 comments on commit fb7e93a

Please sign in to comment.