Skip to content

Commit

Permalink
tweak travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Neal committed May 1, 2019
1 parent 391a1b5 commit 8d621e7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
17 changes: 6 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
group: travis_latest
language: python
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
python: "3.7"
cache: pip
matrix:
include:
- python: 3.7
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)

install:
- pip install --upgrade pip
- pip install -r requirements.txt
- pip install flake8
before_script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
- flake8 manimlib/ --count --select=E9,F63,F72,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- flake8 manimlib/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
- true # add other tests here
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down
2 changes: 1 addition & 1 deletion manimlib/for_3b1b_videos/common_scenes.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def scroll_through_patrons(self):
self.wait(wait_time)

def modify_patron_name(self, name):
if name is "RedAgent14":
if name == "RedAgent14":
return "Brian Shepetofsky"
return name

Expand Down
4 changes: 2 additions & 2 deletions manimlib/once_useful_constructs/fractals.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,9 @@ def get_anchor_points(self):
curr = np.zeros(3)
result = [curr]
for letter in self.get_command_string():
if letter is "+":
if letter == "+":
step = rotate(step, self.angle)
elif letter is "-":
elif letter == "-":
step = rotate(step, -self.angle)
else:
curr = curr + step
Expand Down
2 changes: 1 addition & 1 deletion manimlib/scene/vector_space_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def get_vector_label(self, vector, label,
angle = vector.get_angle()
if not rotate:
label.rotate(-angle, about_point=ORIGIN)
if direction is "left":
if direction == "left":
label.shift(-label.get_bottom() + 0.1 * UP)
else:
label.shift(-label.get_top() + 0.1 * DOWN)
Expand Down

0 comments on commit 8d621e7

Please sign in to comment.