Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

tweak travis configuration

Devin Neal8d621e7ccae6
diff --git a/.travis.yml b/.travis.yml
index b556e45af..9cb9f9632 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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
diff --git a/manimlib/for_3b1b_videos/common_scenes.py b/manimlib/for_3b1b_videos/common_scenes.py
index 659fbe6d0..d63f11429 100644
--- a/manimlib/for_3b1b_videos/common_scenes.py
+++ b/manimlib/for_3b1b_videos/common_scenes.py
@@ -257,7 +257,7 @@ class PatreonEndScreen(PatreonThanks, PiCreatureScene):
self.wait(wait_time)
def modify_patron_name(self, name):
- if name is "RedAgent14":
+ if name == "RedAgent14":
return "Brian Shepetofsky"
return name
diff --git a/manimlib/once_useful_constructs/fractals.py b/manimlib/once_useful_constructs/fractals.py
index cd865e9bc..3983d3a00 100644
--- a/manimlib/once_useful_constructs/fractals.py
+++ b/manimlib/once_useful_constructs/fractals.py
@@ -370,9 +370,9 @@ class LindenmayerCurve(FractalCurve):
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
diff --git a/manimlib/scene/vector_space_scene.py b/manimlib/scene/vector_space_scene.py
index cd1c8dd4f..77a0228f3 100644
--- a/manimlib/scene/vector_space_scene.py
+++ b/manimlib/scene/vector_space_scene.py
@@ -141,7 +141,7 @@ class VectorScene(Scene):
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)