Skip to content

Commit

Permalink
ci template
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed May 12, 2019
1 parent 9881bbe commit 9780ebd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .flake8
@@ -0,0 +1,3 @@
[flake8]
max-line-length = 132
exclude = .git,__pycache__,.eggs/,doc/,docs/,build/,dist/,archive/
5 changes: 2 additions & 3 deletions CMakeLists.txt
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.7)
cmake_minimum_required(VERSION 3.7)
project(sockets C)
enable_testing()

Expand Down Expand Up @@ -26,12 +26,11 @@ endif()

#------------ HDF5 ----------
find_package(PkgConfig QUIET)
pkg_check_modules(HDF5 HDF5)
pkg_check_modules(HDF5 hdf5-serial)
find_package(HDF5 COMPONENTS C)
if(HDF5_FOUND)
add_executable(unicast_rx_h5 hdf5/unicast_rx_h5.c)
target_include_directories(unicast_rx_h5 PRIVATE ${HDF5_INCLUDE_DIRS})
target_link_libraries(unicast_rx_h5 ${HDF5_C_LIBRARIES})
#target_compile_options(unicast_rx_h5 PRIVATE -Wno-reserved-id-macro) #hdf5.h lint
endif()

4 changes: 3 additions & 1 deletion meson.build
@@ -1,4 +1,6 @@
project('Sockets and HDF5 with C and Python', 'c', default_options : ['default_library=static', 'c_std=c11'])
project('Sockets and HDF5 with C and Python', 'c',
meson_version : '>=0.50',
default_options : ['default_library=static', 'c_std=c11'])

cc = meson.get_compiler('c')
ccid = cc.get_id()
Expand Down
4 changes: 4 additions & 0 deletions mypy.ini
@@ -0,0 +1,4 @@
[mypy]
ignore_missing_imports = True
strict_optional = False
allow_redefinition = True
6 changes: 0 additions & 6 deletions setup.cfg
Expand Up @@ -44,9 +44,3 @@ io =
[options.entry_points]
console_scripts =
unicast_rx = unicast_rx:main


[flake8]
max-line-length = 132
exclude = .git,__pycache__,.eggs/,doc/,docs/,build/,dist/,archive/

0 comments on commit 9780ebd

Please sign in to comment.