diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2b52b040672..cadb19c395b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,14 @@ # Copyright (c) 2019-2022, NVIDIA CORPORATION. repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.3.0 + hooks: + - id: end-of-file-fixer + exclude: | + (?x)^( + ^python/cudf/cudf/tests/data/subword_tokenizer_data/.* + ) - repo: https://github.com/PyCQA/isort rev: 5.10.1 hooks: diff --git a/cpp/benchmarks/reduction/rank.cpp b/cpp/benchmarks/reduction/rank.cpp index c20f728e018..5022e029d97 100644 --- a/cpp/benchmarks/reduction/rank.cpp +++ b/cpp/benchmarks/reduction/rank.cpp @@ -61,4 +61,4 @@ NVBENCH_BENCH_TYPES(nvbench_reduction_scan, NVBENCH_TYPE_AXES(data_type)) 1000000, // 1M 10000000, // 10M 100000000, // 100M - }); \ No newline at end of file + }); diff --git a/cpp/include/cudf/detail/utilities/algorithm.cuh b/cpp/include/cudf/detail/utilities/algorithm.cuh index f05a09a8df1..4e83e219072 100644 --- a/cpp/include/cudf/detail/utilities/algorithm.cuh +++ b/cpp/include/cudf/detail/utilities/algorithm.cuh @@ -25,4 +25,4 @@ __device__ __forceinline__ T accumulate(Iterator first, Iterator last, T init, B } return init; } -} // namespace cudf::detail \ No newline at end of file +} // namespace cudf::detail diff --git a/cpp/include/cudf/detail/utilities/linked_column.hpp b/cpp/include/cudf/detail/utilities/linked_column.hpp index 05b46cc8e13..059e32730e5 100644 --- a/cpp/include/cudf/detail/utilities/linked_column.hpp +++ b/cpp/include/cudf/detail/utilities/linked_column.hpp @@ -77,4 +77,4 @@ inline LinkedColVector table_to_linked_columns(table_view const& table) return LinkedColVector(linked_it, linked_it + table.num_columns()); } -} // namespace cudf::detail \ No newline at end of file +} // namespace cudf::detail diff --git a/cpp/include/cudf_test/detail/column_utilities.hpp b/cpp/include/cudf_test/detail/column_utilities.hpp index ddf3b658a86..f8270f61f10 100644 --- a/cpp/include/cudf_test/detail/column_utilities.hpp +++ b/cpp/include/cudf_test/detail/column_utilities.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, NVIDIA CORPORATION. + * Copyright (c) 2020-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,4 +82,4 @@ std::vector to_strings(cudf::column_view const& col, std::string co } // namespace detail } // namespace test -} // namespace cudf \ No newline at end of file +} // namespace cudf diff --git a/cpp/src/text/subword/detail/codepoint_metadata.ah b/cpp/src/text/subword/detail/codepoint_metadata.ah index bc56d6c4ba5..794d14e4b6c 100644 --- a/cpp/src/text/subword/detail/codepoint_metadata.ah +++ b/cpp/src/text/subword/detail/codepoint_metadata.ah @@ -13464,4 +13464,3 @@ uint64_t aux_cp_data_119134_119232[] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,511706698612736,511706698612736,511706698731886,511706698731886,511706698731887,511706698731887 }; - diff --git a/cpp/tests/strings/json_tests.cpp b/cpp/tests/strings/json_tests.cpp index c533eed48df..983ccaebb44 100644 --- a/cpp/tests/strings/json_tests.cpp +++ b/cpp/tests/strings/json_tests.cpp @@ -1012,4 +1012,4 @@ TEST_F(JsonPathTests, MissingFieldsAsNulls) do_test("$.tup[*].array", "[[1,2],[3,4]]", "[[1,2],null,[3,4],null]"); do_test("$.x[*].array", "", "null", false); do_test("$.tup[*].a.x", "[\"5\"]", "[null,null,null,\"5\"]"); -} \ No newline at end of file +} diff --git a/docs/cudf/source/_templates/autosummary/class_with_autosummary.rst b/docs/cudf/source/_templates/autosummary/class_with_autosummary.rst index f86822bc567..a9c9bd2b650 100644 --- a/docs/cudf/source/_templates/autosummary/class_with_autosummary.rst +++ b/docs/cudf/source/_templates/autosummary/class_with_autosummary.rst @@ -30,4 +30,4 @@ {%- endfor %} {% endif %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/docs/cudf/source/_templates/autosummary/class_without_autosummary.rst b/docs/cudf/source/_templates/autosummary/class_without_autosummary.rst index b57a7ceebb0..6676c672b20 100644 --- a/docs/cudf/source/_templates/autosummary/class_without_autosummary.rst +++ b/docs/cudf/source/_templates/autosummary/class_without_autosummary.rst @@ -3,4 +3,4 @@ .. currentmodule:: {{ module }} -.. autoclass:: {{ objname }} \ No newline at end of file +.. autoclass:: {{ objname }} diff --git a/docs/cudf/source/api_docs/window.rst b/docs/cudf/source/api_docs/window.rst index 36857cbde07..6d96cc3e4bf 100644 --- a/docs/cudf/source/api_docs/window.rst +++ b/docs/cudf/source/api_docs/window.rst @@ -23,4 +23,3 @@ Rolling window functions Rolling.min Rolling.max Rolling.apply - diff --git a/docs/cudf/source/user_guide/cudf.CategoricalDtype.rst b/docs/cudf/source/user_guide/cudf.CategoricalDtype.rst index b43de86fc8f..1a8e709d938 100644 --- a/docs/cudf/source/user_guide/cudf.CategoricalDtype.rst +++ b/docs/cudf/source/user_guide/cudf.CategoricalDtype.rst @@ -16,4 +16,4 @@ cudf.CategoricalDtype CategoricalDtype.categories CategoricalDtype.ordered CategoricalDtype.from_pandas - CategoricalDtype.to_pandas \ No newline at end of file + CategoricalDtype.to_pandas diff --git a/docs/cudf/source/user_guide/cudf.Decimal128Dtype.rst b/docs/cudf/source/user_guide/cudf.Decimal128Dtype.rst index 20f6aea1299..cd0990faa3f 100644 --- a/docs/cudf/source/user_guide/cudf.Decimal128Dtype.rst +++ b/docs/cudf/source/user_guide/cudf.Decimal128Dtype.rst @@ -17,4 +17,4 @@ cudf.Decimal128Dtype Decimal128Dtype.scale Decimal128Dtype.itemsize Decimal128Dtype.to_arrow - Decimal128Dtype.from_arrow \ No newline at end of file + Decimal128Dtype.from_arrow diff --git a/docs/cudf/source/user_guide/cudf.Decimal32Dtype.rst b/docs/cudf/source/user_guide/cudf.Decimal32Dtype.rst index a92e695b4af..57067fdcf41 100644 --- a/docs/cudf/source/user_guide/cudf.Decimal32Dtype.rst +++ b/docs/cudf/source/user_guide/cudf.Decimal32Dtype.rst @@ -17,4 +17,4 @@ cudf.Decimal32Dtype Decimal32Dtype.scale Decimal32Dtype.itemsize Decimal32Dtype.to_arrow - Decimal32Dtype.from_arrow \ No newline at end of file + Decimal32Dtype.from_arrow diff --git a/docs/cudf/source/user_guide/cudf.Decimal64Dtype.rst b/docs/cudf/source/user_guide/cudf.Decimal64Dtype.rst index 3982ec7ad80..c855bf9da2c 100644 --- a/docs/cudf/source/user_guide/cudf.Decimal64Dtype.rst +++ b/docs/cudf/source/user_guide/cudf.Decimal64Dtype.rst @@ -17,4 +17,4 @@ cudf.Decimal64Dtype Decimal64Dtype.scale Decimal64Dtype.itemsize Decimal64Dtype.to_arrow - Decimal64Dtype.from_arrow \ No newline at end of file + Decimal64Dtype.from_arrow diff --git a/docs/cudf/source/user_guide/cudf.ListDtype.rst b/docs/cudf/source/user_guide/cudf.ListDtype.rst index 6f37317c898..e5a90ddd2ed 100644 --- a/docs/cudf/source/user_guide/cudf.ListDtype.rst +++ b/docs/cudf/source/user_guide/cudf.ListDtype.rst @@ -16,4 +16,4 @@ cudf.ListDtype ListDtype.element_type ListDtype.leaf_type ListDtype.from_arrow - ListDtype.to_arrow \ No newline at end of file + ListDtype.to_arrow diff --git a/docs/cudf/source/user_guide/cudf.StructDtype.rst b/docs/cudf/source/user_guide/cudf.StructDtype.rst index 68fa71b8231..4ef23995de2 100644 --- a/docs/cudf/source/user_guide/cudf.StructDtype.rst +++ b/docs/cudf/source/user_guide/cudf.StructDtype.rst @@ -15,4 +15,4 @@ cudf.StructDtype StructDtype.fields StructDtype.from_arrow - StructDtype.to_arrow \ No newline at end of file + StructDtype.to_arrow diff --git a/java/ci/README.md b/java/ci/README.md index 538e18c37c5..a26fb1cba04 100644 --- a/java/ci/README.md +++ b/java/ci/README.md @@ -48,4 +48,3 @@ scl enable devtoolset-9 "java/ci/build-in-docker.sh" ### The output You can find the cuDF jar in java/target/ like cudf-22.12.0-SNAPSHOT-cuda11.jar. - diff --git a/java/src/main/java/ai/rapids/cudf/DeviceMemoryBufferView.java b/java/src/main/java/ai/rapids/cudf/DeviceMemoryBufferView.java index 6e87f55e1ee..e48b1cf59e4 100644 --- a/java/src/main/java/ai/rapids/cudf/DeviceMemoryBufferView.java +++ b/java/src/main/java/ai/rapids/cudf/DeviceMemoryBufferView.java @@ -36,4 +36,4 @@ public class DeviceMemoryBufferView extends BaseDeviceMemoryBuffer { public synchronized final DeviceMemoryBufferView slice(long offset, long len) { throw new UnsupportedOperationException("Slice on view is not supported"); } -} \ No newline at end of file +} diff --git a/java/src/main/java/ai/rapids/cudf/ReplacePolicyWithColumn.java b/java/src/main/java/ai/rapids/cudf/ReplacePolicyWithColumn.java index 5702f623ee1..d0a072aaa2c 100644 --- a/java/src/main/java/ai/rapids/cudf/ReplacePolicyWithColumn.java +++ b/java/src/main/java/ai/rapids/cudf/ReplacePolicyWithColumn.java @@ -43,4 +43,4 @@ public boolean equals(Object other) { public int hashCode() { return 31 * column + policy.hashCode(); } -} \ No newline at end of file +} diff --git a/java/src/main/java/ai/rapids/cudf/StreamedTableReader.java b/java/src/main/java/ai/rapids/cudf/StreamedTableReader.java index aae86116c9b..d845edc058d 100644 --- a/java/src/main/java/ai/rapids/cudf/StreamedTableReader.java +++ b/java/src/main/java/ai/rapids/cudf/StreamedTableReader.java @@ -39,4 +39,4 @@ public interface StreamedTableReader extends AutoCloseable { @Override void close() throws CudfException; -} \ No newline at end of file +} diff --git a/java/src/main/java/ai/rapids/cudf/WindowOptions.java b/java/src/main/java/ai/rapids/cudf/WindowOptions.java index 6dd59e0f2fc..6ab5c0525ca 100644 --- a/java/src/main/java/ai/rapids/cudf/WindowOptions.java +++ b/java/src/main/java/ai/rapids/cudf/WindowOptions.java @@ -328,4 +328,4 @@ public void close() { followingCol.close(); } } -} \ No newline at end of file +} diff --git a/java/src/main/native/.clang-format b/java/src/main/native/.clang-format index 34ba71310cc..2b6bd9a27bb 100644 --- a/java/src/main/native/.clang-format +++ b/java/src/main/native/.clang-format @@ -202,4 +202,3 @@ Standard: Cpp11 TabWidth: 8 UseTab: Never ... - diff --git a/java/src/main/native/src/dtype_utils.hpp b/java/src/main/native/src/dtype_utils.hpp index 53108ee7268..4de8a94182c 100644 --- a/java/src/main/native/src/dtype_utils.hpp +++ b/java/src/main/native/src/dtype_utils.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, NVIDIA CORPORATION. + * Copyright (c) 2020-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -62,4 +62,4 @@ inline cudf::data_type make_data_type(jint out_dtype, jint scale) { } } // namespace jni -} // namespace cudf \ No newline at end of file +} // namespace cudf diff --git a/java/src/test/java/ai/rapids/cudf/PinnedMemoryPoolTest.java b/java/src/test/java/ai/rapids/cudf/PinnedMemoryPoolTest.java index 66233c65362..16628d7be36 100644 --- a/java/src/test/java/ai/rapids/cudf/PinnedMemoryPoolTest.java +++ b/java/src/test/java/ai/rapids/cudf/PinnedMemoryPoolTest.java @@ -131,4 +131,4 @@ void testZeroSizedAllocation() { } assertEquals(poolSize, PinnedMemoryPool.getAvailableBytes()); } -} \ No newline at end of file +} diff --git a/python/cudf/cudf/_fuzz_testing/tests/readme.md b/python/cudf/cudf/_fuzz_testing/tests/readme.md index f3e02ad7ca5..3e30aa8c924 100644 --- a/python/cudf/cudf/_fuzz_testing/tests/readme.md +++ b/python/cudf/cudf/_fuzz_testing/tests/readme.md @@ -97,4 +97,4 @@ def set_rand_params(self, params): else: params_dict[param] = np.random.choice(values) self._current_params["test_kwargs"] = self.process_kwargs(params_dict) -``` \ No newline at end of file +``` diff --git a/python/cudf/cudf/benchmarks/README.md b/python/cudf/cudf/benchmarks/README.md index 0d704f2a825..5486176550a 100644 --- a/python/cudf/cudf/benchmarks/README.md +++ b/python/cudf/cudf/benchmarks/README.md @@ -30,5 +30,3 @@ pytest --use_buffer True cudf/benchmarks/ ``` pytest --dataset_dir directory_path cudf/benchmarks/ ``` - - diff --git a/python/cudf_kafka/setup.cfg b/python/cudf_kafka/setup.cfg index 51469097526..f884e67908b 100644 --- a/python/cudf_kafka/setup.cfg +++ b/python/cudf_kafka/setup.cfg @@ -41,4 +41,3 @@ skip= build dist __init__.py -