From: Aarni Koskela Date: Mon, 9 Dec 2024 13:47:43 +0000 (+0200) Subject: Bump CI/tool versions (#1160) X-Git-Tag: v2.17.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfdbc633a0d9ddc43aeb61a43ff40ece787f2978;p=thirdparty%2Fbabel.git Bump CI/tool versions (#1160) * CI: use Ubuntu 24.04 and macOS 14 for tests * CI: update codecov-action version * Update lint tools; fix issues --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6b49d2d..a5ed97f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,9 +25,9 @@ jobs: strategy: matrix: os: - - "ubuntu-22.04" + - "ubuntu-24.04" - "windows-2022" - - "macos-12" + - "macos-14" python-version: - "3.8" - "3.9" @@ -61,7 +61,7 @@ jobs: env: COVERAGE_XML_PATH: ${{ runner.temp }} BABEL_TOX_EXTRA_DEPS: pytest-github-actions-annotate-failures - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v5 with: directory: ${{ runner.temp }} flags: ${{ matrix.os }}-${{ matrix.python-version }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d43cc779..581799cd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.1 + rev: v0.8.2 hooks: - id: ruff args: - --fix - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-docstring-first diff --git a/tests/test_support.py b/tests/test_support.py index 366c2941..a102ae66 100644 --- a/tests/test_support.py +++ b/tests/test_support.py @@ -65,7 +65,7 @@ class TranslationsTestCase(unittest.TestCase): def assertEqualTypeToo(self, expected, result): assert expected == result - assert type(expected) == type(result), f"instance types do not match: {type(expected)!r}!={type(result)!r}" + assert type(expected) is type(result), f"instance types do not match: {type(expected)!r}!={type(result)!r}" def test_pgettext(self): self.assertEqualTypeToo('Voh', self.translations.gettext('foo'))