Meta: Update config (#3645)

This commit is contained in:
Hugo van Kemenade 2024-02-08 18:43:54 +02:00 committed by GitHub
parent 4f151e9777
commit ed037e66b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 31 additions and 26 deletions

5
.github/CODEOWNERS vendored
View File

@ -7,8 +7,9 @@
# PEP infrastructure
.github/workflows/ @AA-Turner @CAM-Gerlach
Makefile @AA-Turner
requirements.txt @AA-Turner
.github/ @hugovk
Makefile @AA-Turner @hugovk
requirements.txt @AA-Turner @hugovk
infra/ @ewdurbin
pep_sphinx_extensions/ @AA-Turner

10
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
groups:
actions:
patterns:
- "*"

View File

@ -1,9 +1,6 @@
name: Lint PEPs
on:
push:
pull_request:
workflow_dispatch:
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
@ -24,16 +21,16 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
- name: Run pre-commit hooks
uses: pre-commit/action@v3.0.0
uses: pre-commit/action@v3.0.1
- name: Check spelling
uses: pre-commit/action@v3.0.0
uses: pre-commit/action@v3.0.1
with:
extra_args: --all-files --hook-stage manual codespell || true
@ -42,9 +39,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3"

View File

@ -1,9 +1,6 @@
name: Render PEPs
on:
push:
pull_request:
workflow_dispatch:
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
@ -35,7 +32,7 @@ jobs:
fetch-depth: 0 # fetch all history so that last modified date-times are accurate
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip

View File

@ -43,7 +43,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
@ -60,7 +60,7 @@ jobs:
tox -e py -- -v --cov-report term
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: ${{ matrix.os }}
name: ${{ matrix.os }} Python ${{ matrix.python-version }}

View File

@ -43,7 +43,7 @@ repos:
name: "Check YAML"
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.0
rev: 24.1.1
hooks:
- id: black
name: "Format with Black"
@ -53,7 +53,7 @@ repos:
files: 'pep_sphinx_extensions/tests/.*'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.7
rev: v0.2.1
hooks:
- id: ruff
name: "Lint with Ruff"

View File

@ -1,3 +1,7 @@
output-format = "full"
target-version = "py39"
[lint]
ignore = [
"E501", # Line too long
]
@ -9,7 +13,3 @@ select = [
"PT", # flake8-pytest-style
"W", # pycodestyle warnings
]
show-source = true
target-version = "py39"

View File

@ -7,7 +7,7 @@ VENVDIR = .venv
BUILDDIR = build
SPHINXBUILD = PATH=$(VENVDIR)/bin:$$PATH sphinx-build
BUILDER = html
JOBS = 8
JOBS = auto
SOURCES =
SPHINXERRORHANDLING = -W --keep-going -w sphinx-warnings.txt

View File

@ -2,7 +2,7 @@
requires =
tox>=4.2
env_list =
py{312, 311, 310, 39}
py{313, 312, 311, 310, 39}
no_package = true
[testenv]