Skip to content

Commit

Permalink
ci(pre-commit): update Black and clang-format (tier4#600)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
  • Loading branch information
kenji-miyake authored and boyali committed Sep 28, 2022
1 parent bd4bc65 commit a1b0250
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ repos:
- id: isort

- repo: https://github.com/psf/black
rev: 22.1.0
rev: 22.3.0
hooks:
- id: black
args: [--line-length=100]
Expand All @@ -80,9 +80,10 @@ repos:
]

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v13.0.0
rev: v13.0.1
hooks:
- id: clang-format
types_or: [c++, c, cuda]

- repo: https://github.com/cpplint/cpplint
rev: 1.5.5
Expand Down
5 changes: 2 additions & 3 deletions perception/tensorrt_yolo/lib/src/plugins/mish.cu
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@
* SOFTWARE.
*/

#include <stdio.h>
#include <mish.hpp>

#include <cuda_runtime_api.h>

#include <mish.hpp>
#include <stdio.h>

namespace yolo
{
Expand Down
12 changes: 6 additions & 6 deletions perception/tensorrt_yolo/lib/src/plugins/nms.cu
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@
* DEALINGS IN THE SOFTWARE.
*/

#include <cuda.h>
#include <thrust/device_ptr.h>
#include <thrust/execution_policy.h>
#include <thrust/gather.h>
#include <thrust/sequence.h>

#include <algorithm>
#include <cmath>
#include <cstdint>
#include <iostream>
#include <stdexcept>
#include <vector>

#include <cuda.h>
#include <thrust/device_ptr.h>
#include <thrust/execution_policy.h>
#include <thrust/gather.h>
#include <thrust/sequence.h>

#if CUDART_VERSION >= 11000
#include <cub/device/device_radix_sort.cuh>
#include <cub/iterator/counting_input_iterator.cuh>
Expand Down
8 changes: 4 additions & 4 deletions perception/tensorrt_yolo/lib/src/plugins/yolo_layer.cu
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@
* DEALINGS IN THE SOFTWARE.
*/

#include <stdio.h>
#include <stdexcept>
#include <cuda_utils.hpp>
#include <yolo_layer.hpp>

#include <math_constants.h>
#include <stdio.h>

#include <cuda_utils.hpp>
#include <yolo_layer.hpp>
#include <stdexcept>

namespace yolo
{
Expand Down

0 comments on commit a1b0250

Please sign in to comment.