Skip to content

Linted #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 4 additions & 5 deletions examples/rotaryencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
# This example is adapted in part from micropython:
# https://github.com/micropython/micropython/pull/6894/files

import adafruit_pioasm
import board
import rp2pio
import array
import digitalio
import rp2pio
import board
import adafruit_pioasm


class IncrementalEncoder:
Expand Down Expand Up @@ -111,7 +110,7 @@ def value(self):

old_value = None
while True:
gen()
gen() # pylint: disable=undefined-variable

value = encoder.value
if old_value != value:
Expand Down
8 changes: 4 additions & 4 deletions examples/rxuart.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def baudrate(self):
return self.pio.frequency // 8

@baudrate.setter
def baudrate(self, frequency):
self.pio.frequency = freqency * 8
def baudrate(self, frequency): # pylint: disable=unused-argument
self.pio.frequency = freqency * 8 # pylint: disable=undefined-variable

@property
def in_waiting(self):
Expand All @@ -55,5 +55,5 @@ def read(self, n):
n = self.pio.readinto(b)
return b[:n]

def readinto(self, buf):
return self.pio.readinto(n)
def readinto(self, buf): # pylint: disable=unused-argument
return self.pio.readinto(n) # pylint: disable=undefined-variable