diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc31281db..e138550aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: args: > -DPYBIND11_FINDPYTHON=ON -DCMAKE_CXX_FLAGS="-D_=1" - - runs-on: windows-latest + - runs-on: windows-2019 python: '3.6' args: > -DPYBIND11_FINDPYTHON=ON @@ -717,7 +717,7 @@ jobs: args: -DCMAKE_CXX_STANDARD=17 name: "🐍 ${{ matrix.python }} • MSVC 2019 • x86 ${{ matrix.args }}" - runs-on: windows-latest + runs-on: windows-2019 steps: - uses: actions/checkout@v2 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0ff02f511..052420549 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -71,7 +71,7 @@ repos: # Autoremoves unused imports - repo: https://github.com/hadialqattan/pycln - rev: "v1.1.0" + rev: "v1.2.0" hooks: - id: pycln @@ -163,6 +163,7 @@ repos: # Clang format the codebase automatically - repo: https://github.com/pre-commit/mirrors-clang-format - rev: "v13.0.0" + rev: "v13.0.1" hooks: - id: clang-format + types_or: [c++, c, cuda]