Moving external libhackrf.py module into _external/ folder and updating Flake8 and Black config to ignore

This commit is contained in:
Michael Luciuk 2025-09-12 15:49:37 -04:00
parent 312c55189e
commit a2905073a8
4 changed files with 5 additions and 6 deletions

View File

@ -83,7 +83,7 @@ target-version = ["py310"]
exclude = '''
/(
\.git
| \.github
| \.riahub
| \.tox
| build
| dist
@ -94,6 +94,7 @@ exclude = '''
| \.env
| \.idea
| \.vscode
| _external
)/
'''

View File

@ -1,5 +1,4 @@
# TODO: only use transfer->valid_length in callbacks
# TODO: make error messages more informative
# Original work by Dressel, from the pyhackrf project: https://github.com/dressel/pyhackrf
import logging
import os

View File

@ -5,10 +5,9 @@ from typing import Optional
import numpy as np
from ria_toolkit_oss.datatypes.recording import Recording
from ria_toolkit_oss.sdr._external.libhackrf import HackRF as hrf
from ria_toolkit_oss.sdr.sdr import SDR
from .libhackrf import HackRF as hrf
class HackRF(SDR):
def __init__(self, identifier=""):

View File

@ -24,7 +24,7 @@ commands =
[flake8]
max-line-length = 119
extend-ignore = W503, E203, E701
exclude = .git, .github, build, dist, docs, venv, .venv, env, .env, .idea, .vscode, .tox
exclude = .git, .riahub, build, dist, docs, venv, .venv, env, .env, .idea, .vscode, .tox, _external
max-complexity = 15
per-file-ignores = __init__.py:F401