Skip to content

Commit b824223

Browse files
[repo-helper] Configuration Update (#153)
* Updated files with 'repo_helper'. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- 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 568c6a0 commit b824223

16 files changed

Lines changed: 78 additions & 67 deletions

File tree

.github/workflows/docs_test_action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout 🛎️
19-
uses: "actions/checkout@v4"
19+
uses: "actions/checkout@v6"
2020

2121
- name: Check for changed files
22-
uses: dorny/paths-filter@v2
22+
uses: dorny/paths-filter@v4
2323
id: changes
2424
with:
2525
list-files: "json"

.github/workflows/flake8.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919

2020
steps:
2121
- name: Checkout 🛎️
22-
uses: "actions/checkout@v4"
22+
uses: "actions/checkout@v6"
2323

2424
- name: Check for changed files
25-
uses: dorny/paths-filter@v2
25+
uses: dorny/paths-filter@v4
2626
id: changes
2727
with:
2828
list-files: "json"
@@ -32,7 +32,7 @@ jobs:
3232
3333
- name: Setup Python 🐍
3434
if: steps.changes.outputs.code == 'true'
35-
uses: "actions/setup-python@v5"
35+
uses: "actions/setup-python@v6"
3636
with:
3737
python-version: "3.9"
3838

.github/workflows/mypy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424

2525
steps:
2626
- name: Checkout 🛎️
27-
uses: "actions/checkout@v4"
27+
uses: "actions/checkout@v6"
2828

2929
- name: Check for changed files
30-
uses: dorny/paths-filter@v2
30+
uses: dorny/paths-filter@v4
3131
id: changes
3232
with:
3333
list-files: "json"
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: Setup Python 🐍
3939
if: steps.changes.outputs.code == 'true'
40-
uses: "actions/setup-python@v5"
40+
uses: "actions/setup-python@v6"
4141
with:
4242
python-version: "3.9"
4343

.github/workflows/python_ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ jobs:
3737
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: False}
3838
- {python-version: "pypy-3.8", testenvs: "pypy38", experimental: False}
3939
- {python-version: "pypy-3.9-v7.3.16", testenvs: "pypy39", experimental: True}
40-
- {python-version: "pypy-3.10-v7.3.19", testenvs: "pypy310,build", experimental: True}
40+
- {python-version: "pypy-3.10-v7.3.19", testenvs: "pypy310", experimental: True}
4141

4242
steps:
4343
- name: Checkout 🛎️
44-
uses: "actions/checkout@v4"
44+
uses: "actions/checkout@v6"
4545

4646
- name: Check for changed files
4747
if: startsWith(github.ref, 'refs/tags/') != true
48-
uses: dorny/paths-filter@v2
48+
uses: dorny/paths-filter@v4
4949
id: changes
5050
with:
5151
list-files: "json"
@@ -56,7 +56,7 @@ jobs:
5656
- name: Setup Python 🐍
5757
id: setup-python
5858
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
59-
uses: "actions/setup-python@v5"
59+
uses: "actions/setup-python@v6"
6060
with:
6161
python-version: "${{ matrix.config.python-version }}"
6262

.github/workflows/python_ci_linux.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ jobs:
4242

4343
steps:
4444
- name: Checkout 🛎️
45-
uses: "actions/checkout@v4"
45+
uses: "actions/checkout@v6"
4646

4747
- name: Check for changed files
4848
if: startsWith(github.ref, 'refs/tags/') != true
49-
uses: dorny/paths-filter@v2
49+
uses: dorny/paths-filter@v4
5050
id: changes
5151
with:
5252
list-files: "json"
@@ -57,7 +57,7 @@ jobs:
5757
- name: Setup Python 🐍
5858
id: setup-python
5959
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
60-
uses: "actions/setup-python@v5"
60+
uses: "actions/setup-python@v6"
6161
with:
6262
python-version: "${{ matrix.config.python-version }}"
6363

@@ -91,10 +91,10 @@ jobs:
9191
runs-on: "ubuntu-22.04"
9292
steps:
9393
- name: Checkout 🛎️
94-
uses: "actions/checkout@v4"
94+
uses: "actions/checkout@v6"
9595

9696
- name: Setup Python 🐍
97-
uses: "actions/setup-python@v5"
97+
uses: "actions/setup-python@v6"
9898
with:
9999
python-version: 3.8
100100

@@ -144,11 +144,11 @@ jobs:
144144
runs-on: "ubuntu-22.04"
145145
steps:
146146
- name: Checkout 🛎️
147-
uses: "actions/checkout@v4"
147+
uses: "actions/checkout@v6"
148148
if: startsWith(github.ref, 'refs/tags/')
149149

150150
- name: Setup Python 🐍
151-
uses: "actions/setup-python@v5"
151+
uses: "actions/setup-python@v6"
152152
if: startsWith(github.ref, 'refs/tags/')
153153
with:
154154
python-version: 3.8

.github/workflows/python_ci_macos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141

4242
steps:
4343
- name: Checkout 🛎️
44-
uses: "actions/checkout@v4"
44+
uses: "actions/checkout@v6"
4545

4646
- name: Check for changed files
4747
if: startsWith(github.ref, 'refs/tags/') != true
48-
uses: dorny/paths-filter@v2
48+
uses: dorny/paths-filter@v4
4949
id: changes
5050
with:
5151
list-files: "json"
@@ -56,7 +56,7 @@ jobs:
5656
- name: Setup Python 🐍
5757
id: setup-python
5858
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
59-
uses: "actions/setup-python@v5"
59+
uses: "actions/setup-python@v6"
6060
with:
6161
python-version: "${{ matrix.config.python-version }}"
6262

.pre-commit-config.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ exclude: ^domdf_python_tools/compat/importlib_resources.py$
55

66
ci:
77
autoupdate_schedule: quarterly
8+
skip: [taplo-lint]
89

910
repos:
1011
- repo: https://github.com/repo-helper/pyproject-parser
@@ -21,7 +22,6 @@ repos:
2122
- id: check-case-conflict
2223
- id: check-executables-have-shebangs
2324
- id: check-json
24-
- id: check-toml
2525
- id: check-yaml
2626
- id: check-merge-conflict
2727
- id: check-symlinks
@@ -31,6 +31,12 @@ repos:
3131
- id: mixed-line-ending
3232
- id: end-of-file-fixer
3333

34+
- repo: https://github.com/domdfcoding/taplo-pre-commit
35+
rev: v0.10.0
36+
hooks:
37+
- id: taplo-lint
38+
args: []
39+
3440
- repo: https://github.com/domdfcoding/pre-commit-hooks
3541
rev: v0.7.0
3642
hooks:
@@ -78,9 +84,11 @@ repos:
7884
- id: forbid-crlf
7985

8086
- repo: https://github.com/python-formate/snippet-fmt
81-
rev: v0.1.5
87+
rev: v0.3.1
8288
hooks:
8389
- id: snippet-fmt
90+
additional_dependencies:
91+
- formate-trailing-commas>=0.1.1
8492

8593
- repo: https://github.com/python-formate/formate
8694
rev: v1.2.1

doc-source/api/bases.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ from :class:`NamedList` rather than from :func:`~.namedlist`. For example, do th
6363
.. code-block:: python
6464
6565
>>> class ShoppingList(NamedList):
66-
... pass
66+
... pass
6767
>>>
6868
6969
and not this:

domdf_python_tools/doctools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ def sphinxify_docstring() -> Callable[[_F], _F]:
216216
.. code-block:: python
217217
218218
intersphinx_mapping = {
219-
"python": ("https://docs.python.org/3/", None),
220-
}
219+
"python": ("https://docs.python.org/3/", None),
220+
}
221221
"""
222222

223223
def wrapper(target: _F) -> _F:

domdf_python_tools/getters.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ class attrgetter:
5555
.. code-block:: python
5656
5757
>>> from pathlib import Path
58-
>>> attrgetter(0, 'name')([Path("dir/code.py")])
58+
>>> attrgetter(0, "name")([Path("dir/code.py")])
5959
'code.py'
60-
>>> attrgetter(2, 'parent.name')([Path("dir/coincidence.py"), Path("dir/wheel.py"), Path("dir/operator.py")])
60+
>>> attrgetter(2, "parent.name")([Path("dir/coincidence.py"), Path("dir/wheel.py"), Path("dir/operator.py")])
6161
'dir'
6262
6363
.. seealso:: :func:`operator.attrgetter` and :func:`operator.itemgetter`
@@ -110,14 +110,14 @@ class itemgetter:
110110
111111
.. code-block:: python
112112
113-
>>> itemgetter(0, 1)(['ABCDEFG'])
113+
>>> itemgetter(0, 1)(["ABCDEFG"])
114114
'B'
115-
>>> itemgetter(1, 2)(['ABC', 'DEF'])
115+
>>> itemgetter(1, 2)(["ABC", "DEF"])
116116
'F'
117-
>>> itemgetter(0, slice(2, None))(['ABCDEFG'])
117+
>>> itemgetter(0, slice(2, None))(["ABCDEFG"])
118118
'CDEFG'
119-
>>> army = [dict(rank='captain', name='Blackadder'), dict(rank='Private', name='Baldrick')]
120-
>>> itemgetter(0, 'rank')(army)
119+
>>> army = [dict(rank="captain", name="Blackadder"), dict(rank="Private", name="Baldrick")]
120+
>>> itemgetter(0, "rank")(army)
121121
'captain'
122122
123123
.. seealso:: :func:`operator.itemgetter`
@@ -158,11 +158,11 @@ class methodcaller:
158158
.. code-block:: python
159159
160160
>>> from datetime import date
161-
>>> methodcaller(0, 'upper')(["hello", "world"])
161+
>>> methodcaller(0, "upper")(["hello", "world"])
162162
'HELLO'
163-
>>> methodcaller(1, 'center', 9, "=")(["hello", "world"])
163+
>>> methodcaller(1, "center", 9, '=')(["hello", "world"])
164164
'==world=='
165-
>>> methodcaller(0, 'replace', year=2019)([date(2021, 7, 6)])
165+
>>> methodcaller(0, "replace", year=2019)([date(2021, 7, 6)])
166166
datetime.date(2019, 7, 6)
167167
168168
.. seealso:: :func:`operator.methodcaller` and :func:`operator.itemgetter`

0 commit comments

Comments
 (0)