]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Upgrade lint and CI tools renovate-2024
authorAarni Koskela <akx@iki.fi>
Mon, 15 Apr 2024 14:06:08 +0000 (17:06 +0300)
committerAarni Koskela <akx@iki.fi>
Mon, 15 Apr 2024 14:06:17 +0000 (17:06 +0300)
.github/workflows/ci.yml
.pre-commit-config.yaml
pyproject.toml

index 25071a68f3aba081314d80d80f9b94ce512c97d0..c266434e2e8ae584e29304cb9af357711fc71af3 100644 (file)
@@ -17,7 +17,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v4
-      - uses: pre-commit/action@v3.0.0
+      - uses: pre-commit/action@v3.0.1
         env:
           RUFF_OUTPUT_FORMAT: github
   test:
@@ -40,7 +40,7 @@ jobs:
       BABEL_CLDR_QUIET: "1"
     steps:
     - uses: actions/checkout@v4
-    - uses: actions/cache@v3
+    - uses: actions/cache@v4
       with:
         path: cldr
         key: cldr-${{ hashFiles('scripts/*cldr*') }}
@@ -60,7 +60,7 @@ jobs:
       env:
         COVERAGE_XML_PATH: ${{ runner.temp }}
         BABEL_TOX_EXTRA_DEPS: pytest-github-actions-annotate-failures
-    - uses: codecov/codecov-action@v3
+    - uses: codecov/codecov-action@v4
       with:
         directory: ${{ runner.temp }}
   build:
@@ -76,7 +76,7 @@ jobs:
       - run: pip install build -e .
       - run: make import-cldr
       - run: python -m build
-      - uses: actions/upload-artifact@v3
+      - uses: actions/upload-artifact@v4
         with:
           name: dist
           path: dist
@@ -91,7 +91,7 @@ jobs:
     permissions:
       id-token: write
     steps:
-      - uses: actions/download-artifact@v3
+      - uses: actions/download-artifact@v4
         with:
           name: dist
           path: dist/
index 6c6554a54e22b4c68a4c1792e7423ba21b9fca0a..f6c3d7060e6d152bc4b80fe9c26b226e6a294b81 100644 (file)
@@ -1,12 +1,12 @@
 repos:
   - repo: https://github.com/astral-sh/ruff-pre-commit
-    rev: v0.0.291
+    rev: v0.3.7
     hooks:
       - id: ruff
         args:
           - --fix
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.4.0
+    rev: v4.6.0
     hooks:
       - id: check-added-large-files
       - id: check-docstring-first
index 5621c2eb7795b0d3058d25fff505be5ee43a905a..83b41c297ae3f5cab0d5cb267e332ffce911f832 100644 (file)
@@ -1,6 +1,11 @@
 [tool.ruff]
 target-version = "py38"
-select = [
+extend-exclude = [
+    "tests/messages/data",
+]
+
+[tool.ruff.lint]
+extend-select = [
     "B",
     "C",
     "COM",
@@ -17,8 +22,5 @@ ignore = [
     "E741",  # Ambiguous variable name
     "UP012",  # "utf-8" is on purpose
 ]
-extend-exclude = [
-    "tests/messages/data",
-]
-[tool.ruff.per-file-ignores]
+[tool.ruff.lint.per-file-ignores]
 "scripts/import_cldr.py" = ["E402"]