From 1d29c00f441dc50650b500bb6b6fe72efce28990 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 7 Apr 2023 12:15:09 +0300 Subject: [PATCH] Auto precommit update (#1113) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Auto pre-commit update * Update .pre-commit-config.yaml * Codespell fixes * Install cargo * rust? * Revert "rust?" This reverts commit a6f4ced067cf6b5eeaaaa5d50a13cbcda65c747b. * Revert "Install cargo" This reverts commit 51d250c7678f37babc0c6734a5c319a253fb636b. * Check old version of typos --------- Co-authored-by: GitHub Co-authored-by: Ege Çetin <64282645+egecetin@users.noreply.github.com> Co-authored-by: Ege Çetin --- .pre-commit-config.yaml | 4 ++-- Examples/Arping/main.cpp | 2 +- Pcap++/header/DpdkDevice.h | 2 +- codespell-ignore-list.txt | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1359908afa..71dc1793d5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: mixed-line-ending args: ['--fix=lf'] - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 23.3.0 hooks: - id: black - repo: https://github.com/pocc/pre-commit-hooks @@ -20,7 +20,7 @@ repos: args: ["--std=c++11", "--language=c++", "--suppressions-list=cppcheckSuppressions.txt", "--inline-suppr", "--force"] # - id: clang-format - repo: https://github.com/codespell-project/codespell - rev: v2.2.2 + rev: v2.2.4 hooks: - id: codespell pass_filenames: false diff --git a/Examples/Arping/main.cpp b/Examples/Arping/main.cpp index d775fce3f3..d4b719e897 100644 --- a/Examples/Arping/main.cpp +++ b/Examples/Arping/main.cpp @@ -195,7 +195,7 @@ int main(int argc, char* argv[]) if (!dev->open()) EXIT_WITH_ERROR("Couldn't open interface device '" << dev->getName() << "'"); - // verify source MAC is valud + // verify source MAC is valid if (!sourceMac.isValid()) EXIT_WITH_ERROR("Source MAC address is invalid"); diff --git a/Pcap++/header/DpdkDevice.h b/Pcap++/header/DpdkDevice.h index 65266bc39b..6dcb4e46b7 100644 --- a/Pcap++/header/DpdkDevice.h +++ b/Pcap++/header/DpdkDevice.h @@ -363,7 +363,7 @@ namespace pcpp uint64_t rxPacketsDroppedByHW; /** Total number of erroneous packets */ uint64_t rxErroneousPackets; - /** Total number of RX mbuf allocation failuers */ + /** Total number of RX mbuf allocation failures */ uint64_t rxMbufAlocFailed; }; diff --git a/codespell-ignore-list.txt b/codespell-ignore-list.txt index 819d0b9e18..499443a034 100644 --- a/codespell-ignore-list.txt +++ b/codespell-ignore-list.txt @@ -7,3 +7,4 @@ inout ba wont pinter +allo