Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for auto pep8 check #206

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 20 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
language: php
php:
- 5.5
- 5.4
- hhvm
script: phpunit Test.php
language: python
python:
- 3.6
notifications:
email: false

before_install:
- sudo apt-get update
- sudo apt-get -y install python-pip pyflakes
- sudo pip install --upgrade pip
- pip install --upgrade pip
- pip install pep8
- pip install autopep8

script:
# Run pep8 on all .py files in all subfolders
# (I ignore "E402: module level import not at top of file"
# because of use case sys.path.append('..'); import <module>)
- find . -name \*.py -exec pep8 --ignore=E402 {} +
- find . -name \*.py -exec pyflakes {} +
10 changes: 0 additions & 10 deletions Test.php

This file was deleted.

4 changes: 4 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import numpy as np

# hoge
np.random.seed(42)