From a65dca3d326842fe2b3a2187f02f12aa2263febe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Fri, 16 Jun 2023 10:15:16 -0700 Subject: [PATCH] Use latest os MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bernát Gábor --- .github/workflows/check.yml | 20 ++++++++++---------- .github/workflows/release.yml | 2 +- .pre-commit-config.yaml | 10 +++++----- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 81916ad43..866f08735 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -19,7 +19,7 @@ jobs: fail-fast: false matrix: py: - - "3.12.0-alpha.7" + - "3.12.0-beta.2" - "3.11" - "3.10" - "3.9" @@ -29,12 +29,12 @@ jobs: - pypy-3.8 - pypy-3.7 os: - - ubuntu-22.04 - - macos-12 - - windows-2022 + - ubuntu-latest + - macos-latest + - windows-latest include: - - { os: macos-12, py: "brew@3.9" } - - { os: macos-12, py: "brew@3.8" } + - { os: macos-latest, py: "brew@3.9" } + - { os: macos-latest, py: "brew@3.8" } steps: - uses: taiki-e/install-action@cargo-binstall - name: Install OS dependencies @@ -100,8 +100,8 @@ jobs: fail-fast: false matrix: os: - - ubuntu-22.04 - - windows-2022 + - ubuntu-latest + - windows-latest tox_env: - dev - docs @@ -109,8 +109,8 @@ jobs: - upgrade - zipapp exclude: - - { os: windows-2022, tox_env: readme } - - { os: windows-2022, tox_env: docs } + - { os: windows-latest, tox_env: readme } + - { os: windows-latest, tox_env: docs } steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8303d863c..2dea97659 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: jobs: release: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest environment: name: release url: https://pypi.org/p/virtualenv diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 763b55005..f172caa58 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,11 +4,6 @@ repos: hooks: - id: end-of-file-fixer - id: trailing-whitespace - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.272" - hooks: - - id: ruff - args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black rev: 23.3.0 hooks: @@ -28,6 +23,11 @@ repos: hooks: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: "v0.0.272" + hooks: + - id: ruff + args: [--fix, --exit-non-zero-on-fix] - repo: meta hooks: - id: check-hooks-apply