Skip to content

Commit 14cf74c

Browse files
committed
linting
1 parent a27146d commit 14cf74c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ deploy:
2323
install:
2424
- pip install -r requirements.txt
2525
- pip install pylint circuitpython-build-tools Sphinx sphinx-rtd-theme
26+
- pip install --force-reinstall pylint==2.0.1
2627
script:
2728
- pylint neopixel.py
2829
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/*.py)

examples/neopixel_simpletest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ def wheel(pos):
3030
return format_tuple(0, 0, 0)
3131
if pos < 85:
3232
return format_tuple(int(pos * 3), int(255 - (pos*3)), 0)
33-
elif pos < 170:
33+
if pos < 170:
3434
pos -= 85
3535
return format_tuple(int(255 - pos*3), 0, int(pos*3))
36-
#else:
3736
pos -= 170
3837
return format_tuple(0, int(pos*3), int(255 - pos*3))
3938

0 commit comments

Comments
 (0)