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

ci(pre-commit): update Black and clang-format #600

Merged
merged 2 commits into from
Mar 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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