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 # PEP infrastructure
.github/workflows/ @AA-Turner @CAM-Gerlach .github/workflows/ @AA-Turner @CAM-Gerlach
Makefile @AA-Turner .github/ @hugovk
requirements.txt @AA-Turner Makefile @AA-Turner @hugovk
requirements.txt @AA-Turner @hugovk
infra/ @ewdurbin infra/ @ewdurbin
pep_sphinx_extensions/ @AA-Turner 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 name: Lint PEPs
on: on: [push, pull_request, workflow_dispatch]
push:
pull_request:
workflow_dispatch:
permissions: permissions:
contents: read contents: read
@ -24,16 +21,16 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python 3 - name: Set up Python 3
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: "3.x" python-version: "3.x"
cache: pip cache: pip
- name: Run pre-commit hooks - name: Run pre-commit hooks
uses: pre-commit/action@v3.0.0 uses: pre-commit/action@v3.0.1
- name: Check spelling - name: Check spelling
uses: pre-commit/action@v3.0.0 uses: pre-commit/action@v3.0.1
with: with:
extra_args: --all-files --hook-stage manual codespell || true extra_args: --all-files --hook-stage manual codespell || true
@ -42,9 +39,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Set up Python 3 - name: Set up Python 3
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: "3" python-version: "3"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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