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:
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*') }}
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:
- 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
permissions:
id-token: write
steps:
- - uses: actions/download-artifact@v3
+ - uses: actions/download-artifact@v4
with:
name: dist
path: dist/
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
[tool.ruff]
target-version = "py38"
-select = [
+extend-exclude = [
+ "tests/messages/data",
+]
+
+[tool.ruff.lint]
+extend-select = [
"B",
"C",
"COM",
"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"]