Skip to content

Commit

Permalink
[repo-helper] Configuration Update (#43)
Browse files Browse the repository at this point in the history
* Updated files with 'repo_helper'.

* Updated files with 'repo_helper'.

Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
  • Loading branch information
repo-helper[bot] committed Jun 9, 2022
1 parent 6645470 commit 60e4a4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exclude: ^$

repos:
- repo: https://github.com/repo-helper/pyproject-parser
rev: v0.6.1
rev: v0.7.0
hooks:
- id: reformat-pyproject

Expand All @@ -30,7 +30,7 @@ repos:
- id: end-of-file-fixer

- repo: https://github.com/domdfcoding/pre-commit-hooks
rev: v0.3.0
rev: v0.4.0
hooks:
- id: requirements-txt-sorter
args:
Expand Down Expand Up @@ -84,7 +84,7 @@ repos:
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$

- repo: https://github.com/domdfcoding/dep_checker
rev: v0.6.2
rev: v0.7.0
hooks:
- id: dep_checker
args:
Expand Down
3 changes: 2 additions & 1 deletion doc-source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
slug = re.sub(r'\W+', '-', project.lower())
release = version = config.version

todo_include_todos = bool(os.environ.get("SHOW_TODOS", 0))
sphinx_builder = os.environ.get("SPHINX_BUILDER", "html").lower()
todo_include_todos = int(os.environ.get("SHOW_TODOS", 0)) and sphinx_builder != "latex"

intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ commands =

[testenv:docs]
setenv = SHOW_TODOS = 1
passenv = SPHINX_BUILDER
basepython = python3.8
changedir = {toxinidir}/doc-source
deps = -r{toxinidir}/doc-source/requirements.txt
Expand Down

0 comments on commit 60e4a4f

Please sign in to comment.