diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f32ca251f..fa83cddbe 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -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 diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..5c5631448 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: monthly + groups: + actions: + patterns: + - "*" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fc096a0cd..e7f627cf3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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" diff --git a/.github/workflows/render.yml b/.github/workflows/render.yml index 74486c886..eb9c107b8 100644 --- a/.github/workflows/render.yml +++ b/.github/workflows/render.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0eaef863a..70a627626 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ff4c45e83..9ebe7b8dc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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" diff --git a/.ruff.toml b/.ruff.toml index 5ab2337f9..80467c3ae 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -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" diff --git a/Makefile b/Makefile index a463f5a55..2cf031838 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/tox.ini b/tox.ini index ac54601b6..6138e77bf 100644 --- a/tox.ini +++ b/tox.ini @@ -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]