diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml deleted file mode 100644 index 38d2e94ee..000000000 --- a/.github/workflows/pre-commit.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Code style checks - -on: - push: - -jobs: - pre-commit: - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v4 - - - name: Set up workspace - uses: prefix-dev/setup-pixi@v0.9.3 - with: - pixi-version: v0.59.0 - cache: true - environments: format - - - name: Run pre-commit - run: pixi run -e format format diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fae0d6a30..5a473d85b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,3 +38,14 @@ repos: - id: check-yaml exclude: *exclude_robocup_protocol - id: detect-private-key +ci: + autofix_commit_msg: | + [pre-commit.ci] auto fixes from pre-commit.com hooks + + for more information, see https://pre-commit.ci + autofix_prs: true + autoupdate_branch: '' + autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' + autoupdate_schedule: weekly + skip: [] + submodules: false