From 2e76162adf458fa347ca9128e1c8701327824e8d Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Wed, 21 Sep 2022 17:39:09 +0200 Subject: [PATCH 1/2] chore: add more pre-commit lints --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b447cbd..8a99c63 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,11 @@ repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.3.0 + hooks: + - id: end-of-file-fixer + - id: check-added-large-files + - id: check-json + - repo: https://github.com/cathiele/pre-commit-rust rev: v0.1.0 hooks: From 722f964f774e7542b9382980e2c227af0e13f64b Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Wed, 21 Sep 2022 17:42:05 +0200 Subject: [PATCH 2/2] chore: fix file endings --- ...stypipe__client__player__tests__map_player_data_android.snap | 1 - ...stypipe__client__player__tests__map_player_data_desktop.snap | 1 - ...pe__client__player__tests__map_player_data_desktopmusic.snap | 1 - .../rustypipe__client__player__tests__map_player_data_ios.snap | 1 - ...pe__client__player__tests__map_player_data_tvhtml5embed.snap | 1 - ...typipe__client__playlist__tests__map_playlist_data_long.snap | 1 - ...ipe__client__playlist__tests__map_playlist_data_nomusic.snap | 1 - ...ypipe__client__playlist__tests__map_playlist_data_short.snap | 1 - testfiles/date/dictionary.json | 2 +- testfiles/date/playlist_samples.json | 2 +- testfiles/video_details/comments_top.json | 2 +- testfiles/video_details/comments_top_with_count.json | 2 +- testfiles/video_details/video_details_agegate.json | 2 +- testfiles/video_details/video_details_ccommons.json | 2 +- testfiles/video_details/video_details_chapters.json | 2 +- testfiles/video_details/video_details_live.json | 2 +- testfiles/video_details/video_details_music.json | 2 +- testfiles/video_details/video_details_mv.json | 2 +- 18 files changed, 10 insertions(+), 18 deletions(-) diff --git a/src/client/snapshots/rustypipe__client__player__tests__map_player_data_android.snap b/src/client/snapshots/rustypipe__client__player__tests__map_player_data_android.snap index 929de2f..dbd06ab 100644 --- a/src/client/snapshots/rustypipe__client__player__tests__map_player_data_android.snap +++ b/src/client/snapshots/rustypipe__client__player__tests__map_player_data_android.snap @@ -347,4 +347,3 @@ subtitles: lang_name: English auto_generated: false expires_in_seconds: 21540 - diff --git a/src/client/snapshots/rustypipe__client__player__tests__map_player_data_desktop.snap b/src/client/snapshots/rustypipe__client__player__tests__map_player_data_desktop.snap index 180d480..d4288e4 100644 --- a/src/client/snapshots/rustypipe__client__player__tests__map_player_data_desktop.snap +++ b/src/client/snapshots/rustypipe__client__player__tests__map_player_data_desktop.snap @@ -442,4 +442,3 @@ subtitles: lang_name: English auto_generated: false expires_in_seconds: 21540 - diff --git a/src/client/snapshots/rustypipe__client__player__tests__map_player_data_desktopmusic.snap b/src/client/snapshots/rustypipe__client__player__tests__map_player_data_desktopmusic.snap index d847522..745e195 100644 --- a/src/client/snapshots/rustypipe__client__player__tests__map_player_data_desktopmusic.snap +++ b/src/client/snapshots/rustypipe__client__player__tests__map_player_data_desktopmusic.snap @@ -316,4 +316,3 @@ subtitles: lang_name: English auto_generated: false expires_in_seconds: 21540 - diff --git a/src/client/snapshots/rustypipe__client__player__tests__map_player_data_ios.snap b/src/client/snapshots/rustypipe__client__player__tests__map_player_data_ios.snap index 2970693..38fd80c 100644 --- a/src/client/snapshots/rustypipe__client__player__tests__map_player_data_ios.snap +++ b/src/client/snapshots/rustypipe__client__player__tests__map_player_data_ios.snap @@ -128,4 +128,3 @@ subtitles: lang_name: English auto_generated: false expires_in_seconds: 21540 - diff --git a/src/client/snapshots/rustypipe__client__player__tests__map_player_data_tvhtml5embed.snap b/src/client/snapshots/rustypipe__client__player__tests__map_player_data_tvhtml5embed.snap index c437f9b..d2b086c 100644 --- a/src/client/snapshots/rustypipe__client__player__tests__map_player_data_tvhtml5embed.snap +++ b/src/client/snapshots/rustypipe__client__player__tests__map_player_data_tvhtml5embed.snap @@ -442,4 +442,3 @@ subtitles: lang_name: English auto_generated: false expires_in_seconds: 21540 - diff --git a/src/client/snapshots/rustypipe__client__playlist__tests__map_playlist_data_long.snap b/src/client/snapshots/rustypipe__client__playlist__tests__map_playlist_data_long.snap index 7cccd54..6511c06 100644 --- a/src/client/snapshots/rustypipe__client__playlist__tests__map_playlist_data_long.snap +++ b/src/client/snapshots/rustypipe__client__playlist__tests__map_playlist_data_long.snap @@ -1928,4 +1928,3 @@ channel: name: Best Music last_update: "[date]" last_update_txt: "Last updated on Aug 7, 2022" - diff --git a/src/client/snapshots/rustypipe__client__playlist__tests__map_playlist_data_nomusic.snap b/src/client/snapshots/rustypipe__client__playlist__tests__map_playlist_data_nomusic.snap index 7fadbf6..3b9ac75 100644 --- a/src/client/snapshots/rustypipe__client__playlist__tests__map_playlist_data_nomusic.snap +++ b/src/client/snapshots/rustypipe__client__playlist__tests__map_playlist_data_nomusic.snap @@ -1282,4 +1282,3 @@ channel: name: Chaosflo44 last_update: "[date]" last_update_txt: "Last updated on Jul 2, 2014" - diff --git a/src/client/snapshots/rustypipe__client__playlist__tests__map_playlist_data_short.snap b/src/client/snapshots/rustypipe__client__playlist__tests__map_playlist_data_short.snap index 528a0d5..ff29d65 100644 --- a/src/client/snapshots/rustypipe__client__playlist__tests__map_playlist_data_short.snap +++ b/src/client/snapshots/rustypipe__client__playlist__tests__map_playlist_data_short.snap @@ -1866,4 +1866,3 @@ description: ~ channel: ~ last_update: "[date]" last_update_txt: Updated today - diff --git a/testfiles/date/dictionary.json b/testfiles/date/dictionary.json index 9e7513a..8b89c86 100644 --- a/testfiles/date/dictionary.json +++ b/testfiles/date/dictionary.json @@ -2648,4 +2648,4 @@ "namuhla": "0D" } } -} \ No newline at end of file +} diff --git a/testfiles/date/playlist_samples.json b/testfiles/date/playlist_samples.json index 5f25881..7566d95 100644 --- a/testfiles/date/playlist_samples.json +++ b/testfiles/date/playlist_samples.json @@ -1410,4 +1410,4 @@ "Nov": "Yagcina ibuyekezwe ngomhla ka-Nov 3, 2016", "Dec": "Yagcina ibuyekezwe ngomhla ka-Dis 24, 2021" } -} \ No newline at end of file +} diff --git a/testfiles/video_details/comments_top.json b/testfiles/video_details/comments_top.json index 0a54f71..8ff3fbc 100644 --- a/testfiles/video_details/comments_top.json +++ b/testfiles/video_details/comments_top.json @@ -12843,4 +12843,4 @@ } }, "trackingParams": "CAAQg2ciEwiDg5Xkv6P6AhWG4REIHcn3BGI=" -} \ No newline at end of file +} diff --git a/testfiles/video_details/comments_top_with_count.json b/testfiles/video_details/comments_top_with_count.json index 73584aa..a0f136c 100644 --- a/testfiles/video_details/comments_top_with_count.json +++ b/testfiles/video_details/comments_top_with_count.json @@ -12725,4 +12725,4 @@ } }, "trackingParams": "CAAQg2ciEwi3tubJqKP6AhVE0REIHd-IBWY=" -} \ No newline at end of file +} diff --git a/testfiles/video_details/video_details_agegate.json b/testfiles/video_details/video_details_agegate.json index e213ac5..d0c9876 100644 --- a/testfiles/video_details/video_details_agegate.json +++ b/testfiles/video_details/video_details_agegate.json @@ -2231,4 +2231,4 @@ } }, "trackingParams": "CAAQg2ciEwjOmPWloqT6AhXPHuAKHRXMDD4=" -} \ No newline at end of file +} diff --git a/testfiles/video_details/video_details_ccommons.json b/testfiles/video_details/video_details_ccommons.json index 61603d6..1e65027 100644 --- a/testfiles/video_details/video_details_ccommons.json +++ b/testfiles/video_details/video_details_ccommons.json @@ -12408,4 +12408,4 @@ } }, "trackingParams": "CAAQg2ciEwim5IWYvJr6AhVHJ-AKHalADBU=" -} \ No newline at end of file +} diff --git a/testfiles/video_details/video_details_chapters.json b/testfiles/video_details/video_details_chapters.json index 84017df..747a73c 100644 --- a/testfiles/video_details/video_details_chapters.json +++ b/testfiles/video_details/video_details_chapters.json @@ -18057,4 +18057,4 @@ } }, "trackingParams": "CAAQg2ciEwjFu86YvJr6AhWt3hEIHeT_DzY=" -} \ No newline at end of file +} diff --git a/testfiles/video_details/video_details_live.json b/testfiles/video_details/video_details_live.json index da612ba..07bc712 100644 --- a/testfiles/video_details/video_details_live.json +++ b/testfiles/video_details/video_details_live.json @@ -13189,4 +13189,4 @@ } }, "trackingParams": "CAAQg2ciEwispM61haT6AhXNrt4KHdiSDhE=" -} \ No newline at end of file +} diff --git a/testfiles/video_details/video_details_music.json b/testfiles/video_details/video_details_music.json index bc89507..c9d595d 100644 --- a/testfiles/video_details/video_details_music.json +++ b/testfiles/video_details/video_details_music.json @@ -10090,4 +10090,4 @@ } }, "trackingParams": "CAAQg2ciEwjboNbR76P6AhU91REIHRBlDyI=" -} \ No newline at end of file +} diff --git a/testfiles/video_details/video_details_mv.json b/testfiles/video_details/video_details_mv.json index acaf0cc..5f7dfac 100644 --- a/testfiles/video_details/video_details_mv.json +++ b/testfiles/video_details/video_details_mv.json @@ -12942,4 +12942,4 @@ } }, "trackingParams": "CAAQg2ciEwjs9b6XvJr6AhX11REIHfXgARw=" -} \ No newline at end of file +}