sphinx-combine 2024.12.29__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. sphinx_combine-2024.12.29/.git_archival.txt +1 -0
  2. sphinx_combine-2024.12.29/.gitattributes +2 -0
  3. sphinx_combine-2024.12.29/.github/dependabot.yml +13 -0
  4. sphinx_combine-2024.12.29/.github/workflows/ci.yml +69 -0
  5. sphinx_combine-2024.12.29/.github/workflows/dependabot-merge.yml +24 -0
  6. sphinx_combine-2024.12.29/.github/workflows/release.yml +95 -0
  7. sphinx_combine-2024.12.29/.gitignore +117 -0
  8. sphinx_combine-2024.12.29/.pre-commit-config.yaml +264 -0
  9. sphinx_combine-2024.12.29/.vscode/extensions.json +6 -0
  10. sphinx_combine-2024.12.29/.vscode/settings.json +14 -0
  11. sphinx_combine-2024.12.29/CHANGELOG.rst +10 -0
  12. sphinx_combine-2024.12.29/CONTRIBUTING.rst +84 -0
  13. sphinx_combine-2024.12.29/LICENSE +190 -0
  14. sphinx_combine-2024.12.29/Makefile +18 -0
  15. sphinx_combine-2024.12.29/PKG-INFO +289 -0
  16. sphinx_combine-2024.12.29/README.rst +43 -0
  17. sphinx_combine-2024.12.29/codecov.yaml +11 -0
  18. sphinx_combine-2024.12.29/pyproject.toml +391 -0
  19. sphinx_combine-2024.12.29/sample/source/__init__.py +3 -0
  20. sphinx_combine-2024.12.29/sample/source/conf.py +7 -0
  21. sphinx_combine-2024.12.29/sample/source/index.rst +25 -0
  22. sphinx_combine-2024.12.29/setup.cfg +4 -0
  23. sphinx_combine-2024.12.29/spelling_private_dict.txt +17 -0
  24. sphinx_combine-2024.12.29/src/sphinx_combine/__init__.py +65 -0
  25. sphinx_combine-2024.12.29/src/sphinx_combine/py.typed +0 -0
  26. sphinx_combine-2024.12.29/src/sphinx_combine.egg-info/PKG-INFO +289 -0
  27. sphinx_combine-2024.12.29/src/sphinx_combine.egg-info/SOURCES.txt +32 -0
  28. sphinx_combine-2024.12.29/src/sphinx_combine.egg-info/dependency_links.txt +1 -0
  29. sphinx_combine-2024.12.29/src/sphinx_combine.egg-info/not-zip-safe +1 -0
  30. sphinx_combine-2024.12.29/src/sphinx_combine.egg-info/requires.txt +35 -0
  31. sphinx_combine-2024.12.29/src/sphinx_combine.egg-info/top_level.txt +1 -0
  32. sphinx_combine-2024.12.29/tests/__init__.py +3 -0
  33. sphinx_combine-2024.12.29/tests/conftest.py +18 -0
  34. sphinx_combine-2024.12.29/tests/test_substitution_extensions.py +72 -0
@@ -0,0 +1 @@
1
+ ref-names: $Format:%D$
@@ -0,0 +1,2 @@
1
+ .git_archival.txt export-subst
2
+ * text=auto eol=lf
@@ -0,0 +1,13 @@
1
+ ---
2
+ version: 2
3
+
4
+ updates:
5
+ - package-ecosystem: pip
6
+ directory: /
7
+ schedule:
8
+ interval: daily
9
+ open-pull-requests-limit: 10
10
+ - package-ecosystem: github-actions
11
+ directory: /
12
+ schedule:
13
+ interval: daily
@@ -0,0 +1,69 @@
1
+ ---
2
+
3
+ name: CI
4
+
5
+ on:
6
+ push:
7
+ branches: [main]
8
+ pull_request:
9
+ branches: [main]
10
+ schedule:
11
+ # * is a special character in YAML so you have to quote this string
12
+ # Run at 1:00 every day
13
+ - cron: 0 1 * * *
14
+
15
+ jobs:
16
+ build:
17
+
18
+ strategy:
19
+ matrix:
20
+ python-version: ['3.10', '3.11', '3.12', '3.13']
21
+ uv-resolution: [highest, lowest-direct]
22
+ platform: [ubuntu-latest, windows-latest]
23
+
24
+ runs-on: ${{ matrix.platform }}
25
+
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+
29
+ - name: Install uv
30
+ uses: astral-sh/setup-uv@v5
31
+
32
+ - name: Lint
33
+ run: |
34
+ uv run --extra=dev pre-commit run --all-files --hook-stage pre-commit --verbose
35
+ uv run --extra=dev pre-commit run --all-files --hook-stage pre-push --verbose
36
+ uv run --extra=dev pre-commit run --all-files --hook-stage manual --verbose
37
+ env:
38
+ UV_PYTHON: ${{ matrix.python-version }}
39
+ UV_RESOLUTION: ${{ matrix.uv-resolution }}
40
+
41
+ - name: Build sample
42
+ run: |
43
+ make build-sample
44
+ env:
45
+ UV_PYTHON: ${{ matrix.python-version }}
46
+ UV_RESOLUTION: ${{ matrix.uv-resolution }}
47
+
48
+ - name: Build sample parallel
49
+ run: |
50
+ make build-sample-parallel
51
+ env:
52
+ UV_PYTHON: ${{ matrix.python-version }}
53
+ UV_RESOLUTION: ${{ matrix.uv-resolution }}
54
+
55
+ - name: Run tests
56
+ run: |
57
+ uv run --extra=dev pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests . --cov-report=xml
58
+ env:
59
+ UV_PYTHON: ${{ matrix.python-version }}
60
+ UV_RESOLUTION: ${{ matrix.uv-resolution }}
61
+
62
+ - name: Upload coverage to Codecov
63
+ uses: codecov/codecov-action@v5
64
+ with:
65
+ fail_ci_if_error: true
66
+ token: ${{ secrets.CODECOV_TOKEN }}
67
+
68
+ - uses: pre-commit-ci/lite-action@v1.1.0
69
+ if: always()
@@ -0,0 +1,24 @@
1
+ ---
2
+
3
+ name: Dependabot auto-merge
4
+ on: pull_request
5
+
6
+ permissions:
7
+ contents: write
8
+ pull-requests: write
9
+
10
+ jobs:
11
+ dependabot:
12
+ runs-on: ubuntu-latest
13
+ if: github.actor == 'dependabot[bot]'
14
+ steps:
15
+ - name: Dependabot metadata
16
+ id: metadata
17
+ uses: dependabot/fetch-metadata@v2
18
+ with:
19
+ github-token: ${{ secrets.GITHUB_TOKEN }}
20
+ - name: Enable auto-merge for Dependabot PRs
21
+ run: gh pr merge --auto --merge "$PR_URL"
22
+ env:
23
+ PR_URL: ${{github.event.pull_request.html_url}}
24
+ GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -0,0 +1,95 @@
1
+ ---
2
+
3
+ name: Release
4
+
5
+ on: workflow_dispatch
6
+
7
+ jobs:
8
+ build:
9
+ name: Publish a release
10
+ runs-on: ubuntu-latest
11
+
12
+ # Specifying an environment is strongly recommended by PyPI.
13
+ # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.
14
+ environment: release
15
+
16
+ permissions:
17
+ # This is needed for PyPI publishing.
18
+ # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.
19
+ id-token: write
20
+ # This is needed for https://github.com/stefanzweifel/git-auto-commit-action.
21
+ contents: write
22
+
23
+ strategy:
24
+ matrix:
25
+ python-version: ['3.13']
26
+
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ with:
30
+ # See
31
+ # https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#push-to-protected-branches
32
+ token: ${{ secrets.RELEASE_PAT }}
33
+
34
+ - name: Install uv
35
+ uses: astral-sh/setup-uv@v5
36
+
37
+ - name: Calver calculate version
38
+ uses: StephaneBour/actions-calver@master
39
+ id: calver
40
+ with:
41
+ date_format: '%Y.%m.%d'
42
+ release: false
43
+ env:
44
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45
+
46
+ - name: Get the changelog underline
47
+ id: changelog_underline
48
+ run: |
49
+ underline="$(echo "${{ steps.calver.outputs.release }}" | tr -c '\n' '-')"
50
+ echo "underline=${underline}" >> "$GITHUB_OUTPUT"
51
+
52
+ - name: Update changelog
53
+ uses: jacobtomlinson/gha-find-replace@v3
54
+ with:
55
+ find: "Next\n----"
56
+ replace: "Next\n----\n\n${{ steps.calver.outputs.release }}\n${{ steps.changelog_underline.outputs.underline\
57
+ \ }}"
58
+ include: CHANGELOG.rst
59
+ regex: false
60
+
61
+ - uses: stefanzweifel/git-auto-commit-action@v5
62
+ id: commit
63
+ with:
64
+ commit_message: Bump CHANGELOG
65
+ file_pattern: CHANGELOG.rst
66
+
67
+ - name: Bump version and push tag
68
+ id: tag_version
69
+ uses: mathieudutour/github-tag-action@v6.2
70
+ with:
71
+ github_token: ${{ secrets.GITHUB_TOKEN }}
72
+ custom_tag: ${{ steps.calver.outputs.release }}
73
+ tag_prefix: ''
74
+ commit_sha: ${{ steps.commit.outputs.commit_hash }}
75
+
76
+ - name: Create a GitHub release
77
+ uses: ncipollo/release-action@v1
78
+ with:
79
+ tag: ${{ steps.tag_version.outputs.new_tag }}
80
+ name: Release ${{ steps.tag_version.outputs.new_tag }}
81
+ body: ${{ steps.tag_version.outputs.changelog }}
82
+
83
+ - name: Build a binary wheel and a source tarball
84
+ run: |
85
+ git fetch --tags
86
+ git checkout ${{ steps.tag_version.outputs.new_tag }}
87
+ uv build --sdist --wheel --out-dir dist/
88
+ uv run --extra=release check-wheel-contents dist/*.whl
89
+
90
+ # We use PyPI trusted publishing rather than a PyPI API token.
91
+ # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.
92
+ - name: Publish distribution 📦 to PyPI
93
+ uses: pypa/gh-action-pypi-publish@release/v1
94
+ with:
95
+ verbose: true
@@ -0,0 +1,117 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+ MANIFEST
27
+
28
+ # PyInstaller
29
+ # Usually these files are written by a python script from a template
30
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
31
+ *.manifest
32
+ *.spec
33
+
34
+ # Installer logs
35
+ pip-log.txt
36
+ pip-delete-this-directory.txt
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .coverage
42
+ .coverage.*
43
+ .cache
44
+ nosetests.xml
45
+ coverage.xml
46
+ *.cover
47
+ .hypothesis/
48
+ .pytest_cache/
49
+
50
+ # Translations
51
+ *.mo
52
+ *.pot
53
+
54
+ # Django stuff:
55
+ *.log
56
+ local_settings.py
57
+ db.sqlite3
58
+
59
+ # Flask stuff:
60
+ instance/
61
+ .webassets-cache
62
+
63
+ # Scrapy stuff:
64
+ .scrapy
65
+
66
+ # Sphinx documentation
67
+ docs/_build/
68
+
69
+ # PyBuilder
70
+ target/
71
+
72
+ # Jupyter Notebook
73
+ .ipynb_checkpoints
74
+
75
+ # pyenv
76
+ .python-version
77
+
78
+ # celery beat schedule file
79
+ celerybeat-schedule
80
+
81
+ # SageMath parsed files
82
+ *.sage.py
83
+
84
+ # Environments
85
+ .env
86
+ .venv
87
+ env/
88
+ venv/
89
+ ENV/
90
+ env.bak/
91
+ venv.bak/
92
+
93
+ # direnv file
94
+ .envrc
95
+
96
+ # IDEA ide
97
+ .idea/
98
+
99
+ # Spyder project settings
100
+ .spyderproject
101
+ .spyproject
102
+
103
+ # Rope project settings
104
+ .ropeproject
105
+
106
+ # mkdocs documentation
107
+ /site
108
+
109
+ # mypy
110
+ .mypy_cache/
111
+
112
+ # setuptools_scm
113
+ src/*/_setuptools_scm_version.txt
114
+
115
+ uv.lock
116
+
117
+ *DS_Store
@@ -0,0 +1,264 @@
1
+ ---
2
+ # See https://pre-commit.com for more information
3
+ # See https://pre-commit.com/hooks.html for more hooks
4
+ default_install_hook_types: [pre-commit, pre-push, commit-msg]
5
+
6
+ repos:
7
+ - repo: meta
8
+ hooks:
9
+ - id: check-useless-excludes
10
+ - repo: https://github.com/pre-commit/pre-commit-hooks
11
+ rev: v5.0.0
12
+ hooks:
13
+ - id: check-added-large-files
14
+ - id: check-case-conflict
15
+ - id: check-executables-have-shebangs
16
+ - id: check-merge-conflict
17
+ - id: check-shebang-scripts-are-executable
18
+ - id: check-symlinks
19
+ - id: check-json
20
+ - id: check-toml
21
+ - id: check-vcs-permalinks
22
+ - id: check-yaml
23
+ - id: end-of-file-fixer
24
+ - id: file-contents-sorter
25
+ files: spelling_private_dict\.txt$
26
+ - id: trailing-whitespace
27
+ - repo: https://github.com/pre-commit/pygrep-hooks
28
+ rev: v1.10.0
29
+ hooks:
30
+ - id: rst-directive-colons
31
+ - id: rst-inline-touching-normal
32
+ - id: text-unicode-replacement-char
33
+ - id: rst-backticks
34
+
35
+ - repo: local
36
+ hooks:
37
+ - id: actionlint
38
+ name: actionlint
39
+ entry: uv run --extra=dev actionlint
40
+ language: python
41
+ pass_filenames: false
42
+ types_or: [yaml]
43
+ additional_dependencies: [uv==0.4.25]
44
+
45
+ - id: docformatter
46
+ name: docformatter
47
+ entry: uv run --extra=dev -m docformatter --in-place
48
+ language: python
49
+ types_or: [python]
50
+ additional_dependencies: [uv==0.4.25]
51
+
52
+ - id: shellcheck
53
+ name: shellcheck
54
+ entry: uv run --extra=dev shellcheck --shell=bash
55
+ language: python
56
+ types_or: [shell]
57
+ additional_dependencies: [uv==0.4.25]
58
+
59
+ - id: shellcheck-docs
60
+ name: shellcheck-docs
61
+ entry: uv run --extra=dev doccmd --language=shell --language=console --command="shellcheck
62
+ --shell=bash"
63
+ language: python
64
+ types_or: [markdown, rst]
65
+ additional_dependencies: [uv==0.4.25]
66
+
67
+ - id: shfmt
68
+ name: shfmt
69
+ entry: shfmt --write --space-redirects --indent=4
70
+ language: python
71
+ types_or: [shell]
72
+ additional_dependencies: [uv==0.4.25]
73
+
74
+ - id: shfmt-docs
75
+ name: shfmt-docs
76
+ entry: uv run --extra=dev doccmd --language=shell --language=console --skip-marker=shfmt
77
+ --no-pad-file --command="shfmt --write --space-redirects --indent=4"
78
+ language: python
79
+ types_or: [markdown, rst]
80
+ additional_dependencies: [uv==0.4.25]
81
+
82
+ - id: mypy
83
+ name: mypy
84
+ stages: [pre-push]
85
+ entry: uv run --extra=dev -m mypy
86
+ language: python
87
+ types_or: [python, toml]
88
+ pass_filenames: false
89
+ additional_dependencies: [uv==0.4.25]
90
+
91
+ - id: mypy-docs
92
+ name: mypy-docs
93
+ stages: [pre-push]
94
+ entry: uv run --extra=dev doccmd --language=python --command="mypy"
95
+ language: python
96
+ types_or: [markdown, rst]
97
+
98
+ - id: check-manifest
99
+ name: check-manifest
100
+ stages: [pre-push]
101
+ entry: uv run --extra=dev -m check_manifest
102
+ language: python
103
+ pass_filenames: false
104
+ additional_dependencies: [uv==0.4.25]
105
+
106
+ - id: pyright
107
+ name: pyright
108
+ stages: [pre-push]
109
+ entry: uv run --extra=dev -m pyright .
110
+ language: python
111
+ types_or: [python, toml]
112
+ pass_filenames: false
113
+ additional_dependencies: [uv==0.4.25]
114
+
115
+ - id: pyright-docs
116
+ name: pyright-docs
117
+ stages: [pre-push]
118
+ entry: uv run --extra=dev doccmd --language=python --command="pyright"
119
+ language: python
120
+ types_or: [markdown, rst]
121
+
122
+ - id: pyright-verifytypes
123
+ name: pyright-verifytypes
124
+ stages: [pre-push]
125
+ # Use `--ignoreexternal` because we expose parts of the Sphinx API and Sphinx is not
126
+ # thoroughly typed enough.
127
+ entry: uv run --extra=dev -m pyright --ignoreexternal --verifytypes sphinx_combine
128
+ language: python
129
+ pass_filenames: false
130
+ types_or: [python]
131
+ additional_dependencies: [uv==0.4.25]
132
+
133
+ - id: vulture
134
+ name: vulture
135
+ entry: uv run --extra=dev -m vulture .
136
+ language: python
137
+ types_or: [python]
138
+ pass_filenames: false
139
+ additional_dependencies: [uv==0.4.25]
140
+
141
+ - id: vulture-docs
142
+ name: vulture docs
143
+ entry: uv run --extra=dev doccmd --language=python --command="vulture"
144
+ language: python
145
+ types_or: [markdown, rst]
146
+ additional_dependencies: [uv==0.4.25]
147
+
148
+ - id: pyroma
149
+ name: pyroma
150
+ entry: uv run --extra=dev -m pyroma --min 10 .
151
+ language: python
152
+ pass_filenames: false
153
+ types_or: [toml]
154
+ additional_dependencies: [uv==0.4.25]
155
+
156
+ - id: deptry
157
+ name: deptry
158
+ entry: uv run --extra=dev -m deptry src/
159
+ language: python
160
+ pass_filenames: false
161
+ additional_dependencies: [uv==0.4.25]
162
+
163
+ - id: pylint
164
+ name: pylint
165
+ entry: uv run --extra=dev -m pylint src/ tests/
166
+ language: python
167
+ stages: [manual]
168
+ pass_filenames: false
169
+ additional_dependencies: [uv==0.4.25]
170
+
171
+ - id: ruff-check-fix
172
+ name: Ruff check fix
173
+ entry: uv run --extra=dev -m ruff check --fix
174
+ language: python
175
+ types_or: [python]
176
+ additional_dependencies: [uv==0.4.25]
177
+
178
+ - id: ruff-check-fix-docs
179
+ name: Ruff check fix docs
180
+ entry: uv run --extra=dev doccmd --language=python --command="ruff check --fix"
181
+ language: python
182
+ types_or: [markdown, rst]
183
+ additional_dependencies: [uv==0.4.25]
184
+
185
+ - id: ruff-format-fix
186
+ name: Ruff format
187
+ entry: uv run --extra=dev -m ruff format
188
+ language: python
189
+ types_or: [python]
190
+ additional_dependencies: [uv==0.4.25]
191
+
192
+ - id: ruff-format-fix-docs
193
+ name: Ruff format docs
194
+ entry: uv run --extra=dev doccmd --language=python --no-pad-file --command="ruff
195
+ format"
196
+ language: python
197
+ types_or: [markdown, rst]
198
+ additional_dependencies: [uv==0.4.25]
199
+
200
+ - id: doc8
201
+ name: doc8
202
+ entry: uv run --extra=dev -m doc8
203
+ language: python
204
+ types_or: [rst]
205
+ additional_dependencies: [uv==0.4.25]
206
+
207
+ - id: interrogate
208
+ name: interrogate
209
+ entry: uv run --extra=dev -m interrogate
210
+ language: python
211
+ types_or: [python]
212
+ additional_dependencies: [uv==0.4.25]
213
+
214
+ - id: interrogate-docs
215
+ name: interrogate docs
216
+ entry: uv run --extra=dev doccmd --language=python --command="interrogate"
217
+ language: python
218
+ types_or: [markdown, rst]
219
+ additional_dependencies: [uv==0.4.25]
220
+
221
+ - id: pyproject-fmt-fix
222
+ name: pyproject-fmt
223
+ entry: uv run --extra=dev pyproject-fmt
224
+ language: python
225
+ types_or: [toml]
226
+ files: pyproject.toml
227
+
228
+ - id: yamlfix
229
+ name: yamlfix
230
+ entry: uv run --extra=dev yamlfix
231
+ language: python
232
+ types_or: [yaml]
233
+ additional_dependencies: [uv==0.4.25]
234
+
235
+ # We use system Python, with required dependencies specified in pyproject.toml.
236
+ # We therefore cannot use those dependencies in pre-commit CI.
237
+ ci:
238
+ skip:
239
+ - actionlint
240
+ - check-manifest
241
+ - deptry
242
+ - doc8
243
+ - interrogate
244
+ - interrogate-docs
245
+ - mypy
246
+ - mypy-docs
247
+ - pylint
248
+ - pyproject-fmt-fix
249
+ - pyright
250
+ - pyright-docs
251
+ - pyright-verifytypes
252
+ - pyroma
253
+ - ruff-check-fix
254
+ - ruff-check-fix-docs
255
+ - ruff-format-fix
256
+ - ruff-format-fix-docs
257
+ - docformatter
258
+ - shellcheck
259
+ - shellcheck-docs
260
+ - shfmt
261
+ - shfmt-docs
262
+ - vulture
263
+ - vulture-docs
264
+ - yamlfix
@@ -0,0 +1,6 @@
1
+ {
2
+ "recommendations": [
3
+ "charliermarsh.ruff",
4
+ "ms-python.python"
5
+ ]
6
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "[python]": {
3
+ "editor.codeActionsOnSave": {
4
+ "source.fixAll": "explicit"
5
+ },
6
+ "editor.defaultFormatter": "charliermarsh.ruff",
7
+ "editor.formatOnSave": true
8
+ },
9
+ "python.testing.pytestArgs": [
10
+ "."
11
+ ],
12
+ "python.testing.unittestEnabled": false,
13
+ "python.testing.pytestEnabled": true
14
+ }
@@ -0,0 +1,10 @@
1
+ Changelog
2
+ =========
3
+
4
+ .. contents::
5
+
6
+ Next
7
+ ----
8
+
9
+ 2024.12.29
10
+ ----------
@@ -0,0 +1,84 @@
1
+ Contributing
2
+ ============
3
+
4
+ Contributions to this repository must pass tests and linting.
5
+
6
+ CI is the canonical source of truth.
7
+
8
+ Install contribution dependencies
9
+ ---------------------------------
10
+
11
+ Install Python dependencies in a virtual environment.
12
+
13
+ .. code-block:: shell
14
+
15
+ pip install --editable '.[dev]'
16
+
17
+ Spell checking requires ``enchant``.
18
+ This can be installed on macOS, for example, with `Homebrew`_:
19
+
20
+ .. code-block:: shell
21
+
22
+ brew install enchant
23
+
24
+ and on Ubuntu with ``apt``:
25
+
26
+ .. code-block:: shell
27
+
28
+ apt-get install -y enchant
29
+
30
+ Install ``pre-commit`` hooks:
31
+
32
+ .. code-block:: shell
33
+
34
+ pre-commit install
35
+
36
+ Linting
37
+ -------
38
+
39
+ Run lint tools either by committing, or with:
40
+
41
+ .. code-block:: shell
42
+
43
+ pre-commit run --all-files --hook-stage pre-commit --verbose
44
+ pre-commit run --all-files --hook-stage pre-push --verbose
45
+ pre-commit run --all-files --hook-stage manual --verbose
46
+
47
+ .. _Homebrew: https://brew.sh
48
+
49
+ Running tests
50
+ -------------
51
+
52
+ Run ``pytest``:
53
+
54
+ .. code-block:: shell
55
+
56
+ pytest
57
+
58
+ Continuous integration
59
+ ----------------------
60
+
61
+ Tests are run on GitHub Actions.
62
+ The configuration for this is in ```.github/workflows/``.
63
+
64
+ Release Process
65
+ ---------------
66
+
67
+ Outcomes
68
+ ~~~~~~~~
69
+
70
+ * A new ``git`` tag available to install.
71
+ * A new package on PyPI.
72
+
73
+ Perform a Release
74
+ ~~~~~~~~~~~~~~~~~
75
+
76
+ #. `Install GitHub CLI`_.
77
+
78
+ #. Perform a release:
79
+
80
+ .. code-block:: shell
81
+
82
+ $ gh workflow run release.yml --repo adamtheturtle/sphinx-combine
83
+
84
+ .. _Install GitHub CLI: https://cli.github.com/manual/installation