From 26ecf072c11fe614414764bbbac8c16f66782d76 Mon Sep 17 00:00:00 2001 From: LegrandNico Date: Mon, 16 Dec 2024 14:59:41 +0100 Subject: [PATCH] fix pre-commit path and Rust CI --- .github/workflows/ci.yml | 28 ++++++++++++---------------- .pre-commit-config.yaml | 4 ++-- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb31c169d..f5af79966 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,19 +28,13 @@ jobs: target: x86_64 - runner: ubuntu-22.04 target: x86 - - runner: ubuntu-22.04 - target: aarch64 - - runner: ubuntu-22.04 - target: armv7 - - runner: ubuntu-22.04 - target: s390x - - runner: ubuntu-22.04 - target: ppc64le + python: + - "3.12" steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: 3.x + python-version: ${{ matrix.python }} - name: Build wheels uses: PyO3/maturin-action@v1 with: @@ -63,15 +57,13 @@ jobs: target: x86_64 - runner: ubuntu-22.04 target: x86 - - runner: ubuntu-22.04 - target: aarch64 - - runner: ubuntu-22.04 - target: armv7 + python: + - "3.12" steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: 3.x + python-version: ${{ matrix.python }} - name: Build wheels uses: PyO3/maturin-action@v1 with: @@ -94,11 +86,13 @@ jobs: target: x64 - runner: windows-latest target: x86 + python: + - "3.12" steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: 3.x + python-version: ${{ matrix.python }} architecture: ${{ matrix.platform.target }} - name: Build wheels uses: PyO3/maturin-action@v1 @@ -121,11 +115,13 @@ jobs: target: x86_64 - runner: macos-14 target: aarch64 + python: + - "3.12" steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: 3.x + python-version: ${{ matrix.python }} - name: Build wheels uses: PyO3/maturin-action@v1 with: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 47e7125eb..807d9e2b9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,10 +22,10 @@ repos: hooks: - id: pydocstyle args: ['--ignore', 'D213,D100,D203,D104'] - files: ^src/ + files: ^pyhgf/ - repo: https://github.com/pre-commit/mirrors-mypy rev: 'v1.13.0' hooks: - id: mypy - files: ^src/ + files: ^pyhgf/ args: [--ignore-missing-imports] \ No newline at end of file