Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
Changes requested by pylint.
  • Loading branch information
@rsbohn
rsbohn committed Dec 3, 2021
commit 125c90d17ca82f31fed830cb9e4d96cb4540d46c
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,13 +17,13 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
#- repo: https://github.com/pycqa/pylint
# rev: pylint-2.7.1
# hooks:
# - id: pylint
# name: pylint (library code)
# types: [python]
# exclude: "^(docs/|examples/|setup.py$)"
- repo: https://github.com/pycqa/pylint
rev: pylint-2.7.1
hooks:
- id: pylint
name: pylint (library code)
types: [python]
exclude: "^(docs/|examples/|setup.py$)"
- repo: local
hooks:
- id: pylint_examples
Expand Down
2 changes: 1 addition & 1 deletion digitalio/digitalio_blink_example.py
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
"""CircuitPython LED blink example"""
import time
import board
from digitalio import DigitalInOut, Direction, Pull
from digitalio import DigitalInOut, Direction

# LED setup.
led = DigitalInOut(board.LED)
Expand Down
2 changes: 2 additions & 0 deletions displayio/displayio_colored_screen.py
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
"""Use a bitmap to change the display background."""

import board
import displayio

Expand Down
6 changes: 3 additions & 3 deletions displayio/displayio_shape_corners.py
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
import board
import displayio

"""
Illustrate usage of displayio.Shape with boundary and mirror.
"""

import board
import displayio

SHAPE_WIDTH = board.DISPLAY.width
SHAPE_HEIGHT = board.DISPLAY.height
CORNER_SIZE = board.DISPLAY.width // 4
Expand Down
5 changes: 4 additions & 1 deletion displayio/displayio_shape_simpletest.py
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
import board
"""
Illustrate usage of displayio.Shape.
"""

import board
import displayio

SHAPE_WIDTH = 100
Expand Down