From bd6ff3e63e27a084f21363760ce32f4baf336571 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 28 Oct 2022 14:57:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- PyRedPitaya/raw_memory.py | 10 +++++----- setup.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/PyRedPitaya/raw_memory.py b/PyRedPitaya/raw_memory.py index 6c10dbb..60b0080 100644 --- a/PyRedPitaya/raw_memory.py +++ b/PyRedPitaya/raw_memory.py @@ -1,12 +1,12 @@ from ctypes import POINTER, c_uint32, cast, cdll, create_string_buffer, sizeof +from importlib.machinery import EXTENSION_SUFFIXES +from pathlib import Path import numpy as np -from pathlib import Path -from importlib.machinery import EXTENSION_SUFFIXES -libmonitor_file = str(Path(__file__).parent / '..' / 'monitor{}'.format( - EXTENSION_SUFFIXES[0] -)) +libmonitor_file = str( + Path(__file__).parent / ".." / "monitor{}".format(EXTENSION_SUFFIXES[0]) +) libmonitor = cdll.LoadLibrary(libmonitor_file) libmonitor.read_value.restype = c_uint32 diff --git a/setup.py b/setup.py index 75c4029..5e905c0 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ import os from distutils.command.build import build from distutils.command.install import install -from distutils.core import setup, Extension +from distutils.core import Extension, setup from pathlib import Path from PyRedPitaya import __version__ @@ -35,5 +35,5 @@ "Topic :: Software Development :: Libraries :: Python Modules", ], keywords=["redpitaya", "FPGA", "zynq"], - ext_modules=[Extension('monitor',['monitor/monitor.c'])] + ext_modules=[Extension("monitor", ["monitor/monitor.c"])], )