Repository: LUMC/pytest-workflow (language: python)

Issue:
Document pytest ini
Workflow specific pytest-workflow settings can be put in a `pytest.ini` file at the root. This is very useful for settings such as '--git-aware'.

This should be in the documentation.


Discussion / hints:

Fix patch:
diff --git a/HISTORY.rst b/HISTORY.rst
index 5d0a4804..a521dd57 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -9,6 +9,8 @@ Changelog
 
 version 1.7.0-dev
 ---------------------------
++ Document using ``pytest.ini`` as a way of setting specific per repository
+  settings for pytest-workflow.
 + Add tests for nextflow.
 + Document the use of environment variables with pytest-workflow.
 + A minimum of pytest 7.0.0 is now a requirement for pytest-workflow.


Test patch:
diff --git a/docs/running_pytest_workflow.rst b/docs/running_pytest_workflow.rst
index 6bee58d7..cbe704d0 100644
--- a/docs/running_pytest_workflow.rst
+++ b/docs/running_pytest_workflow.rst
@@ -26,6 +26,20 @@ Specific pytest options for pytest workflow
     :func: __pytest_workflow_cli
     :prog: pytest
 
+Setting specific per-project settings using pytest.ini
+-----------------------------------------------------------------
+pytest can be configured `using a pytest.ini file
+<https://docs.pytest.org/en/7.1.x/reference/customize.html#pytest-ini>`_.
+This mechanic can be used to set specific settings in each repository
+where pytest workflow is used.
+
+For example a pytest.ini with the following contents::
+
+    [pytest]
+    addopts = --git-aware
+
+Can be used in a git repository with a workflow.
+
 Temporary directory cleanup and creation
 ----------------------------------------