Skip to content

Commit ed037e6

Browse files
authored
Meta: Update config (python#3645)
1 parent 4f151e9 commit ed037e6

9 files changed

+31
-26
lines changed

.github/CODEOWNERS

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77

88
# PEP infrastructure
99
.github/workflows/ @AA-Turner @CAM-Gerlach
10-
Makefile @AA-Turner
11-
requirements.txt @AA-Turner
10+
.github/ @hugovk
11+
Makefile @AA-Turner @hugovk
12+
requirements.txt @AA-Turner @hugovk
1213
infra/ @ewdurbin
1314

1415
pep_sphinx_extensions/ @AA-Turner

.github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
groups:
8+
actions:
9+
patterns:
10+
- "*"

.github/workflows/lint.yml

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Lint PEPs
22

3-
on:
4-
push:
5-
pull_request:
6-
workflow_dispatch:
3+
on: [push, pull_request, workflow_dispatch]
74

85
permissions:
96
contents: read
@@ -24,16 +21,16 @@ jobs:
2421
steps:
2522
- uses: actions/checkout@v4
2623
- name: Set up Python 3
27-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@v5
2825
with:
2926
python-version: "3.x"
3027
cache: pip
3128

3229
- name: Run pre-commit hooks
33-
uses: pre-commit/[email protected].0
30+
uses: pre-commit/[email protected].1
3431

3532
- name: Check spelling
36-
uses: pre-commit/[email protected].0
33+
uses: pre-commit/[email protected].1
3734
with:
3835
extra_args: --all-files --hook-stage manual codespell || true
3936

@@ -42,9 +39,9 @@ jobs:
4239
runs-on: ubuntu-latest
4340

4441
steps:
45-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4643
- name: Set up Python 3
47-
uses: actions/setup-python@v4
44+
uses: actions/setup-python@v5
4845
with:
4946
python-version: "3"
5047

.github/workflows/render.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Render PEPs
22

3-
on:
4-
push:
5-
pull_request:
6-
workflow_dispatch:
3+
on: [push, pull_request, workflow_dispatch]
74

85
permissions:
96
contents: read
@@ -35,7 +32,7 @@ jobs:
3532
fetch-depth: 0 # fetch all history so that last modified date-times are accurate
3633

3734
- name: Set up Python ${{ matrix.python-version }}
38-
uses: actions/setup-python@v4
35+
uses: actions/setup-python@v5
3936
with:
4037
python-version: ${{ matrix.python-version }}
4138
cache: pip

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
steps:
4444
- uses: actions/checkout@v4
4545
- name: Set up Python ${{ matrix.python-version }}
46-
uses: actions/setup-python@v4
46+
uses: actions/setup-python@v5
4747
with:
4848
python-version: ${{ matrix.python-version }}
4949
cache: pip
@@ -60,7 +60,7 @@ jobs:
6060
tox -e py -- -v --cov-report term
6161
6262
- name: Upload coverage
63-
uses: codecov/codecov-action@v3
63+
uses: codecov/codecov-action@v4
6464
with:
6565
flags: ${{ matrix.os }}
6666
name: ${{ matrix.os }} Python ${{ matrix.python-version }}

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ repos:
4343
name: "Check YAML"
4444

4545
- repo: https://github.com/psf/black-pre-commit-mirror
46-
rev: 23.12.0
46+
rev: 24.1.1
4747
hooks:
4848
- id: black
4949
name: "Format with Black"
@@ -53,7 +53,7 @@ repos:
5353
files: 'pep_sphinx_extensions/tests/.*'
5454

5555
- repo: https://github.com/astral-sh/ruff-pre-commit
56-
rev: v0.1.7
56+
rev: v0.2.1
5757
hooks:
5858
- id: ruff
5959
name: "Lint with Ruff"

.ruff.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
output-format = "full"
2+
target-version = "py39"
3+
4+
[lint]
15
ignore = [
26
"E501", # Line too long
37
]
@@ -9,7 +13,3 @@ select = [
913
"PT", # flake8-pytest-style
1014
"W", # pycodestyle warnings
1115
]
12-
13-
show-source = true
14-
15-
target-version = "py39"

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ VENVDIR = .venv
77
BUILDDIR = build
88
SPHINXBUILD = PATH=$(VENVDIR)/bin:$$PATH sphinx-build
99
BUILDER = html
10-
JOBS = 8
10+
JOBS = auto
1111
SOURCES =
1212
SPHINXERRORHANDLING = -W --keep-going -w sphinx-warnings.txt
1313

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
requires =
33
tox>=4.2
44
env_list =
5-
py{312, 311, 310, 39}
5+
py{313, 312, 311, 310, 39}
66
no_package = true
77

88
[testenv]

0 commit comments

Comments
 (0)