Add pre-commit
This commit is contained in:
@@ -15,3 +15,7 @@ repos:
|
||||
- id: poetry-lock
|
||||
- id: poetry-export
|
||||
args: ["-f", "requirements.txt", "-o", "requirements.txt"]
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 23.1.0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
@@ -12,7 +12,6 @@ class SerialDevice:
|
||||
self.prefix = ""
|
||||
|
||||
def send_command(self, command: str) -> str:
|
||||
|
||||
with Serial(self.serial_port, self.baudrate, timeout=3) as s:
|
||||
if self.verbose:
|
||||
print(self.prefix, "send:", command)
|
||||
|
||||
Reference in New Issue
Block a user