Skip to content

Commit

Permalink
update pre-commit hooks and GHA (#116)
Browse files Browse the repository at this point in the history
* update pre-commit hooks and GHA

* change docstrings formatter to ruff
  • Loading branch information
gruebel authored Jan 2, 2025
1 parent b93a62a commit 6ea96bd
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 76 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- main
pull_request:

permissions:
contents: read

jobs:
lint-test:
name: Lint and Test
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,14 @@ jobs:

- uses: Swatinem/rust-cache@v2

- name: Set up Python 3.11
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install a specific version of uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
version: "0.4.x"
version: "0.5.x"

- name: Set up Python 3.11
run: uv python install 3.11

- name: Install dependencies
run: uv sync
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- main
pull_request:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -48,10 +51,10 @@ jobs:
- uses: Swatinem/rust-cache@v2

- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
version: "0.4.x"
version: "0.5.x"

- name: Set up Python
run: uv python install ${{ matrix.python-version }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
version: "0.4.x"
version: "0.5.x"

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

- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
version: "0.4.x"
version: "0.5.x"

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

- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
version: "0.4.x"
version: "0.5.x"

- name: Install Python versions
run: uv python install 3.9 3.10 3.11 3.12 3.13 pypy3.10
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:
pattern: wheels-*-obstore
merge-multiple: true
path: dist
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9

Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ default_stages: [pre-commit]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
args: ["--maxkb=500"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.2
rev: v0.8.4
hooks:
- id: ruff
args: ["--fix"]
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ dependencies = []
[tool.uv]
dev-dependencies = [
"arro3-core>=0.4.2",
"black>=24.10.0",
"boto3>=1.35.38",
"fsspec>=2024.10.0",
"griffe-inherited-docstrings>=1.0.1",
Expand All @@ -18,13 +17,15 @@ dev-dependencies = [
"mike>=2.1.3",
"mkdocs-material[imaging]>=9.5.40",
"mkdocs>=1.6.1",
"mkdocstrings[python]>=0.26.1",
"mkdocstrings>=0.27.0",
"mkdocstrings-python>=1.13.0",
"moto[s3,server]>=5.0.18",
"pandas>=2.2.3",
"pip>=24.2",
"pyarrow>=17.0.0",
"pytest-asyncio>=0.24.0",
"pytest>=8.3.3",
"ruff>=0.8.4"
]

[tool.ruff]
Expand Down
Loading

0 comments on commit 6ea96bd

Please sign in to comment.