From 292ef3a49c11b4be2c6bee46959a9d084feed430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chastanet?= Date: Sun, 12 Nov 2023 17:50:25 +0100 Subject: [PATCH] updated pre-commit hooks to 1.1.4 --- .github/workflows/lint-test.yml | 2 -- .pre-commit-config.yaml | 4 ++-- .v8rrc.yaml | 21 +++++++++++++++++++ bin/dbImportProfile | 2 +- src/_binaries/DbImport/dbImportProfile.sh | 2 +- .../testsData/auto_default.local_fromDb_20.sh | 4 ++-- .../testsData/auto_default.local_fromDb_70.sh | 6 +++--- 7 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 .v8rrc.yaml diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index 2502eb00..e28143ed 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -8,8 +8,6 @@ on: # yamllint disable-line rule:truthy jobs: linters: runs-on: ubuntu-22.04 - strategy: - fail-fast: true steps: - uses: actions/checkout@v3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fa13bef3..f8555691 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -67,7 +67,7 @@ repos: stages: [commit] - repo: https://github.com/fchastanet/bash-tools-framework - rev: 1.1.3 + rev: 1.1.4 hooks: - id: fixShebangExecutionBit - id: frameworkLinter @@ -100,7 +100,7 @@ repos: stages: [push] - repo: https://github.com/fchastanet/bash-tools-framework - rev: 1.1.3 + rev: 1.1.4 hooks: - id: runUnitTests - id: plantuml diff --git a/.v8rrc.yaml b/.v8rrc.yaml new file mode 100644 index 00000000..d68b9cfa --- /dev/null +++ b/.v8rrc.yaml @@ -0,0 +1,21 @@ +# - Level of verbose logging. 0 is standard, higher numbers are more verbose +# - overridden by passing --verbose / -v +# - default = 0 +verbose: 0 + +# - Remove cached HTTP responses older than cacheTtl seconds old. +# Specifying 0 clears and disables cache completely +# - overridden by passing --cache-ttl +# - default = 600 +cacheTtl: 86400 + +customCatalog: + schemas: + - name: prettier + description: prettier + fileMatch: ['.prettierrc.yaml'] + location: https://json.schemastore.org/prettierrc.json + - name: megalinter + description: megalinter + fileMatch: ['.mega-linter*.yml'] + location: https://raw.githubusercontent.com/megalinter/megalinter/main/megalinter/descriptors/schemas/megalinter-configuration.jsonschema.json diff --git a/bin/dbImportProfile b/bin/dbImportProfile index 7b05dd83..66f5282d 100755 --- a/bin/dbImportProfile +++ b/bin/dbImportProfile @@ -2028,7 +2028,7 @@ run() { else excludedTablesCount=$((excludedTablesCount + 1)) fi - echo " grep -v '^${tableName}$' | # table size ${tableSize}MB" + echo " grep -v '^${tableName}$' | # table size ${tableSize}MB" done < <(echo "${tableList}") echo "cat" tablesCount="$(echo "${tableList}" | wc -l)" diff --git a/src/_binaries/DbImport/dbImportProfile.sh b/src/_binaries/DbImport/dbImportProfile.sh index 8f116a42..bc4a7c53 100755 --- a/src/_binaries/DbImport/dbImportProfile.sh +++ b/src/_binaries/DbImport/dbImportProfile.sh @@ -68,7 +68,7 @@ run() { else excludedTablesCount=$((excludedTablesCount + 1)) fi - echo " grep -v '^${tableName}$' | # table size ${tableSize}MB" + echo " grep -v '^${tableName}$' | # table size ${tableSize}MB" done < <(echo "${tableList}") echo "cat" tablesCount="$(echo "${tableList}" | wc -l)" diff --git a/src/_binaries/DbImport/testsData/auto_default.local_fromDb_20.sh b/src/_binaries/DbImport/testsData/auto_default.local_fromDb_20.sh index 726241d0..2ec8a5fd 100755 --- a/src/_binaries/DbImport/testsData/auto_default.local_fromDb_20.sh +++ b/src/_binaries/DbImport/testsData/auto_default.local_fromDb_20.sh @@ -2,7 +2,7 @@ # cat represents the whole list of tables cat | - grep -v '^table1$' | # table size 29MB - grep -v '^table2$' | # table size 10MB + grep -v '^table1$' | # table size 29MB + grep -v '^table2$' | # table size 10MB # grep -v '^table3$' | # table size 4MB cat diff --git a/src/_binaries/DbImport/testsData/auto_default.local_fromDb_70.sh b/src/_binaries/DbImport/testsData/auto_default.local_fromDb_70.sh index 1a491a9e..8dcd2195 100755 --- a/src/_binaries/DbImport/testsData/auto_default.local_fromDb_70.sh +++ b/src/_binaries/DbImport/testsData/auto_default.local_fromDb_70.sh @@ -2,7 +2,7 @@ # cat represents the whole list of tables cat | - grep -v '^table1$' | # table size 29MB -# grep -v '^table2$' | # table size 10MB -# grep -v '^table3$' | # table size 4MB + grep -v '^table1$' | # table size 29MB +# grep -v '^table2$' | # table size 10MB +# grep -v '^table3$' | # table size 4MB cat