tweak travis configuration

This commit is contained in:
Devin Neal 2019-04-30 21:52:34 -07:00
parent 391a1b579d
commit 8d621e7cca
4 changed files with 10 additions and 15 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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)