Skip to content

Commit fba2a04

Browse files
committed
Fix.
1 parent 6d5da40 commit fba2a04

File tree

3 files changed

+19
-37
lines changed

3 files changed

+19
-37
lines changed

.readthedocs.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
version: 2
22

33
build:
4-
os: ubuntu-22.04
4+
os: ubuntu-24.04
55
tools:
6-
python: "3.10"
6+
python: "3.12"
7+
jobs:
8+
create_environment:
9+
- asdf plugin add uv
10+
- asdf install uv latest
11+
- asdf global uv latest
12+
- UV_PROJECT_ENVIRONMENT=$READTHEDOCS_VIRTUALENV_PATH uv sync --group docs
13+
install:
14+
- "true"
715

816
sphinx:
917
configuration: docs/source/conf.py
1018
fail_on_warning: true
11-
12-
python:
13-
install:
14-
- method: pip
15-
path: .
16-
extra_requirements:
17-
- docs

justfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ typing:
1414
lint:
1515
uvx --with pre-commit-uv pre-commit run -a
1616

17+
# Build documentation
18+
docs:
19+
uv run --group docs sphinx-build docs/source docs/build
20+
21+
# Serve documentation with auto-reload
22+
docs-serve:
23+
uv run --group docs sphinx-autobuild docs/source docs/build
24+
1725
# Run all checks (format, lint, typing, test)
1826
check: lint typing test
1927

pyproject.toml

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ docs = [
3434
"myst-parser",
3535
"nbsphinx",
3636
"sphinx",
37+
"sphinx-autobuild",
3738
"sphinx-click",
3839
"sphinx-copybutton",
3940
"sphinx-design>=0.3",
@@ -75,14 +76,6 @@ pytask_parallel = "pytask_parallel.plugin"
7576
requires = ["hatchling", "hatch_vcs"]
7677
build-backend = "hatchling.build"
7778

78-
[tool.rye]
79-
managed = true
80-
dev-dependencies = ["s3fs>=2024.3.1", "tox-uv>=1.7.0"]
81-
82-
[tool.rye.scripts]
83-
clean-docs = { cmd = "rm -rf docs/build" }
84-
build-docs = { cmd = "sphinx-build -b html docs/source docs/build" }
85-
8679
[tool.hatch.build.hooks.vcs]
8780
version-file = "src/pytask_parallel/_version.py"
8881

@@ -100,22 +93,6 @@ source = "vcs"
10093
[tool.hatch.metadata]
10194
allow-direct-references = true
10295

103-
[tool.mypy]
104-
files = ["src", "tests"]
105-
check_untyped_defs = true
106-
disallow_any_generics = true
107-
disallow_incomplete_defs = true
108-
disallow_untyped_defs = true
109-
no_implicit_optional = true
110-
warn_redundant_casts = true
111-
warn_unused_ignores = true
112-
ignore_missing_imports = true
113-
114-
[[tool.mypy.overrides]]
115-
module = "tests.*"
116-
disallow_untyped_defs = false
117-
ignore_errors = true
118-
11996
[tool.ruff]
12097
fix = true
12198
unsafe-fixes = true
@@ -143,10 +120,6 @@ convention = "numpy"
143120
addopts = ["--nbmake"]
144121
# Do not add src since it messes with the loading of pytask-parallel as a plugin.
145122
testpaths = ["tests"]
146-
markers = [
147-
"wip: Tests that are work-in-progress.",
148-
]
149-
norecursedirs = [".idea", ".tox"]
150123

151124
[tool.coverage.report]
152125
exclude_also = [

0 commit comments

Comments
 (0)