Skip to content

Commit

Permalink
Merge pull request #82 from Cielquan/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
Cielquan authored Mar 23, 2024
2 parents 952b706 + 71b3336 commit 7259643
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 33 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,10 @@ jobs:
- name: Install tox
run: python -m pip install --upgrade tox

- name: Set up Homebrew
if: runner.os == 'macOS'
uses: Homebrew/actions/setup-homebrew@master

- name: Install enchant on macOS
if: runner.os == 'macOS'
run: |
brew update
brew install enchant
- name: Run tests with tox except linkcheck
- name: Run tests with tox except linkcheck and spelling
if: runner.os != 'Linux'
run: tox -m docs
env:
TOX_SKIP_ENV: docs-test-linkcheck

- name: Run all tests with tox
if: runner.os == 'Linux'
run: tox -m docs
run: tox -m docs-full
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ repos:

# black - python formatter
- repo: https://github.com/psf/black
rev: 6fdf8a4af28071ed1d079c01122b34c5d587207a # frozen: 24.2.0
rev: 552baf822992936134cbd31a38f69c8cfe7c0f05 # frozen: 24.3.0
hooks:
- id: black
args: ["--safe"]
Expand Down Expand Up @@ -212,7 +212,7 @@ repos:

# poetry - python dependency management
- repo: https://github.com/Cielquan/mirrors-poetry
rev: 41ef89aac1c244b9592952e5624689909ddadbb7 # frozen: 1.7.1
rev: ec25c4d5817d8bcf1d6251c347a1892cb817edb8 # frozen: 1.8.2
hooks:
- id: poetry-check

Expand Down
6 changes: 0 additions & 6 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
API
===

.. spelling:word-list::
apidoc
autoapidoc
sphinxcontrib

This part of the documentation covers the open API for this library and is auto
generated by sphinx-apidoc via sphinxcontrib-apidoc.

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _remove_module_docstring( # pylint: disable=R0913
spelling_show_suggestions = True
spelling_exclude_patterns = ["autoapi/**", "autoapidoc/**"]

if find_spec("sphinxcontrib.spelling") is not None:
if find_spec("sphinxcontrib.spelling") is not None and os.environ.get("SPHINX_SPELLING") == "true":
extensions.append("sphinxcontrib.spelling")
else:
NOT_LOADED_MSGS.append("## 'sphinxcontrib-spelling' extension not loaded - not installed")
Expand Down
4 changes: 0 additions & 4 deletions docs/source/contribution/development.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. spelling:word-list::
virtualenvs

Development
===========

Expand Down
5 changes: 0 additions & 5 deletions docs/source/contribution/git_workflow.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
.. spelling:word-list::
Bugfixes
bugfixes

Git(hub) Workflow
=================

Expand Down
4 changes: 4 additions & 0 deletions docs/source/spelling_dict.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

api
apidoc
arg
args
attr
autoapidoc
bool
boolean
bugfixes
Expand Down Expand Up @@ -71,6 +73,7 @@ rtd
sdist
sds
setter
sphinxcontrib
st
strcalc
submodule
Expand All @@ -89,5 +92,6 @@ venv
venv's
venv_runner
virtualenv
virtualenvs
xml
yaml
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ labels =
py3.9 = py39,coverage-all
py3.10 = py310,coverage-all
py3.11 = py311,coverage-all
docs = docs-test-{html,linkcheck,coverage,doctest,spelling}
docs = docs-test-{html,coverage,doctest}
docs-full = docs-test-{html,linkcheck,coverage,doctest,spelling}


[testenv]
Expand Down Expand Up @@ -193,6 +194,7 @@ set_env =
coverage: TOXENV_BUILDER = coverage
doctest: TOXENV_BUILDER = doctest
spelling: TOXENV_BUILDER = spelling
spelling: SPHINX_SPELLING = true
extras = {[testenv:docs]extras}
commands =
sphinx-build \
Expand Down

0 comments on commit 7259643

Please sign in to comment.