Skip to content

Commit 230a5d5

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

File tree

6 files changed

+20
-9
lines changed

6 files changed

+20
-9
lines changed

.github/workflows/python_ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "windows-2019"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-beta.1,pypy-3.6,pypy-3.7,pypy-3.8'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-beta.3,pypy-3.6,pypy-3.7,pypy-3.8'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,7 +33,7 @@ jobs:
3333
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3535
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
36-
- {python-version: "3.11.0-beta.1", testenvs: "py311-dev,build", experimental: True}
36+
- {python-version: "3.11.0-beta.3", testenvs: "py311-dev,build", experimental: True}
3737
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3838
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
3939
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}

.github/workflows/python_ci_linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: "ubuntu-20.04"
2424
continue-on-error: ${{ matrix.config.experimental }}
2525
env:
26-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-beta.1,pypy-3.6,pypy-3.7,pypy-3.8'
26+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-beta.3,pypy-3.6,pypy-3.7,pypy-3.8'
2727

2828
strategy:
2929
fail-fast: False
@@ -34,7 +34,7 @@ jobs:
3434
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3535
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3636
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
37-
- {python-version: "3.11.0-beta.1", testenvs: "py311-dev,build", experimental: True}
37+
- {python-version: "3.11.0-beta.3", testenvs: "py311-dev,build", experimental: True}
3838
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3939
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
4040
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}

.github/workflows/python_ci_macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "macos-latest"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-beta.1,pypy-3.7,pypy-3.8'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-beta.3,pypy-3.7,pypy-3.8'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,7 +33,7 @@ jobs:
3333
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3535
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
36-
- {python-version: "3.11.0-beta.1", testenvs: "py311-dev,build", experimental: True}
36+
- {python-version: "3.11.0-beta.3", testenvs: "py311-dev,build", experimental: True}
3737
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
3838
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}
3939

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
# * flake8
@@ -48,6 +49,7 @@ commands =
4849

4950
[testenv:docs]
5051
setenv = SHOW_TODOS = 1
52+
passenv = SPHINX_BUILDER
5153
basepython = python3.8
5254
changedir = {toxinidir}/doc-source
5355
deps = -r{toxinidir}/doc-source/requirements.txt
@@ -89,11 +91,20 @@ deps =
8991
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
9092
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
9193
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
94+
git+https://github.com/python-formate/flake8-missing-annotations.git
9295
pydocstyle>=6.0.0
9396
pygments>=2.7.1
9497
importlib_metadata<4.5.0; python_version<'3.8'
9598
commands = python3 -m flake8_rst_docstrings_sphinx coverage_pyver_pragma tests --allow-toolbox {posargs}
9699

100+
[testenv:perflint]
101+
basepython = python3.6
102+
changedir = {toxinidir}
103+
ignore_errors = True
104+
skip_install = True
105+
deps = perflint
106+
commands = python3 -m perflint coverage_pyver_pragma {posargs}
107+
97108
[testenv:mypy]
98109
basepython = python3.6
99110
ignore_errors = True

0 commit comments

Comments
 (0)