Skip to content

Commit f7a2923

Browse files
committed
Add example check workflow
1 parent f3c0ee8 commit f7a2923

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/test-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
- name: Check docs build
3131
run: hatch run docs:build
3232
- name: Check docs examples
33-
run: hatch run docs:check-examples
33+
run: hatch run docs:check_examples

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ dependencies = [
111111
"mkdocs-git-authors-plugin",
112112
"mkdocs-minify-plugin",
113113
"mike",
114-
"mypy", # TODO: Replace with ruff perhaps?
115-
"django-stubs[compatible-mypy]",
114+
"ruff",
115+
"django-stubs",
116116
"linkcheckmd",
117117
"reactpy_django @ {root:uri}",
118118
]
@@ -127,6 +127,7 @@ linkcheck = [
127127
]
128128
deploy_latest = ["cd docs && mike deploy --push --update-aliases {args} latest"]
129129
deploy_develop = ["cd docs && mike deploy --push develop"]
130+
check_examples = ["ruff check docs/examples/python"]
130131

131132
# >>> Generic Tools <<<
132133

0 commit comments

Comments
 (0)