Skip to content

Commit 7600bfd

Browse files
committed
Merge branch 'main' into feature/python-3-14
2 parents 1e3d9c4 + 4310443 commit 7600bfd

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

.github/workflows/documentation.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
strategy:
9-
fail-fast: false
108
steps:
119
- uses: actions/checkout@v3
1210
- name: Set up Python 3.12

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
strategy:
9-
fail-fast: false
108
steps:
119
- uses: actions/checkout@v3
1210
- name: Set up Python 3.12
@@ -19,4 +17,4 @@ jobs:
1917
python -m pip install pre-commit
2018
- name: Run pre-commit checks
2119
run: |
22-
python -m pre_commit run --all-files
20+
python -m pre_commit run --all-files --color always

.github/workflows/unit-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
python-version: ${{ matrix.python-version }}
1818
- name: Pull docker image
1919
run: |
20-
docker pull concourse/mock-resource:latest
20+
docker pull concourse/mock-resource:0.13.0
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip

.pre-commit-config.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
- id: check-added-large-files
99
args: [--enforce-all, --maxkb=100]
1010
- repo: https://github.com/google/yamlfmt
11-
rev: v0.16.0
11+
rev: v0.17.0
1212
hooks:
1313
- id: yamlfmt
1414
- repo: https://github.com/hhatto/autopep8
@@ -55,10 +55,14 @@ repos:
5555
- id: pyroma
5656
args: ["-d", "--min=10", "."]
5757
- repo: https://github.com/pre-commit/mirrors-mypy
58-
rev: v1.15.0
58+
rev: v1.16.0
5959
hooks:
6060
- id: mypy
6161
additional_dependencies: ["types-docutils", "types-python-dateutil", "types-requests"]
62+
- repo: "https://github.com/python-jsonschema/check-jsonschema"
63+
rev: "0.33.0"
64+
hooks:
65+
- id: check-github-workflows
6266
- repo: https://github.com/johannsdg/pre-commit-license-headers
6367
rev: d53087d331942f263cb553dc67b0e51ffa3a3481
6468
hooks:

docs/source/extensions/concourse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def make_concourse_link(name: str, rawtext: str, text: str, lineno: int, inliner
4444
4545
:return: A list containing the created node, and a list containing any messages generated during the function.
4646
"""
47-
text = nodes.unescape(text) # type: ignore[attr-defined]
47+
text = nodes.unescape(text)
4848
_, title, target = split_explicit_title(text)
4949

5050
title = title.split(".")[-1].replace("-", " ")

docs/source/extensions/linecount.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def count_lines(name: str, rawtext: str, text: str, lineno: int, inliner: Inline
3838
3939
:return: A list containing the created node, and a list containing any messages generated during the function.
4040
"""
41-
path = Path(nodes.unescape(text)) # type: ignore[attr-defined]
41+
path = Path(nodes.unescape(text))
4242
page_path = Path(Path(inliner.document.settings._source))
4343
resolved_path = (page_path.parent / path).resolve()
4444
with open(resolved_path) as rf:

docs/source/extensions/wikipedia.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def make_wikipedia_link(name: str, rawtext: str, text: str, lineno: int, inliner
4444
4545
:return: A list containing the created node, and a list containing any messages generated during the function.
4646
"""
47-
text = nodes.unescape(text) # type: ignore[attr-defined]
47+
text = nodes.unescape(text)
4848
has_explicit, title, target = split_explicit_title(text)
4949

5050
if (match := RE_WIKI_LANG.match(target)):

docs/source/extensions/xkcd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def make_xkcd_link(name: str, rawtext: str, text: str, lineno: int, inliner: Inl
117117
118118
:return: A list containing the created node, and a list containing any messages generated during the function.
119119
"""
120-
text = nodes.unescape(text) # type: ignore[attr-defined]
120+
text = nodes.unescape(text)
121121
_, title, target = split_explicit_title(text)
122122

123123
endpoint: str = inliner.document.settings.env.config.xkcd_endpoint

tests/test_resource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def _build_test_resource_docker_image() -> str:
742742

743743

744744
class ExternalDockerWrapperTests(TestCase):
745-
image = "concourse/mock-resource"
745+
image = "concourse/mock-resource:0.13.0"
746746

747747
@classmethod
748748
def setUpClass(cls) -> None:
@@ -929,7 +929,7 @@ def _format_debugging_message(message: str) -> str:
929929

930930

931931
class ExternalDockerConversionWrapperTests(TestCase):
932-
image = "concourse/mock-resource"
932+
image = "concourse/mock-resource:0.13.0"
933933

934934
@classmethod
935935
def setUpClass(cls) -> None:

0 commit comments

Comments
 (0)