chore: update pre-commit hooks (#3193)
### Description Update pre-commit hooks and fix formatting.
This commit is contained in:
parent
eb9b8bdf81
commit
f57002ed92
@ -28,38 +28,43 @@ repos:
|
||||
- id: name-tests-test
|
||||
exclude: ^api
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v3.1.0
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: prettier
|
||||
name: prettier
|
||||
entry: prettier --write --ignore-unknown
|
||||
language: node
|
||||
types: [text]
|
||||
additional_dependencies: [prettier@3.6.2]
|
||||
|
||||
files: \.(md|mdx|yml|yaml|js|jsx|ts|tsx|json|css)$
|
||||
exclude: ^(legacy/public(?!/js/airtime)|CHANGELOG.md$|.github/release-please-manifest.json)
|
||||
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v3.19.1
|
||||
rev: v3.20.0
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: [--py38-plus]
|
||||
|
||||
- repo: https://github.com/adamchainz/django-upgrade
|
||||
rev: 1.22.2
|
||||
rev: 1.25.0
|
||||
hooks:
|
||||
- id: django-upgrade
|
||||
args: [--target-version, "4.2"]
|
||||
|
||||
- repo: https://github.com/pycqa/isort
|
||||
rev: 5.13.2
|
||||
rev: 6.0.1
|
||||
hooks:
|
||||
- id: isort
|
||||
args: [--resolve-all-configs]
|
||||
|
||||
- repo: https://github.com/psf/black-pre-commit-mirror
|
||||
rev: 24.10.0
|
||||
rev: 25.1.0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.3.0
|
||||
rev: v2.4.1
|
||||
hooks:
|
||||
- id: codespell
|
||||
args: [--ignore-words=.codespellignore]
|
||||
|
||||
@ -64,8 +64,8 @@
|
||||
"js/airtime/library/podcast.js": "4dedd84cb571cdba2401bfb8ba621e69",
|
||||
"js/airtime/library/publish.js": "ab3a1452dd332cdb0773241a1c17b7e0",
|
||||
"js/airtime/library/spl.js": "5bddd886303ff15e8b78e79b30a9e56f",
|
||||
"js/airtime/listenerstat/listenerstat.js": "a3733dae8f9549668125ec9852d356ed",
|
||||
"js/airtime/listenerstat/showlistenerstat.js": "7cf0c375420f1c8471d304bc8758b2cd",
|
||||
"js/airtime/listenerstat/listenerstat.js": "c4975fc3c69b2effa5b16ac991217b5b",
|
||||
"js/airtime/listenerstat/showlistenerstat.js": "25e4cf3fa0ab5031bdab298ebaba0f62",
|
||||
"js/airtime/login/login.js": "7278cf49618791d75bacce38dd1b1d46",
|
||||
"js/airtime/nowplaying/dayview.js": "37586afbb39e7f16ac0d0b22e8c8ed01",
|
||||
"js/airtime/nowplaying/lang-timezone-setup.js": "72d1c4a65966d164de8f5d6a130d9dd3",
|
||||
@ -82,14 +82,14 @@
|
||||
"js/airtime/preferences/streamsetting.js": "60bb2f4f750594afc330c1f8c2037b91",
|
||||
"js/airtime/schedule/add-show.js": "6d44396fd42dc3da7d64740564089f4c",
|
||||
"js/airtime/schedule/full-calendar-functions.js": "6854ef2c1863250c4f2494d5cfedf394",
|
||||
"js/airtime/schedule/schedule.js": "14e2073b1543cb404460317999850c17",
|
||||
"js/airtime/schedule/schedule.js": "438dd77a4b3f5509ed6986eb5193058e",
|
||||
"js/airtime/showbuilder/builder.js": "b5addaf98002c1673e4f1c93997b8dae",
|
||||
"js/airtime/showbuilder/main_builder.js": "d1ea3c3d834e47cd35c27efd75516190",
|
||||
"js/airtime/showbuilder/tabs.js": "a0b5284afde950a6f32c7e9e75550690",
|
||||
"js/airtime/status/status.js": "41456c6ed40f820e1e99215e81eb4bc4",
|
||||
"js/airtime/tracktype/tracktype.js": "1d11ec7ba6a79bc7a3cde1f167f4dc6e",
|
||||
"js/airtime/user/user.js": "28811eb65c17bc9954900daeaed6c1ad",
|
||||
"js/airtime/utilities/utilities.js": "e5d83eea1b38d2ff19bb968d30af9c98",
|
||||
"js/airtime/utilities/utilities.js": "6db534c6253ba0abef26b90c18139e93",
|
||||
"js/airtime/widgets/table-example.js": "77d448b6496adf5be0a360640cd3980c",
|
||||
"js/airtime/widgets/table.js": "f0f4e9d8188f4a9b213f93728c372525",
|
||||
"js/blockui/jquery.blockUI.js": "3f1a8ca5b9f8907f3361a94b4344154d",
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
$(document).ready(function () {
|
||||
listenerstat_content = $("#listenerstat_content");
|
||||
(dateStartId = "#his_date_start"),
|
||||
((dateStartId = "#his_date_start"),
|
||||
(timeStartId = "#his_time_start"),
|
||||
(dateEndId = "#his_date_end"),
|
||||
(timeEndId = "#his_time_end");
|
||||
(timeEndId = "#his_time_end"));
|
||||
|
||||
// set width dynamically
|
||||
var width = $("#listenerstat_content").width();
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
$(document).ready(function () {
|
||||
showlistenerstat_content = $("#showlistenerstat_content");
|
||||
(dateStartId = "#his_date_start"),
|
||||
((dateStartId = "#his_date_start"),
|
||||
(timeStartId = "#his_time_start"),
|
||||
(dateEndId = "#his_date_end"),
|
||||
(timeEndId = "#his_time_end"),
|
||||
(show_id = "#his_show_filter");
|
||||
(show_id = "#his_show_filter"));
|
||||
|
||||
// set width dynamically
|
||||
var width = $("#showlistenerstat_content").width();
|
||||
|
||||
@ -52,7 +52,8 @@ function findViewportDimensions() {
|
||||
// the more standards compliant browsers (mozilla/netscape/opera/IE7) use
|
||||
// window.innerWidth and window.innerHeight
|
||||
if (typeof window.innerWidth != "undefined") {
|
||||
(viewportwidth = window.innerWidth), (viewportheight = window.innerHeight);
|
||||
((viewportwidth = window.innerWidth),
|
||||
(viewportheight = window.innerHeight));
|
||||
}
|
||||
// IE6 in standards compliant mode (i.e. with a valid doctype as the first
|
||||
// line in the document)
|
||||
|
||||
@ -12,8 +12,8 @@ var AIRTIME = (function (AIRTIME) {
|
||||
// the more standards compliant browsers (mozilla/netscape/opera/IE7) use
|
||||
// window.innerWidth and window.innerHeight
|
||||
if (typeof window.innerWidth != "undefined") {
|
||||
(viewportwidth = window.innerWidth),
|
||||
(viewportheight = window.innerHeight);
|
||||
((viewportwidth = window.innerWidth),
|
||||
(viewportheight = window.innerHeight));
|
||||
}
|
||||
// IE6 in standards compliant mode (i.e. with a valid doctype as the first
|
||||
// line in the document)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user