Skip to content
Merged
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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ before_install: pip install --upgrade pip setuptools six
install: pip install black flake8
notifications:
webhooks: https://www.travisbuddy.com/
on_success: never
before_script:
- black --check . || true
- flake8 --ignore=E203,W503 --max-complexity=25 --max-line-length=120 --statistics --count .
Expand Down
4 changes: 3 additions & 1 deletion greedy_method/test_knapsack.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def test_unequal_list_length(self):
# profit = [10, 20, 30, 40, 50]
# weight = [2, 4, 6, 8, 10, 12]
# max_weight = 100
self.assertRaisesRegex(IndexError, "The length of profit and weight must be same.")
self.assertRaisesRegex(
IndexError, "The length of profit and weight must be same."
)


if __name__ == "__main__":
Expand Down