]> https://gitweb.dealii.org/ - dealii.git/commit
[pre-commit] add and apply config and CI 17893/head
authorJan Philipp Thiele <thiele@wias-berlin.de>
Wed, 27 Nov 2024 07:45:14 +0000 (08:45 +0100)
committerJan Philipp Thiele <thiele@wias-berlin.de>
Thu, 28 Nov 2024 15:23:47 +0000 (16:23 +0100)
commit49406c76d257f7e71f0c44f4368f97c81d33e2c9
tree6ae5a4255f7189afb30c2e0616a30b49a995f322
parent16484460f0d2a2a02dcb45acb31b2715277dc3cf
[pre-commit] add and apply config and CI

This adds a set of useful pre-commit hook checks
as well as a GitHub actions workflow to run these checks on each PR.

As some checks failed on the current codebase,
the fixes where applied as well.
More concretely these were
- fix trailing whitespaces
- fix EOF to one single linebreak
- typos
77 files changed:
.github/workflows/indent.yml
.github/workflows/pre-commit.yml [new file with mode: 0644]
.pre-commit-config.yaml [new file with mode: 0755]
CHANGELOG.md
CMakeLists.txt
README.md
cmake/config/CMakeLists.txt
cmake/config/ConfigGit.cmake.in
cmake/config/ConfigVersion.cmake.in
cmake/configure/TestBoostBug/polymorphic_derived2.cpp
cmake/configure/TestBoostBug/polymorphic_derived2.hpp
cmake/configure/configure_10_taskflow.cmake
cmake/configure/configure_30_kokkos.cmake
cmake/configure/configure_50_arborx.cmake
cmake/configure/configure_50_complex_values.cmake
cmake/macros/check_compiler_setup/CMakeLists.txt
cmake/macros/macro_add_flags.cmake
cmake/macros/macro_check_cxx_compiler_bug.cmake
cmake/macros/macro_check_mpi_interface.cmake
cmake/macros/macro_clear_cmake_required.cmake
cmake/macros/macro_copy_target_properties.cmake
cmake/macros/macro_deal_ii_invoke_autopilot.cmake
cmake/macros/macro_enable_if_supported.cmake
cmake/macros/macro_expand_instantiations.cmake
cmake/macros/macro_item_matches.cmake
cmake/macros/macro_print_target_properties.cmake
cmake/macros/macro_reset_cmake_required.cmake
cmake/macros/macro_strip_flag.cmake
cmake/macros/macro_strip_known_generator_expressions.cmake
cmake/modules/FindDEAL_II_TRILINOS.cmake
cmake/setup_compiler_flags_intel.cmake
cmake/setup_compiler_flags_msvc.cmake
cmake/setup_finalize.cmake
contrib/python-bindings/tests/manifold_wrapper.vtk
contrib/utilities/checkdoxygen.py
contrib/utilities/count_lines.sh
contrib/utilities/parse_ctest_output.py
contrib/utilities/relocate_libraries.py
contrib/utilities/run_clang_tidy.sh
contrib/utilities/update-copyright.sh
contrib/utilities/wrapcomments.py
doc/news/changes/README.md
doc/news/changes/minor/20241127Thiele [new file with mode: 0644]
doc/users/CMakeLists.txt.sample2
doc/users/CMakeLists.txt.sample3
examples/step-1/doc/builds-on
examples/step-11/doc/tooltip
examples/step-33/slide.inp
examples/step-57/doc/gnuplot.gpl
examples/step-58/doc/kind
examples/step-6/doc/tooltip
examples/step-60/parameters.prm
examples/step-71/doc/builds-on
examples/step-71/parameters.prm
examples/step-86/doc/results.dox
examples/step-89/CMakeLists.txt
source/differentiation/ad/ad_drivers.inst1.in
source/grid/grid_out.cc
source/grid/tria_accessor.inst.in
tests/cgal/input_grids/cube.off
tests/cgal/input_grids/hedra.off
tests/cgal/input_grids/octahedron.off
tests/cgal/input_grids/tripod.off
tests/codim_one/grids/sphere_0.inp
tests/examples/step-9.diff
tests/grid/grid_in_gmsh_03.geo
tests/grid/grid_in_gmsh_03.msh
tests/grid/grid_in_msh_02/mesh.msh
tests/grid/grid_in_ucd_02_grids/grid_2.inp
tests/grid/grid_in_ucd_02_grids/grid_3.inp
tests/grid/grid_in_vtk_1d_3d.tria1.vtk
tests/grid/grid_in_vtk_1d_3d.tria2.vtk
tests/grid/grids/abaqus/2d/2d_short_handwritten.inp
tests/grid/grids/abaqus/3d/codim_1-jagged_surface.inp
tests/grid/grids/abaqus/3d/codim_1-tube.inp
tests/grid/grids/comsol/mesh_example_with_domain_geom_info_1_7.mphtxt
tests/parameter_handler/parameter_handler_1_include_in.prm2

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.