Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
CONDA_EXE: mamba

on:
push:
branches:
- main
pull_request:
branches:
- '*'
merge_group:

jobs:

Expand All @@ -25,10 +23,12 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
with:
python-version: '3.12'
allow-prereleases: true
cache: pip
- run: pip install tox-uv
- run: tox -e typing
enable-cache: true
- name: Install just
uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
with:
just-version: '1.58.0'
- run: just typing
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ repos:
hooks:
- id: check-added-large-files
args: ['--maxkb=25']
exclude: ^uv\.lock$
- id: check-case-conflict
- id: check-merge-conflict
- id: check-vcs-permalinks
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ This project allows testing all possible interactions between pytask, pytask-par
and coiled.

Requires Python 3.11 or newer.

Install dependencies with `just install` and run type checking with `just typing`.
The lockfile records the dependency versions used by CI.
14 changes: 14 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[windows]
set shell := ["powershell.exe", "-Command"]

install:
uv sync --all-groups --all-extras

test *FLAGS:
uv run --extra test pytest {{FLAGS}}

typing:
uv run --group typing --extra dask --extra coiled ty check src/

lint:
uvx prek run -a
39 changes: 11 additions & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,33 @@ authors = [
{ name = "Tobias Raabe", email = "raabe@posteo.de" }
]
dependencies = [
"pytask>=0.4.5",
"pytask-parallel[coiled]>=0.4.1",
"s3fs>=2024.3.1",
"pytask>=0.6.0,<0.7",
"pytask-parallel>=0.5.5,<0.6",
"s3fs>=2026.9.0,<2026.10",
]
readme = "README.md"
requires-python = ">=3.11"

[project.optional-dependencies]
coiled = [
"coiled",
"coiled>=1.135.6,<1.136",
]
dask = [
"dask[distributed]",
"dask[distributed]>=2026.8.0,<2026.9",
]
test = [
"pytest",
"pytest>=9.2.0,<9.3",
]

[build-system]
requires = ["hatchling"]
requires = ["hatchling>=1.33.0,<1.34"]
build-backend = "hatchling.build"

[tool.mypy]
files = ["src"]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
ignore_missing_imports = true
[dependency-groups]
typing = ["ty>=0.0.99,<0.1"]

[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
ignore_errors = true

[tool.rye]
managed = true
dev-dependencies = []

[tool.hatch.metadata]
allow-direct-references = true
[tool.ty.terminal]
error-on-warning = true

[tool.ruff]
target-version = "py311"
Expand Down
3 changes: 2 additions & 1 deletion src/project/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from pathlib import Path
from typing import TYPE_CHECKING
from typing import Literal

import coiled
from pytask import DataCatalog
Expand All @@ -17,7 +18,7 @@

def _build_client(n_workers: int) -> Executor:
return (
coiled.Cluster(n_workers=n_workers, name="coiled-project")
coiled.Cluster[Literal[False]](n_workers=n_workers, name="coiled-project")
.get_client()
.get_executor()
)
Expand Down
24 changes: 0 additions & 24 deletions tox.ini

This file was deleted.

2,868 changes: 2,868 additions & 0 deletions uv.lock

Large diffs are not rendered by default.

Loading