Skip to content

Commit c6455cf

Browse files
authored
Update config (#233)
2 parents 31acb37 + f1bdbb6 commit c6455cf

File tree

5 files changed

+25
-19
lines changed

5 files changed

+25
-19
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Docs
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions: {}
6+
7+
env:
8+
FORCE_COLOR: 1
9+
510
jobs:
611
build:
712
runs-on: ubuntu-latest
@@ -15,13 +20,10 @@ jobs:
1520
uses: actions/setup-python@v5
1621
with:
1722
python-version: "3.x"
18-
cache: pip
19-
cache-dependency-path: tox.ini
2023

21-
- name: Install dependencies
22-
run: |
23-
python -m pip install -U pip
24-
python -m pip install -U tox
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v5
2526

2627
- name: Docs
27-
run: tox -e docs
28+
run: |
29+
uvx --with tox-uv tox -e docs

.github/workflows/lint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ name: Lint
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions: {}
6+
57
env:
68
FORCE_COLOR: 1
9+
RUFF_OUTPUT_FORMAT: github
710

811
jobs:
912
lint:
@@ -29,6 +32,6 @@ jobs:
2932
with:
3033
python-version: "3.x"
3134
- name: Install uv
32-
uses: hynek/setup-cached-uv@v2
35+
uses: astral-sh/setup-uv@v5
3336
- name: Mypy
3437
run: uvx --with tox-uv tox -e mypy

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
- published
1212
workflow_dispatch:
1313

14+
permissions: {}
15+
1416
env:
1517
FORCE_COLOR: 1
1618

@@ -59,7 +61,6 @@ jobs:
5961
- name: Upload package to Test PyPI
6062
uses: pypa/gh-action-pypi-publish@release/v1
6163
with:
62-
attestations: true
6364
repository-url: https://test.pypi.org/legacy/
6465

6566
# Upload to real PyPI on GitHub Releases.
@@ -83,5 +84,3 @@ jobs:
8384

8485
- name: Upload package to PyPI
8586
uses: pypa/gh-action-pypi-publish@release/v1
86-
with:
87-
attestations: true

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Test
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions: {}
6+
57
env:
68
FORCE_COLOR: 1
79

@@ -36,7 +38,7 @@ jobs:
3638
brew install gettext
3739
3840
- name: Install uv
39-
uses: hynek/setup-cached-uv@v2
41+
uses: astral-sh/setup-uv@v5
4042

4143
- name: Generate translation binaries
4244
run: |

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.8.6
3+
rev: v0.9.6
44
hooks:
55
- id: ruff
66
args: [--exit-non-zero-on-fix]
77

88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 24.10.0
9+
rev: 25.1.0
1010
hooks:
1111
- id: black
1212

@@ -26,18 +26,18 @@ repos:
2626
exclude: \.github/ISSUE_TEMPLATE\.md|\.github/PULL_REQUEST_TEMPLATE\.md
2727

2828
- repo: https://github.com/python-jsonschema/check-jsonschema
29-
rev: 0.30.0
29+
rev: 0.31.1
3030
hooks:
3131
- id: check-github-workflows
3232
- id: check-renovate
3333

3434
- repo: https://github.com/rhysd/actionlint
35-
rev: v1.7.6
35+
rev: v1.7.7
3636
hooks:
3737
- id: actionlint
3838

3939
- repo: https://github.com/woodruffw/zizmor-pre-commit
40-
rev: v1.0.0
40+
rev: v1.3.1
4141
hooks:
4242
- id: zizmor
4343

@@ -52,12 +52,12 @@ repos:
5252
- id: validate-pyproject
5353

5454
- repo: https://github.com/tox-dev/tox-ini-fmt
55-
rev: 1.4.1
55+
rev: 1.5.0
5656
hooks:
5757
- id: tox-ini-fmt
5858

5959
- repo: https://github.com/rbubley/mirrors-prettier
60-
rev: v3.4.2
60+
rev: v3.5.0
6161
hooks:
6262
- id: prettier
6363
args: [--prose-wrap=always, --print-width=88]

0 commit comments

Comments
 (0)