From c5d2785e85e95e67bbf8c8238b4e5cbc35e100ef Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Dec 2023 20:39:46 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.12.0 → 23.12.1](https://github.com/psf/black/compare/23.12.0...23.12.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 79f73f7..6a0707d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: reorder-python-imports args: [--application-directories, '.:src', --py37-plus] - repo: https://github.com/psf/black - rev: 23.12.0 + rev: 23.12.1 hooks: - id: black args: [--line-length=79] From dbfc26cb6cc5b77e5dc1db906b0f48cfbea8cbf8 Mon Sep 17 00:00:00 2001 From: Ian Stapleton Cordasco Date: Tue, 26 Dec 2023 07:00:51 -0600 Subject: [PATCH 2/2] Fix CI Update Python versions & add dependabot Fix sphinx config --- .github/dependabot.yml | 15 +++++++++++++++ .github/workflows/main.yml | 12 ++++++------ .readthedocs.yaml | 27 +++++++++++++++++++++++++++ docs/source/conf.py | 2 +- 4 files changed, 49 insertions(+), 7 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .readthedocs.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7790444 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + labels: + - "dependencies" + - "github_actions" + - "Skip Changelog" + ignore: + # Ignore all patch releases as we can manually + # upgrade if we run into a bug and need a fix. + - dependency-name: "*" + update-types: ["version-update:semver-patch"] diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 76b4286..b3c8bd4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,24 +12,24 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python: [pypy3.7, 3.7, 3.9, "3.10", 3.11, 3.12-dev] + python: ['pypy3.9', '3.8', '3.9', '3.10', '3.11', '3.12'] toxenv: [py] include: # windows - os: windows-latest - python: 3.7 + python: '3.12' toxenv: py # misc - os: ubuntu-latest - python: 3.9 + python: '3.12' toxenv: docs - os: ubuntu-latest - python: 3.9 + python: '3.12' toxenv: pre-commit runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 + - uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5 with: python-version: ${{ matrix.python }} - run: python -mpip install --upgrade setuptools pip tox virtualenv diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..340511c --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,27 @@ +# Read the Docs configuration file for Sphinx projects +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the OS, Python version and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.12" + +# Build documentation in the "docs/" directory with Sphinx +sphinx: + configuration: docs/source/conf.py + builder: "dirhtml" + +# Optionally build your docs in additional formats such as PDF and ePub +formats: [] + +# Optional but recommended, declare the Python requirements required +# to build your documentation +# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html +python: + install: + - path: . + - requirements: docs/source/requirements.txt diff --git a/docs/source/conf.py b/docs/source/conf.py index f112f59..e2d0825 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -167,4 +167,4 @@ # Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = {"https://docs.python.org/": None} +intersphinx_mapping = {"python": ("https://docs.python.org/", None)}