Skip to content

Commit

Permalink
Added pylint comments to pass pre-commit
Browse files Browse the repository at this point in the history
Added pylint comments to /am65xx/pin.py and pwmout.py. Which are minor "issues" which should be totaly ok to pass.
  • Loading branch information
schnurma committed Sep 21, 2022
1 parent 99ce0ad commit 9c00fbf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/adafruit_blinka/microcontroller/am65xx/pin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

import mraa

# pylint: disable=too-many-branches,too-many-statements
# pylint: disable=pointless-string-statement


class Pin:
"""Pins don't exist in CPython so...lets make our own!"""
Expand Down
9 changes: 8 additions & 1 deletion src/adafruit_blinka/microcontroller/am65xx/pwmout.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,25 @@
# SPDX-FileCopyrightText: 2022 Martin Schnur for Siemens AG
#
# SPDX-License-Identifier: MIT

# pylint: disable=pointless-string-statement
# pylint: disable=ungrouped-imports,wrong-import-position,unused-import
# pylint: disable=import-outside-toplevel

"""Custom PWMOut Wrapper for am65xx"""
"""
Much code from https://github.com/vsergeev/python-periphery/blob/master/periphery/pwm.py
Copyright (c) 2015-2016 vsergeev / Ivan (Vanya) A. Sergeev
License: MIT
"""


import mraa
from adafruit_blinka.microcontroller.am65xx.pin import Pin


# pylint: disable=unnecessary-pass


class PWMError(IOError):
"""Base class for PWM errors."""

Expand Down

0 comments on commit 9c00fbf

Please sign in to comment.