From a34c73c3401131219ab15f1714b5e95b29849379 Mon Sep 17 00:00:00 2001 From: mateuszz0000 Date: Wed, 10 Jun 2020 12:08:31 +0200 Subject: [PATCH 1/2] Added travis notifications only on fail --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 2c9f0f0dfd01..c9f601144418 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 . From c73cc68e542c36d9a5d300ff3eb47410eebac5d9 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Wed, 10 Jun 2020 10:10:34 +0000 Subject: [PATCH 2/2] fixup! Format Python code with psf/black push --- greedy_method/test_knapsack.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/greedy_method/test_knapsack.py b/greedy_method/test_knapsack.py index 8f8107bc7009..9d556d2d22f4 100644 --- a/greedy_method/test_knapsack.py +++ b/greedy_method/test_knapsack.py @@ -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__":