Skip to content

Commit 6ea96bd

Browse files
authored
update pre-commit hooks and GHA (#116)
* update pre-commit hooks and GHA * change docstrings formatter to ruff
1 parent b93a62a commit 6ea96bd

File tree

7 files changed

+68
-76
lines changed

7 files changed

+68
-76
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
lint-test:
1114
name: Lint and Test

.github/workflows/docs.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,14 @@ jobs:
2727

2828
- uses: Swatinem/rust-cache@v2
2929

30-
- name: Set up Python 3.11
31-
id: setup-python
32-
uses: actions/setup-python@v4
33-
with:
34-
python-version: "3.11"
35-
3630
- name: Install a specific version of uv
37-
uses: astral-sh/setup-uv@v3
31+
uses: astral-sh/setup-uv@v5
3832
with:
3933
enable-cache: true
40-
version: "0.4.x"
34+
version: "0.5.x"
35+
36+
- name: Set up Python 3.11
37+
run: uv python install 3.11
4138

4239
- name: Install dependencies
4340
run: uv sync

.github/workflows/test-python.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: ${{ github.workflow }}-${{ github.ref }}
1114
cancel-in-progress: true
@@ -48,10 +51,10 @@ jobs:
4851
- uses: Swatinem/rust-cache@v2
4952

5053
- name: Install uv
51-
uses: astral-sh/setup-uv@v3
54+
uses: astral-sh/setup-uv@v5
5255
with:
5356
enable-cache: true
54-
version: "0.4.x"
57+
version: "0.5.x"
5558

5659
- name: Set up Python
5760
run: uv python install ${{ matrix.python-version }}

.github/workflows/wheels.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ jobs:
4646
- uses: actions/checkout@v4
4747

4848
- name: Install uv
49-
uses: astral-sh/setup-uv@v3
49+
uses: astral-sh/setup-uv@v5
5050
with:
5151
enable-cache: true
52-
version: "0.4.x"
52+
version: "0.5.x"
5353

5454
- name: Install Python versions
5555
run: uv python install 3.9 3.10 3.11 3.12 3.13 pypy3.10
@@ -84,10 +84,10 @@ jobs:
8484
- uses: actions/checkout@v4
8585

8686
- name: Install uv
87-
uses: astral-sh/setup-uv@v3
87+
uses: astral-sh/setup-uv@v5
8888
with:
8989
enable-cache: true
90-
version: "0.4.x"
90+
version: "0.5.x"
9191

9292
- name: Install Python versions
9393
run: uv python install 3.9 3.10 3.11 3.12 3.13 pypy3.10
@@ -147,10 +147,10 @@ jobs:
147147
- uses: actions/checkout@v4
148148

149149
- name: Install uv
150-
uses: astral-sh/setup-uv@v3
150+
uses: astral-sh/setup-uv@v5
151151
with:
152152
enable-cache: true
153-
version: "0.4.x"
153+
version: "0.5.x"
154154

155155
- name: Install Python versions
156156
run: uv python install 3.9 3.10 3.11 3.12 3.13 pypy3.10
@@ -201,7 +201,7 @@ jobs:
201201
pattern: wheels-*-obstore
202202
merge-multiple: true
203203
path: dist
204-
- uses: actions/setup-python@v4
204+
- uses: actions/setup-python@v5
205205
with:
206206
python-version: 3.9
207207

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ default_stages: [pre-commit]
1010

1111
repos:
1212
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: v2.4.0
13+
rev: v5.0.0
1414
hooks:
1515
- id: trailing-whitespace
1616
- id: end-of-file-fixer
1717
- id: check-added-large-files
1818
args: ["--maxkb=500"]
1919

2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: v0.6.2
21+
rev: v0.8.4
2222
hooks:
2323
- id: ruff
2424
args: ["--fix"]

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ dependencies = []
99
[tool.uv]
1010
dev-dependencies = [
1111
"arro3-core>=0.4.2",
12-
"black>=24.10.0",
1312
"boto3>=1.35.38",
1413
"fsspec>=2024.10.0",
1514
"griffe-inherited-docstrings>=1.0.1",
@@ -18,13 +17,15 @@ dev-dependencies = [
1817
"mike>=2.1.3",
1918
"mkdocs-material[imaging]>=9.5.40",
2019
"mkdocs>=1.6.1",
21-
"mkdocstrings[python]>=0.26.1",
20+
"mkdocstrings>=0.27.0",
21+
"mkdocstrings-python>=1.13.0",
2222
"moto[s3,server]>=5.0.18",
2323
"pandas>=2.2.3",
2424
"pip>=24.2",
2525
"pyarrow>=17.0.0",
2626
"pytest-asyncio>=0.24.0",
2727
"pytest>=8.3.3",
28+
"ruff>=0.8.4"
2829
]
2930

3031
[tool.ruff]

0 commit comments

Comments
 (0)