Skip to content

Commit

Permalink
Add pylint exceptions inside the code
Browse files Browse the repository at this point in the history
  • Loading branch information
bkbilly committed Jun 1, 2024
1 parent 87f9576 commit 941e26d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ repos:
- id: pylint
args: [
"--generated-members=cv2.*,player.*,alsaaudio.Mixer",
"--disable=R0801,too-many-instance-attributes,line-too-long,eval-used,too-few-public-methods,broad-exception-caught,unused-argument,import-error,consider-using-with",
"--disable=duplicate-code,line-too-long,too-few-public-methods,broad-exception-caught,unused-argument,import-error",
]
1 change: 1 addition & 0 deletions lnxlink/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
logger = logging.getLogger("lnxlink")


# pylint: disable=too-many-instance-attributes
class LNXlink:
"""Start LNXlink service that loads all modules and connects to MQTT"""

Expand Down
1 change: 1 addition & 0 deletions lnxlink/modules/scripts/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
logger = logging.getLogger("lnxlink")


# pylint: disable=consider-using-with
def syscommand(command, ignore_errors=False, timeout=3, background=False):
"""Global subprocess command"""
if isinstance(command, list):
Expand Down

0 comments on commit 941e26d

Please sign in to comment.