Skip to content

Commit f3ed80b

Browse files
authored
Move documenation to MyST. (#232)
1 parent 3e41ebd commit f3ed80b

File tree

72 files changed

+2727
-2833
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2727
-2833
lines changed

.github/workflows/continuous-integration-workflow.yml renamed to .github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Continuous Integration Workflow
1+
name: main
22

33
# Automatically cancel a previous run.
44
concurrency:
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Run unit tests and doctests.
4343
shell: bash -l {0}
44-
run: tox -e pytest -- src tests -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
44+
run: tox -e pytest -- src tests -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml
4545

4646
- name: Upload coverage report for unit tests and doctests.
4747
if: runner.os == 'Linux' && matrix.python-version == '3.8'
@@ -50,7 +50,7 @@ jobs:
5050

5151
- name: Run integration tests.
5252
shell: bash -l {0}
53-
run: tox -e pytest -- src tests -m integration --cov=./ --cov-report=xml -n auto
53+
run: tox -e pytest -- src tests -m integration --cov=./ --cov-report=xml
5454

5555
- name: Upload coverage reports of integration tests.
5656
if: runner.os == 'Linux' && matrix.python-version == '3.8'
@@ -59,7 +59,7 @@ jobs:
5959

6060
- name: Run end-to-end tests.
6161
shell: bash -l {0}
62-
run: tox -e pytest -- src tests -m end_to_end --cov=./ --cov-report=xml -n auto
62+
run: tox -e pytest -- src tests -m end_to_end --cov=./ --cov-report=xml
6363

6464
- name: Upload coverage reports of end-to-end tests.
6565
if: runner.os == 'Linux' && matrix.python-version == '3.8'

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ repos:
4747
rev: 22.1.0
4848
hooks:
4949
- id: black
50-
- repo: https://github.com/asottile/blacken-docs
51-
rev: v1.12.1
52-
hooks:
53-
- id: blacken-docs
54-
additional_dependencies: [black]
5550
- repo: https://github.com/PyCQA/flake8
5651
rev: 4.0.1
5752
hooks:
@@ -76,6 +71,11 @@ repos:
7671
rev: 0.10.1
7772
hooks:
7873
- id: doc8
74+
- repo: https://github.com/asottile/blacken-docs
75+
rev: v1.12.1
76+
hooks:
77+
- id: blacken-docs
78+
additional_dependencies: [black==22.1.0]
7979
- repo: https://github.com/econchick/interrogate
8080
rev: 1.5.0
8181
hooks:

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
.. image:: https://readthedocs.org/projects/pytask-dev/badge/?version=latest
3030
:target: https://pytask-dev.readthedocs.io/en/stable
3131

32-
.. image:: https://img.shields.io/github/workflow/status/pytask-dev/pytask/Continuous%20Integration%20Workflow/main
32+
.. image:: https://img.shields.io/github/workflow/status/pytask-dev/pytask/main/main
3333
:target: https://github.com/pytask-dev/pytask/actions?query=branch%3Amain
3434

3535
.. image:: https://codecov.io/gh/pytask-dev/pytask/branch/main/graph/badge.svg
@@ -60,13 +60,13 @@ projects. Its features include:
6060
<https://pytask-dev.readthedocs.io/en/stable/tutorials/how_to_debug.html>`_ if a task
6161
fails, get feedback quickly, and be more productive.
6262

63-
- **Parametrizations via loops.** `Loop over task functions
64-
<https://pytask-dev.readthedocs.io/en/stable/tutorials/how_to_parametrize_a_task.html>`_
63+
- **Repeat a task with different inputs.** `Loop over task functions
64+
<https://pytask-dev.readthedocs.io/en/stable/tutorials/repeating_tasks_with_different_inputs.html>`_
6565
to run the same task with different inputs.
6666

6767
- **Select tasks via expressions.** Run only a subset of tasks with `expressions and
6868
marker expressions
69-
<https://pytask-dev.readthedocs.io/en/stable/tutorials/how_to_select_tasks.html>`_
69+
<https://pytask-dev.readthedocs.io/en/stable/tutorials/selecting_tasks.html>`_
7070
known from pytest.
7171

7272
- **Easily extensible with plugins**. pytask is built on top of `pluggy

docs/rtd_environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies:
1212
- furo
1313
- ipython
1414
- nbsphinx
15+
- myst-parser
1516
- sphinx
1617
- sphinx-autoapi
1718
- sphinx-click
@@ -32,3 +33,4 @@ dependencies:
3233

3334
- pip:
3435
- ../
36+
- sphinxext-opengraph
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
API Reference
2-
=============
1+
# API Reference
32

43
The following documents are auto-generated and not carefully edited. They provide direct
54
access to the source code and the docstrings.
65

7-
.. toctree::
8-
:titlesonly:
9-
10-
/autoapi/pytask/index
11-
/autoapi/_pytask/index
6+
```{toctree}
7+
---
8+
titlesonly: true
9+
---
10+
/autoapi/pytask/index
11+
/autoapi/_pytask/index
12+
```

0 commit comments

Comments
 (0)