Skip to content

Commit 31ebc6e

Browse files
[repo-helper] Configuration Update (#199)
* Updated files with 'repo_helper'. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Updated files with 'repo_helper'. --------- Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent c0c9510 commit 31ebc6e

File tree

9 files changed

+18
-29
lines changed

9 files changed

+18
-29
lines changed

.github/workflows/docs_test_action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- '!tests/**'
3030
3131
- name: Install and Build 🔧
32-
uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1
32+
uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1-py39
3333
if: steps.changes.outputs.code == 'true'
3434
with:
3535
pre-build-command: python -m pip install tox

.github/workflows/octocheese.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: 0 12 * * *
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
Run:
1114
runs-on: ubuntu-latest

.github/workflows/python_ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
- {python-version: "3.12", testenvs: "py312-sphinx{4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
3737
- {python-version: "3.13", testenvs: "py313-sphinx{6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
3838
- {python-version: "pypy-3.7", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
39-
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1},build", experimental: False}
40-
- {python-version: "pypy-3.9-v7.3.15", testenvs: "pypy39-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4},build", experimental: True}
39+
- {python-version: "pypy-3.8", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1}", experimental: False}
40+
- {python-version: "pypy-3.9-v7.3.15", testenvs: "pypy39-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4}", experimental: True}
4141

4242
steps:
4343
- name: Checkout 🛎️

.github/workflows/python_ci_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
162162
- name: Upload distribution to PyPI 🚀
163163
if: startsWith(github.ref, 'refs/tags/')
164-
uses: pypa/gh-action-pypi-publish@v1.4.2
164+
uses: pypa/gh-action-pypi-publish@v1.13.0
165165
with:
166166
user: __token__
167167
password: ${{ secrets.PYPI_TOKEN }}

.github/workflows/python_ci_macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828
fail-fast: False
2929
matrix:
3030
config:
31-
- {python-version: "3.7", os-ver: "13", testenvs: "py37-sphinx{3.2,3.3,3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
31+
- {python-version: "3.7", os-ver: "15-intel", testenvs: "py37-sphinx{3.2,3.3,3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
3232
- {python-version: "3.8", os-ver: "14", testenvs: "py38-sphinx{3.2,3.3,3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1},build", experimental: False}
3333
- {python-version: "3.9", os-ver: "14", testenvs: "py39-sphinx{3.2,3.3,3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4},build", experimental: False}
3434
- {python-version: "3.10", os-ver: "14", testenvs: "py310-sphinx{3.2,3.3,3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1},build", experimental: False}
3535
- {python-version: "3.11", os-ver: "14", testenvs: "py311-sphinx{3.2,3.3,3.4,3.5,4.0,4.1,4.2,4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
3636
- {python-version: "3.12", os-ver: "14", testenvs: "py312-sphinx{4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
3737
- {python-version: "3.13", os-ver: "14", testenvs: "py313-sphinx{6.2,7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2},build", experimental: False}
38-
- {python-version: "pypy-3.7", os-ver: "13", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
38+
- {python-version: "pypy-3.7", os-ver: "15-intel", testenvs: "pypy37-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3},build", experimental: False}
3939
- {python-version: "pypy-3.8", os-ver: "14", testenvs: "pypy38-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1},build", experimental: False}
4040
- {python-version: "pypy-3.9", os-ver: "14", testenvs: "pypy39-sphinx{4.3,4.4,4.5,5.0,5.1,5.2,5.3,6.0,6.1,6.2,7.0,7.1,7.2,7.3,7.4},build", experimental: True}
4141

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ repos:
4343
- id: bind-requirements
4444

4545
- repo: https://github.com/python-formate/flake8-dunder-all
46-
rev: v0.4.1
46+
rev: v0.5.0
4747
hooks:
4848
- id: ensure-dunder-all
4949
files: ^sphinx_toolbox/.*\.py$
@@ -62,11 +62,11 @@ repos:
6262
- id: rst-inline-touching-normal
6363

6464
- repo: https://github.com/asottile/pyupgrade
65-
rev: v2.12.0
65+
rev: v3.3.0
6666
hooks:
6767
- id: pyupgrade
6868
args:
69-
- --py36-plus
69+
- --py37-plus
7070
- --keep-runtime-typing
7171

7272
- repo: https://github.com/Lucas-C/pre-commit-hooks

formate.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ known_third_party = [
5151
"pytest_httpserver",
5252
"pytest_randomly",
5353
"pytest_timeout",
54+
"roman",
5455
"ruamel_yaml",
56+
"setuptools",
5557
"sphinx",
5658
"sphinx_autodoc_typehints",
5759
"sphinx_jinja2_compat",

tests/test_output/autonamedtuple_demo_pep563.py

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,5 @@
88

99
__all__ = ("Animal", )
1010

11-
if sys.version_info < (3, 7):
12-
13-
# stdlib
14-
from typing import Callable, NamedTuple
15-
16-
class Animal(NamedTuple):
17-
"""
18-
An animal.
19-
20-
:param name: The name of the animal.
21-
:param voice: The animal's voice.
22-
"""
23-
24-
name: str
25-
voice: "Callable[[], str]"
26-
27-
else:
28-
# this package
29-
from tests.test_output._autonamedtuple_demo_pep563 import Animal
11+
# this package
12+
from tests.test_output._autonamedtuple_demo_pep563 import Animal

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ setenv =
6565
[testenv:docs]
6666
setenv = SHOW_TODOS = 1
6767
passenv = SPHINX_BUILDER
68-
basepython = python3.8
68+
basepython = python3.9
6969
changedir = {toxinidir}/doc-source
7070
extras = all
7171
deps = -r{toxinidir}/doc-source/requirements.txt
@@ -110,6 +110,7 @@ deps =
110110
flake8-sphinx-links>=0.0.4
111111
flake8-strftime>=0.1.1
112112
flake8-typing-imports>=1.10.0
113+
git+https://github.com/domdfcoding/restructuredtext-lint.git@fix-deprecations
113114
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
114115
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
115116
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods

0 commit comments

Comments
 (0)