Skip to content

Commit

Permalink
Meta: Update config (python#3645)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Feb 8, 2024
1 parent 4f151e9 commit ed037e6
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 26 deletions.
5 changes: 3 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
groups:
actions:
patterns:
- "*"
15 changes: 6 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Lint PEPs

on:
push:
pull_request:
workflow_dispatch:
on: [push, pull_request, workflow_dispatch]

permissions:
contents: read
Expand All @@ -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/[email protected].0
uses: pre-commit/[email protected].1

- name: Check spelling
uses: pre-commit/[email protected].0
uses: pre-commit/[email protected].1
with:
extra_args: --all-files --hook-stage manual codespell || true

Expand All @@ -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"

Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/render.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Render PEPs

on:
push:
pull_request:
workflow_dispatch:
on: [push, pull_request, workflow_dispatch]

permissions:
contents: read
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
output-format = "full"
target-version = "py39"

[lint]
ignore = [
"E501", # Line too long
]
Expand All @@ -9,7 +13,3 @@ select = [
"PT", # flake8-pytest-style
"W", # pycodestyle warnings
]

show-source = true

target-version = "py39"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ed037e6

Please sign in to comment.