Skip to content

Commit c9804ec

Browse files
Updated files with 'repo_helper'. (#26)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent 49846ab commit c9804ec

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exclude: ^$
55

66
repos:
77
- repo: https://github.com/repo-helper/pyproject-parser
8-
rev: v0.5.0
8+
rev: v0.6.1
99
hooks:
1010
- id: reformat-pyproject
1111

@@ -67,7 +67,7 @@ repos:
6767
- --keep-runtime-typing
6868

6969
- repo: https://github.com/Lucas-C/pre-commit-hooks
70-
rev: v1.1.14
70+
rev: v1.2.0
7171
hooks:
7272
- id: remove-crlf
7373
- id: forbid-crlf

doc-source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
slug = re.sub(r'\W+', '-', project.lower())
2828
release = version = config.version
2929

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

3233
intersphinx_mapping = {
3334
"python": ("https://docs.python.org/3/", None),

justfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ unused-imports:
1010
tox -e lint -- --select F401
1111

1212
incomplete-defs:
13-
#!/usr/bin/env bash
14-
tox -e mypy -- --disallow-incomplete-defs --disallow-untyped-defs | grep "Function is missing a .* annotation" || exit 0
13+
tox -e lint -- --select MAN
1514

1615
vdiff:
1716
git diff $(repo-helper show version -q)..HEAD

tox.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# * testenv:docs
77
# * testenv:build
88
# * testenv:lint
9+
# * testenv:perflint
910
# * testenv:mypy
1011
# * testenv:pyup
1112
# * testenv:coverage
@@ -39,6 +40,7 @@ commands =
3940

4041
[testenv:docs]
4142
setenv = SHOW_TODOS = 1
43+
passenv = SPHINX_BUILDER
4244
basepython = python3.8
4345
changedir = {toxinidir}/doc-source
4446
deps = -r{toxinidir}/doc-source/requirements.txt
@@ -80,11 +82,20 @@ deps =
8082
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
8183
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
8284
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
85+
git+https://github.com/python-formate/flake8-missing-annotations.git
8386
pydocstyle>=6.0.0
8487
pygments>=2.7.1
8588
importlib_metadata<4.5.0; python_version<'3.8'
8689
commands = python3 -m flake8_rst_docstrings_sphinx tox_recreate_hook tests --allow-toolbox {posargs}
8790

91+
[testenv:perflint]
92+
basepython = python3.7
93+
changedir = {toxinidir}
94+
ignore_errors = True
95+
skip_install = True
96+
deps = perflint
97+
commands = python3 -m perflint tox_recreate_hook {posargs}
98+
8899
[testenv:mypy]
89100
basepython = python3.7
90101
ignore_errors = True

0 commit comments

Comments
 (0)