Skip to content

Commit 125c90d

Browse files
committed
Changes requested by pylint.
1 parent 3c6a060 commit 125c90d

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ repos:
1717
- id: check-yaml
1818
- id: end-of-file-fixer
1919
- id: trailing-whitespace
20-
#- repo: https://github.com/pycqa/pylint
21-
# rev: pylint-2.7.1
22-
# hooks:
23-
# - id: pylint
24-
# name: pylint (library code)
25-
# types: [python]
26-
# exclude: "^(docs/|examples/|setup.py$)"
20+
- repo: https://github.com/pycqa/pylint
21+
rev: pylint-2.7.1
22+
hooks:
23+
- id: pylint
24+
name: pylint (library code)
25+
types: [python]
26+
exclude: "^(docs/|examples/|setup.py$)"
2727
- repo: local
2828
hooks:
2929
- id: pylint_examples

digitalio/digitalio_blink_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""CircuitPython LED blink example"""
22
import time
33
import board
4-
from digitalio import DigitalInOut, Direction, Pull
4+
from digitalio import DigitalInOut, Direction
55

66
# LED setup.
77
led = DigitalInOut(board.LED)

displayio/displayio_colored_screen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Use a bitmap to change the display background."""
2+
13
import board
24
import displayio
35

displayio/displayio_shape_corners.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import board
2-
import displayio
3-
41
"""
52
Illustrate usage of displayio.Shape with boundary and mirror.
63
"""
74

5+
import board
6+
import displayio
7+
88
SHAPE_WIDTH = board.DISPLAY.width
99
SHAPE_HEIGHT = board.DISPLAY.height
1010
CORNER_SIZE = board.DISPLAY.width // 4

displayio/displayio_shape_simpletest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
import board
1+
"""
2+
Illustrate usage of displayio.Shape.
3+
"""
24

5+
import board
36
import displayio
47

58
SHAPE_WIDTH = 100

0 commit comments

Comments
 (0)