Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autopep8b #7

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
9b150ef
modtool: Use c++17 in template to match top level CMakeLists.txt.
drmpeg Nov 3, 2021
535bac6
Revert "Replace boost::any with std::any"
mormj Nov 4, 2021
f9a693d
cmake: handle optional components in `find_package`
ckoehler Nov 4, 2021
14d30f1
qt-gui: enables use of Qwt 6.2
bmuzika Sep 3, 2021
e1ce515
runtime: remove unused test.cc/h
mormj Nov 1, 2021
077cfad
modtool: fix CMake export config
Nov 3, 2021
ed7f128
gr-filter: Corrects reconstruction filter bank example to point at ex…
nsbruce Nov 12, 2021
8c22217
CI: Allow conda builds to use Qwt 6.2 now that it is compatible (#5302).
ryanvolz Nov 11, 2021
68f270c
CI: enable qa_agc test now that it has been fixed (#5244).
ryanvolz Nov 11, 2021
bfb64aa
CI: Disable qa_message_* tests for conda macOS.
ryanvolz Nov 11, 2021
04cf420
MNT: Re-rendered with conda-build 3.21.4, conda-smithy 3.14.3, and co…
ryanvolz Nov 11, 2021
c7390f2
modtool,cmake: make module dir for tests
ckoehler Oct 28, 2021
b874d23
gnuradio-runtime: Remove unused test_types.h file.
drmpeg Nov 16, 2021
d4df6a1
modtool,cmake: fix python-only QA, bindings copy handled in bindings …
samwhiting-snl Nov 17, 2021
386bd99
runtime: don't include boost/format.hpp in logger.h
marcusmueller Jun 17, 2021
cb60862
gnuradio-config-info: avoid boost/fmt::format ambiguity
marcusmueller Aug 4, 2021
1bb08e8
logging core: replace log4cpp by spdlog
marcusmueller Aug 3, 2021
650d6cc
CI/conda: include spdlog & fmt
marcusmueller Oct 26, 2021
e0b1e26
runtime: minor API cleanup
marcusmueller Aug 15, 2021
a8469f2
runtime/qa: remove reference to gruel in test script
mormj Nov 4, 2021
609f3da
blocks: pep8 formatting
mormj Nov 4, 2021
dae530d
analog: pep8 formatting
mormj Nov 4, 2021
9a04d24
audio: pep8 formatting
mormj Nov 4, 2021
d056ce4
channels: pep8 formatting
mormj Nov 4, 2021
f1a4000
digital: pep8 formatting
mormj Nov 4, 2021
1007540
dtv: pep8 formatting
mormj Nov 4, 2021
b1c62e4
fec: pep8 formatting
mormj Nov 4, 2021
8ec69d4
fft: pep8 formatting
mormj Nov 4, 2021
b2c62fa
filter: pep8 formatting
mormj Nov 4, 2021
2d4d415
iio: pep8 formatting
mormj Nov 4, 2021
da4103f
network: pep8 formatting
mormj Nov 4, 2021
df84b66
pdu: pep8 formatting
mormj Nov 4, 2021
68dd991
qtgui: pep8 formatting
mormj Nov 4, 2021
119e224
soapy: pep8 formatting
mormj Nov 4, 2021
e6c6784
trellis: pep8 formatting
mormj Nov 4, 2021
5251407
uhd: pep8 formatting
mormj Nov 4, 2021
4b81573
gr-utils: pep8 formatting
mormj Nov 4, 2021
58fdd3a
gr-vocoder: pep8 formatting
mormj Nov 4, 2021
d2c36f1
gr-zeromq: pep8 formatting
mormj Nov 4, 2021
df9bb0b
grc: pep8 formatting
mormj Nov 4, 2021
ad7482f
runtime: pep8 formatting
mormj Nov 4, 2021
522997f
qtgui: remove trailing whitespace in .yml.py
mormj Nov 4, 2021
4f67803
docs: pep8 formatting
mormj Nov 4, 2021
b683d0f
tools: pep8 formatting
mormj Nov 4, 2021
080291f
ci: add pep8 check
mormj Nov 3, 2021
13076c1
tools: Add autoformatting command as script
mormj Nov 11, 2021
159c880
tools: add check_pep8 and update autoformat_python
mormj Nov 19, 2021
765e4d3
ci: Separate python formatting check
mormj Nov 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .ci_support/linux_64_numpy1.18python3.8.____cpython.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ docker_image:
- quay.io/condaforge/linux-anvil-comp7
fftw:
- '3'
fmt:
- '8'
gmp:
- '6'
gsl:
Expand All @@ -44,6 +46,8 @@ pin_run_as_build:
max_pin: x.x
qt:
max_pin: x.x
spdlog:
max_pin: x.x
zeromq:
max_pin: x.x
pybind11_abi:
Expand All @@ -54,6 +58,8 @@ qt:
- '5.12'
soapysdr:
- '0.8'
spdlog:
- '1.8'
target_platform:
- linux-64
uhd:
Expand Down
6 changes: 6 additions & 0 deletions .ci_support/osx_64_numpy1.18python3.8.____cpython.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ cxx_compiler_version:
- '11'
fftw:
- '3'
fmt:
- '8'
gmp:
- '6'
gsl:
Expand All @@ -42,6 +44,8 @@ pin_run_as_build:
max_pin: x.x
qt:
max_pin: x.x
spdlog:
max_pin: x.x
zeromq:
max_pin: x.x
pybind11_abi:
Expand All @@ -52,6 +56,8 @@ qt:
- '5.12'
soapysdr:
- '0.8'
spdlog:
- '1.8'
target_platform:
- osx-64
uhd:
Expand Down
6 changes: 6 additions & 0 deletions .ci_support/win_64_numpy1.18python3.8.____cpython.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ cxx_compiler:
- vs2017
fftw:
- '3'
fmt:
- '8'
gsl:
- '2.6'
libiio:
Expand All @@ -26,6 +28,8 @@ pin_run_as_build:
max_pin: x.x
qt:
max_pin: x.x
spdlog:
max_pin: x.x
zeromq:
max_pin: x.x.x
pybind11_abi:
Expand All @@ -36,6 +40,8 @@ qt:
- '5.12'
soapysdr:
- '0.8'
spdlog:
- '1.8'
target_platform:
- win-64
uhd:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/make-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ jobs:
source: '.'
exclude: './volk'
extensions: 'h,hpp,cpp,cc,cc.in'
check-python-formatting:
name: Check Python Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: quentinguidee/pep8-action@v1
with:
arguments: '--max-line-length=120 --ignore E265,E266,E402,E501,E704,E712,E713,E714,E711,E722,E741,W504,W605 --exclude *.yml.py'
# Doxygen gets built separately. It has a lot of output and its own weirdness.
doxygen:
name: Doxygen
Expand All @@ -36,7 +44,7 @@ jobs:
run: 'cd /build && make doxygen_target'
linux-docker:
# All of these shall depend on the formatting check (needs: check-formatting)
needs: check-formatting
needs: [check-formatting, check-python-formatting]
runs-on: ubuntu-latest
# The GH default is 360 minutes (it's also the max as of Feb-2021). However
# we should fail sooner. The only reason to exceed this time is if a test
Expand Down
4 changes: 2 additions & 2 deletions .packaging/conda_recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ cmake --build . --config Release --target install

if [[ $target_platform == linux* ]] ; then
SKIP_TESTS=(
qa_agc
qa_cpp_py_binding
qa_cpp_py_binding_set
qa_ctrlport_probes
Expand All @@ -30,7 +29,6 @@ if [[ $target_platform == linux* ]] ; then
else
SKIP_TESTS=(
qa_add_system_time
qa_agc
qa_block_gateway
qa_cpp_py_binding
qa_cpp_py_binding_set
Expand All @@ -42,6 +40,8 @@ else
qa_header_payload_demux
qa_hier_block2
qa_hier_block2_message_connections
qa_message_debug
qa_message_strobe
qa_python_message_passing
qa_rotator_cc
qa_tcp_server_sink
Expand Down
5 changes: 3 additions & 2 deletions .packaging/conda_recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,21 @@ requirements:
# use codec2 1.0.0 because 1.0.1 has header which fails on Windows (complex.h)
- codec2 1.0.0*
- fftw
- fmt
- gmp # [not win]
- gsl
# blas needed to link with gsl
- libcblas # [linux]
- libsndfile
- libthrift # [not win]
- log4cpp
- mako
- mpir # [win]
- numpy
- pip # [win]
- pybind11
- pybind11-abi
- python
- spdlog
- thrift # [not win]
- volk
# gnuradio.audio
Expand All @@ -88,7 +89,7 @@ requirements:
# gnuradio.qtgui
- pyqt
- qt
- qwt <6.2
- qwt
# gnuradio.soapy
- soapysdr
# gnuradio.uhd
Expand Down
1 change: 1 addition & 0 deletions .scripts/build_steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ source run_conda_forge_build_setup
make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CONFIG_FILE}"



( endgroup "Configuring conda" ) 2> /dev/null

if [[ "${BUILD_WITH_CONDA_DEBUG:-0}" == 1 ]]; then
Expand Down
5 changes: 3 additions & 2 deletions .scripts/run_docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ fi

export UPLOAD_PACKAGES="${UPLOAD_PACKAGES:-True}"
export IS_PR_BUILD="${IS_PR_BUILD:-False}"
docker pull "${DOCKER_IMAGE}"
docker run ${DOCKER_RUN_ARGS} \
-v "${RECIPE_ROOT}":/home/conda/recipe_root:rw,z,delegated \
-v "${FEEDSTOCK_ROOT}":/home/conda/feedstock_root:rw,z,delegated \
Expand All @@ -91,9 +92,9 @@ docker run ${DOCKER_RUN_ARGS} \
-e BUILD_WITH_CONDA_DEBUG \
-e BUILD_OUTPUT_ID \
-e BINSTAR_TOKEN \
$DOCKER_IMAGE \
"${DOCKER_IMAGE}" \
bash \
/home/conda/feedstock_root/${PROVIDER_DIR}/build_steps.sh
"/home/conda/feedstock_root/${PROVIDER_DIR}/build_steps.sh"

# verify that the end of the script was reached
test -f "$DONE_CANARY"
Expand Down
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,6 @@ else()
endif()
endif()

########################################################################
# Configure Log4CPP
########################################################################
find_package(LOG4CPP REQUIRED)

########################################################################
# Setup Native Capabilities Flag
########################################################################
Expand Down
62 changes: 0 additions & 62 deletions cmake/Modules/FindLOG4CPP.cmake

This file was deleted.

10 changes: 7 additions & 3 deletions cmake/Modules/GnuradioConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include(CMakeFindDependencyMacro)
# Allows us to use all .cmake files in this directory
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_LIST_DIR}")

find_dependency(LOG4CPP)
find_dependency(spdlog)
find_dependency(MPLIB)

set(BOOST_REQUIRED_COMPONENTS
Expand Down Expand Up @@ -97,7 +97,11 @@ set(GR_COMPONENTS
)

foreach(target ${GR_COMPONENTS})
if (${target} IN_LIST Gnuradio_FIND_COMPONENTS)
include("${CMAKE_CURRENT_LIST_DIR}/gnuradio-${target}Config.cmake")
set(GR_COMPONENT_INCLUDE_FILE
"${CMAKE_CURRENT_LIST_DIR}/gnuradio-${target}Config.cmake")
if(${target} IN_LIST Gnuradio_FIND_COMPONENTS
AND (EXISTS ${GR_COMPONENT_INCLUDE_FILE}
OR "${Gnuradio_FIND_REQUIRED_${target}}"))
include(${GR_COMPONENT_INCLUDE_FILE})
endif()
endforeach(target)
4 changes: 4 additions & 0 deletions cmake/Modules/GrTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ function(GR_ADD_TEST test_name)
# Keep the original path conversion for pypath - the above commented line breaks CI tests
file(TO_NATIVE_PATH "${GR_TEST_PYTHON_DIRS}" pypath) #ok to use on dir list?

# add test module directory to PYTHONPATH to allow CTest to find QA test modules.
# We add it to the beginning of the list to use locally-built modules before installed ones.
list(INSERT pypath 0 "${CMAKE_BINARY_DIR}/test_modules")

set(environs "VOLK_GENERIC=1" "GR_DONT_LOAD_PREFS=1" "srcdir=${srcdir}"
"GR_CONF_CONTROLPORT_ON=False")
list(APPEND environs ${GR_TEST_ENVIRONS})
Expand Down
3 changes: 2 additions & 1 deletion docs/doxygen/doxyxml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@

from .doxyindex import DoxyIndex, DoxyFunction, DoxyParam, DoxyClass, DoxyFile, DoxyNamespace, DoxyGroup, DoxyFriend, DoxyOther


def _test():
import os
this_dir = os.path.dirname(globals()['__file__'])
Expand All @@ -65,6 +66,6 @@ def _test():
import doctest
return doctest.testmod()


if __name__ == "__main__":
_test()

4 changes: 2 additions & 2 deletions docs/doxygen/doxyxml/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def get_cls(self, mem):
for cls in self.mem_classes:
if cls.can_parse(mem):
return cls
raise Exception(("Did not find a class for object '%s'." \
% (mem.get_name())))
raise Exception(("Did not find a class for object '%s'."
% (mem.get_name())))

def convert_mem(self, mem):
try:
Expand Down
Loading