FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add numpy example by robertodr · Pull Request #1 · PCMSolver/danger-python-example · GitHub

Repository navigation

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .lock  (1) .py  (1) .txt  (1) .yapf  (1) .yml  (1) All 5 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 4 additions & 0 deletions .style.yapf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[style]
COLUMN_LIMIT = 119
INDENT_WIDTH = 4
USE_TABS = False
7 changes: 4 additions & 3 deletions .travis.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ cache:
- pip
- bundler
install:
- bundle install
- pip install -r requirements.txt
- bundle install
script:
- bundle exec danger
- python hello_world.py
- bundle exec danger
- python hello_world.py
2 changes: 1 addition & 1 deletion Gemfile.lock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/robertodr/danger-code_style_validation.git
revision: de63c3daee20a8611a6216ac35e77327eba5cd50
revision: 6978bba01500f30294aab14db9c36298979f7d5b
branch: yapf
specs:
danger-code_style_validation (0.2.0)
Expand Down
7 changes: 7 additions & 0 deletions hello_world.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
def vector(dim):
import numpy as np


return np.random.rand(dim)

def message():
return 'Hello, Danger world!'

def main():
print(message())
print(vector(10))

if __name__ == '__main__':
main()
2 changes: 2 additions & 0 deletions requirements.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yapf
futures

Back | FazBrowse Home | New Git URL