Skip to content

Commit

Permalink
Merge pull request #194 from dhellmann/quiet-debug-messages-193
Browse files Browse the repository at this point in the history
quiet debug printing
  • Loading branch information
mergify[bot] authored Oct 16, 2022
2 parents 7ca2924 + 80ce8ef commit af5dd71
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
9 changes: 9 additions & 0 deletions docs/source/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
macOS
unmaintained

Next
====

Bug Fixes
---------

- `#193 <https://github.com/sphinx-contrib/spelling/issues/193>`__
Remove excessive debug printing in `:spelling:word:` implementation.

7.6.1
=====

Expand Down
5 changes: 2 additions & 3 deletions sphinxcontrib/spelling/directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ def add_good_words_to_document(env, docname, good_words):
# Initialize the per-document good words list
if not hasattr(env, 'spelling_document_words'):
env.spelling_document_words = collections.defaultdict(list)
logger.info('Extending local dictionary for %s with %s',
env.docname, good_words)
print(env.docname, good_words)
logger.debug('Extending local dictionary for %s with %s',
env.docname, good_words)
env.spelling_document_words[env.docname].extend(good_words)


Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ skip_install = true

[testenv:linter]
deps=
flake8==3.8.2
flake8==4.0.1
flake8-debug==0.1.0
isort>=5.0.1
setenv =
BUILD=linter
Expand All @@ -65,6 +66,8 @@ skip_install = true
show-source = True
exclude = .tox,dist,doc,*.egg,build
ignore = W504
per-file-ignores =
integration_tests/build_django.py: DB100

[testenv:docs]
setenv =
Expand Down

0 comments on commit af5dd71

Please sign in to comment.