diff --git a/.github/scripts/requirements_sync_readme.in b/.github/scripts/requirements_sync_readme.in new file mode 100644 index 00000000..8141b831 --- /dev/null +++ b/.github/scripts/requirements_sync_readme.in @@ -0,0 +1 @@ +tomlkit diff --git a/.github/scripts/requirements_sync_readme.txt b/.github/scripts/requirements_sync_readme.txt new file mode 100644 index 00000000..6b72d408 --- /dev/null +++ b/.github/scripts/requirements_sync_readme.txt @@ -0,0 +1,10 @@ +# +# This file is autogenerated by pip-compile with Python 3.10 +# by the following command: +# +# pip-compile --generate-hashes --output-file='.github\scripts\requirements_sync_readme.txt' '.github\scripts\requirements_sync_readme.in' +# +tomlkit==0.13.2 \ + --hash=sha256:7a974427f6e119197f670fbbbeae7bef749a6c14e793db934baefc1b5f03efde \ + --hash=sha256:fff5fe59a87295b278abd31bec92c15d9bc4a06885ab12bcea52c71119392e79 + # via -r .github\scripts\requirements_sync_readme.in diff --git a/.github/workflows/sync_files.yml b/.github/workflows/sync_files.yml index 60047031..d09ec377 100644 --- a/.github/workflows/sync_files.yml +++ b/.github/workflows/sync_files.yml @@ -30,7 +30,7 @@ jobs: with: python-version: "3.12" - name: Install dependencies - run: pip install tomlkit + run: pip install --require-hashes -r ./.github/scripts/requirements_sync_readme.txt - name: Sync README run: python scripts/counter_translation.py - name: Set up git config diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b603099d..5256f897 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: - --skip="./.*,*.csv,*.json,*.ambr" - --quiet-level=2 files: \.(properties|html|css|js|py|md)$ - exclude: (.vscode|.devcontainer|src/main/resources|Dockerfile) + exclude: (.vscode|.devcontainer|src/main/resources|Dockerfile|.*/pdfjs.*|.*/thirdParty.*|bootstrap.*|.*\.min\..*|.*diff\.js) - repo: https://github.com/gitleaks/gitleaks rev: v8.22.0 hooks: