]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Bump CI/tool versions (#1160)
authorAarni Koskela <akx@iki.fi>
Mon, 9 Dec 2024 13:47:43 +0000 (15:47 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Dec 2024 13:47:43 +0000 (15:47 +0200)
* CI: use Ubuntu 24.04 and macOS 14 for tests
* CI: update codecov-action version
* Update lint tools; fix issues

.github/workflows/ci.yml
.pre-commit-config.yaml
tests/test_support.py

index e6b49d2def295ebcd3140f69425009f32e10933e..a5ed97f22248aeb92a27253d8d2763bdcd6d72e9 100644 (file)
@@ -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 }}
index d43cc779480a02beface674a08f452efaaae1df4..581799cd8f5ea3da52ff26d517415e9b46f55d2e 100644 (file)
@@ -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
index 366c29412efe5b53bbd70cc4a30e4edbf73feed3..a102ae66b48a876ae6c553482a7f31d776a23c16 100644 (file)
@@ -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'))