Skip to content

Move documenation to MyST. #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
e66bf07
Implement a couple of tests and add to changes.
tobiasraabe Feb 27, 2022
5390091
Implement functionality to make tests pass.
tobiasraabe Feb 28, 2022
aca9f60
Fix errors.
tobiasraabe Mar 1, 2022
9cc8007
Make name of task deco positional, rest kwargs, and add test for id.
tobiasraabe Mar 1, 2022
2819db6
Implement id as a kwarg to the task marker.
tobiasraabe Mar 1, 2022
ab69519
Implement parsing of args where id components are stringified.
tobiasraabe Mar 1, 2022
29c4170
Add task testing error handling.
tobiasraabe Mar 1, 2022
93e52d0
fix tests.
tobiasraabe Mar 1, 2022
8b296a2
Extend docstring.
tobiasraabe Mar 1, 2022
3636716
Add tabulate to environment.
hmgaudecker Mar 1, 2022
d1906ec
Rewrite tutorial and move explanation on @pytask.mark.parametrize to …
tobiasraabe Mar 3, 2022
7581871
Update the best-practices guide on parametrizations:
tobiasraabe Mar 3, 2022
ba912f4
Fix link error.
tobiasraabe Mar 3, 2022
b7975be
fix.
tobiasraabe Mar 3, 2022
ebb5dc9
fix.
tobiasraabe Mar 3, 2022
69054b9
Merge branch 'implement-new-parametrizations' of https://github.com/p…
tobiasraabe Mar 3, 2022
07994af
Integrate comments from HMG.
tobiasraabe Mar 3, 2022
7084b11
Clarify returnining None in the wrapper function.
tobiasraabe Mar 3, 2022
1d063b4
Remove function type with pytask_meta defined.
tobiasraabe Mar 3, 2022
e60574c
Add a test with irregular dicts which causes a TypeError during execu…
tobiasraabe Mar 3, 2022
58b9365
Highlight parametrizations via loops in README.rst.
tobiasraabe Mar 3, 2022
7744291
Move to MyST.
tobiasraabe Mar 3, 2022
6c8fc75
format with mdformat and fix admonitions.
tobiasraabe Mar 3, 2022
4802825
Fix pre-commit.
tobiasraabe Mar 3, 2022
f8e5316
Add opengraph.
tobiasraabe Mar 7, 2022
a583ddd
Merge branch 'main' into move-to-myst
tobiasraabe Mar 7, 2022
42181e8
Remove rst docs.
tobiasraabe Mar 7, 2022
09c24f2
Fix some errors.
tobiasraabe Mar 7, 2022
a69b063
fix.
tobiasraabe Mar 7, 2022
03871eb
more fixes.
tobiasraabe Mar 7, 2022
fcb08b7
Fix link.
tobiasraabe Mar 7, 2022
4bdb550
Rename many documents and change order in tutorials.
tobiasraabe Mar 9, 2022
d177e99
Fix tests?
tobiasraabe Mar 9, 2022
2f46dd4
Rename workflow.
tobiasraabe Mar 9, 2022
7fb2d71
fix.
tobiasraabe Mar 9, 2022
723e8d0
try fixing graphviz again.
tobiasraabe Mar 9, 2022
dcd7e1d
update packages and allow tests to fail.
tobiasraabe Mar 9, 2022
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continuous Integration Workflow
name: main

# Automatically cancel a previous run.
concurrency:
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:

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

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

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

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

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

- name: Upload coverage reports of end-to-end tests.
if: runner.os == 'Linux' && matrix.python-version == '3.8'
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ repos:
rev: 22.1.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: [black]
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
Expand All @@ -76,6 +71,11 @@ repos:
rev: 0.10.1
hooks:
- id: doc8
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: [black==22.1.0]
- repo: https://github.com/econchick/interrogate
rev: 1.5.0
hooks:
Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
.. image:: https://readthedocs.org/projects/pytask-dev/badge/?version=latest
:target: https://pytask-dev.readthedocs.io/en/stable

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

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

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

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

- **Easily extensible with plugins**. pytask is built on top of `pluggy
Expand Down
2 changes: 2 additions & 0 deletions docs/rtd_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
- furo
- ipython
- nbsphinx
- myst-parser
- sphinx
- sphinx-autoapi
- sphinx-click
Expand All @@ -32,3 +33,4 @@ dependencies:

- pip:
- ../
- sphinxext-opengraph
15 changes: 8 additions & 7 deletions docs/source/api.rst → docs/source/api.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
API Reference
=============
# API Reference

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

.. toctree::
:titlesonly:

/autoapi/pytask/index
/autoapi/_pytask/index
```{toctree}
---
titlesonly: true
---
/autoapi/pytask/index
/autoapi/_pytask/index
```
Loading