Skip to content

Commit f240076

Browse files
Updated files with 'repo_helper'.
1 parent a081bbf commit f240076

8 files changed

Lines changed: 39 additions & 23 deletions

File tree

.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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939

4040
steps:
4141
- name: Checkout 🛎️
42-
uses: "actions/checkout@v4"
42+
uses: "actions/checkout@v6"
4343

4444
- name: Check for changed files
4545
if: startsWith(github.ref, 'refs/tags/') != true
46-
uses: dorny/paths-filter@v2
46+
uses: dorny/paths-filter@v4
4747
id: changes
4848
with:
4949
list-files: "json"
@@ -54,7 +54,7 @@ jobs:
5454
- name: Setup Python 🐍
5555
id: setup-python
5656
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
57-
uses: "actions/setup-python@v5"
57+
uses: "actions/setup-python@v6"
5858
with:
5959
python-version: "${{ matrix.config.python-version }}"
6060

.github/workflows/python_ci_linux.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ jobs:
4040

4141
steps:
4242
- name: Checkout 🛎️
43-
uses: "actions/checkout@v4"
43+
uses: "actions/checkout@v6"
4444

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

@@ -82,11 +82,11 @@ jobs:
8282
runs-on: "ubuntu-22.04"
8383
steps:
8484
- name: Checkout 🛎️
85-
uses: "actions/checkout@v4"
85+
uses: "actions/checkout@v6"
8686
if: startsWith(github.ref, 'refs/tags/')
8787

8888
- name: Setup Python 🐍
89-
uses: "actions/setup-python@v5"
89+
uses: "actions/setup-python@v6"
9090
if: startsWith(github.ref, 'refs/tags/')
9191
with:
9292
python-version: 3.8

.github/workflows/python_ci_macos.yml

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

4040
steps:
4141
- name: Checkout 🛎️
42-
uses: "actions/checkout@v4"
42+
uses: "actions/checkout@v6"
4343

4444
- name: Check for changed files
4545
if: startsWith(github.ref, 'refs/tags/') != true
46-
uses: dorny/paths-filter@v2
46+
uses: dorny/paths-filter@v4
4747
id: changes
4848
with:
4949
list-files: "json"
@@ -54,7 +54,7 @@ jobs:
5454
- name: Setup Python 🐍
5555
id: setup-python
5656
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
57-
uses: "actions/setup-python@v5"
57+
uses: "actions/setup-python@v6"
5858
with:
5959
python-version: "${{ matrix.config.python-version }}"
6060

.pre-commit-config.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ exclude: ^$
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,8 +31,14 @@ 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
35-
rev: v0.7.0
41+
rev: v0.8.1
3642
hooks:
3743
- id: requirements-txt-sorter
3844
args:
@@ -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

justfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ bare-ignore:
2323

2424
lint: unused-imports incomplete-defs bare-ignore
2525
tox -n qa
26+
27+
uncomm:
28+
git status -uall --ignored
29+
30+
# Custom commands can be added below this comment

tox.ini

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
# * envlists
55
# * testenv
66
# * testenv:.package
7+
# * testenv:py315-dev
8+
# * testenv:py315
9+
# * testenv:py314-dev
10+
# * testenv:py314
711
# * testenv:py313-dev
812
# * testenv:py313
913
# * testenv:py312-dev
@@ -49,6 +53,7 @@ setenv =
4953
PYTHONDEVMODE=1
5054
PIP_DISABLE_PIP_VERSION_CHECK=1
5155
SETUPTOOLS_USE_DISTUTILS=stdlib
56+
download = True
5257
deps = importcheck>=0.1.0
5358
commands =
5459
python --version
@@ -60,13 +65,11 @@ setenv =
6065
PIP_DISABLE_PIP_VERSION_CHECK=1
6166

6267
[testenv:py313]
63-
download = True
6468
setenv =
6569
PYTHONDEVMODE=1
6670
PIP_DISABLE_PIP_VERSION_CHECK=1
6771

6872
[testenv:py312]
69-
download = True
7073
setenv =
7174
PYTHONDEVMODE=1
7275
PIP_DISABLE_PIP_VERSION_CHECK=1
@@ -143,7 +146,7 @@ skip_install = True
143146
ignore_errors = True
144147
changedir = {toxinidir}
145148
deps = pyupgrade-directories
146-
commands = pyup_dirs flake8_prettycount --py36-plus --recursive
149+
commands = pyup_dirs flake8_prettycount --py37-plus --recursive
147150

148151
[flake8]
149152
max-line-length = 120

0 commit comments

Comments
 (0)