@@ -91,54 +91,38 @@ Integrating Exasol-Toolbox into your Project
9191 2. Provide a project configuration
9292++++++++++++++++++++++++++++++++++
9393Make sure you provide the required configuration. Configuration for the exasol-toolbox gets provided by creating
94- a ``noxconfig.py `` file in the workspace root. This file should contain at least
95- a single module constant with the name **PROJECT_CONFIG ** pointing to an object,
96- which is required to to provide the following attributes:
97-
98- * .. py:attribute: : root
99- :type: Path
100-
101- * .. py:attribute: : doc
102- :type: Path
103-
104- * .. py:attribute: : version_file
105- :type: Path
106-
107- Alternatively you can use the *noxconfig.py * file bellow and adjust the value of the attributes if needed:
94+ a ``noxconfig.py `` file in the workspace root. This file should be similar to the
95+ example shown below.
10896
10997.. note ::
11098
111- Be aware that the plugin definitions are completely optional. For further details on plugins, see the customization section.
99+ For further details on plugins, see the customization section.
112100
113- .. literalinclude :: ../../noxconfig.py
101+ .. literalinclude :: ../../project-template/{{cookiecutter.repo_name}}/ noxconfig.py
114102 :language: python3
115103
1161043. Configure the tooling
117105++++++++++++++++++++++++
118- In order to make all standard task work properly, you need add the configuration settings below to your ``pyproject.toml ``,
119- and adjust the following settings to your project needs:
106+ Configuration values for the tooling should be defined in the ``pyproject.toml ``.
107+ Copy the example below & adapt it for your project's specific needs.
120108
121- * coverage
122- - source
123- - fail_under
124- * pylint
125- - fail-under
126- * mypy (overrides)
127- - module
109+ .. literalinclude :: ../../project-template/{{cookiecutter.repo_name}}/pyproject.toml
110+ :language: toml
111+ :start-after: # Tooling
112+
113+ For further reference, see the specific configurations for:
114+
115+ * :ref: ` formatting code < formatting_configuration >`
128116
129- .. literalinclude :: ../../pyproject.toml
130- :language: toml
131- :start-after: # Tooling
132117
1331184. Make the toolbox tasks available
134119+++++++++++++++++++++++++++++++++++
135- In order to use the standard toolbox task via nox, just import them in your ``noxfile.py ``.
136- If you only need the standard tasks provided by the toolbox, your ``noxfile.py `` is straight
137- forward , and you just can use the example ``noxfile.py `` below.
120+ To use the standard toolbox task via nox, just import them in your ``noxfile.py ``.
121+ If you only need the standard tasks provided by the toolbox, your ``noxfile.py `` is
122+ straightforward , and you just can use the example ``noxfile.py `` below.
138123
139- .. literalinclude :: ../../noxfile.py
124+ .. literalinclude :: ../../project-template/{{cookiecutter.repo_name}}/ noxfile.py
140125 :language: python3
141- :end-before: # entry point for debugging
142126
143127
144128.. attention ::
@@ -147,16 +131,14 @@ forward, and you just can use the example ``noxfile.py`` below.
147131
148132 For additional information on resolving this issue, please :ref: `refer to <faq_no_module_noxconfig >`.
149133
150-
151-
1521345. Set up the pre-commit hooks [optional]
153135+++++++++++++++++++++++++++++++++++++++++
154136
155137#. Add a :code: `.pre-commit-config.yaml ` file to your project root
156138
157139 If you want to reuse Nox tasks in the pre-commit hooks, feel free to get some inspiration from the Python toolbox itself:
158140
159- .. literalinclude :: ../../.pre-commit-config.yaml
141+ .. literalinclude :: ../../project-template/{{cookiecutter.repo_name}}/ .pre-commit-config.yaml
160142 :language: yaml
161143
162144#. Enable pre-commit hooks for your workspace
0 commit comments