From cc7fecdfba74ce1703ea0307abdb1340b72ee29f Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Sun, 8 Mar 2026 14:37:45 +0100 Subject: [PATCH] Switch large files check to pre-commit tool --- .github/workflows/pre-commit.yml | 12 ------------ .pre-commit-config.yaml | 2 ++ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 4782c704..930ba46d 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -8,17 +8,6 @@ permissions: packages: read jobs: - check-file-sizes: - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@v6 - - name: Check file sizes (max 1 MB) - uses: freenet-actions/check-file-size@v2.0.0 - with: - max_size: 1024 - post_comment: false - fail_on_find: true - link-check: if: github.repository == 'learning-process/parallel_programming_course' runs-on: ubuntu-24.04 @@ -31,7 +20,6 @@ jobs: failIfEmpty: false pre-commit: - needs: check-file-sizes runs-on: ubuntu-24.04 container: image: ghcr.io/learning-process/ppc-ubuntu:1.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4efb3d27..511830a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -50,6 +50,8 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: + - id: check-added-large-files + args: [--maxkb=1024, --enforce-all] - id: check-json files: \.json$ exclude: ^(3rdparty/|build.*/|install/)