Moving external libhackrf.py
module into _external/
folder and updating Flake8 and Black config to ignore
This commit is contained in:
parent
312c55189e
commit
a2905073a8
|
@ -83,7 +83,7 @@ target-version = ["py310"]
|
||||||
exclude = '''
|
exclude = '''
|
||||||
/(
|
/(
|
||||||
\.git
|
\.git
|
||||||
| \.github
|
| \.riahub
|
||||||
| \.tox
|
| \.tox
|
||||||
| build
|
| build
|
||||||
| dist
|
| dist
|
||||||
|
@ -94,6 +94,7 @@ exclude = '''
|
||||||
| \.env
|
| \.env
|
||||||
| \.idea
|
| \.idea
|
||||||
| \.vscode
|
| \.vscode
|
||||||
|
| _external
|
||||||
)/
|
)/
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# TODO: only use transfer->valid_length in callbacks
|
# Original work by Dressel, from the pyhackrf project: https://github.com/dressel/pyhackrf
|
||||||
# TODO: make error messages more informative
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
|
@ -5,10 +5,9 @@ from typing import Optional
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from ria_toolkit_oss.datatypes.recording import Recording
|
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 ria_toolkit_oss.sdr.sdr import SDR
|
||||||
|
|
||||||
from .libhackrf import HackRF as hrf
|
|
||||||
|
|
||||||
|
|
||||||
class HackRF(SDR):
|
class HackRF(SDR):
|
||||||
def __init__(self, identifier=""):
|
def __init__(self, identifier=""):
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -24,7 +24,7 @@ commands =
|
||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 119
|
max-line-length = 119
|
||||||
extend-ignore = W503, E203, E701
|
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
|
max-complexity = 15
|
||||||
per-file-ignores = __init__.py:F401
|
per-file-ignores = __init__.py:F401
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user