From 29ae5fec5c513bb41abacef26b27eb16fab0ecc4 Mon Sep 17 00:00:00 2001 From: Kyle King Date: Fri, 23 Aug 2024 19:12:35 -0400 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=A7=20MAINTAIN:=20Resolve=20CI=20E?= =?UTF-8?q?rrors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tests.yml | 37 +++++++++++++++++++------------------ .pre-commit-config.yaml | 2 +- pyproject.toml | 2 +- 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d985685..d6d0d31 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,25 +13,25 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: - python-version: 3.8 - - uses: pre-commit/action@v2.0.0 + python-version: 3.11 + - uses: pre-commit/action@v3.0.0 tests: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: [3.7, 3.11] os: [ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -39,21 +39,22 @@ jobs: # we install with flit --pth-file, # so that coverage will be recorded for the module run: | - pip install flit + pip install flit~=3.0 flit install --deps=production --extras=test --pth-file - name: Run pytest run: | pytest --cov=mdformat_myst --cov-report=xml --cov-report=term-missing - - name: Upload to Codecov - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8 - uses: codecov/codecov-action@v1 - with: - name: pytests - flags: pytests - file: ./coverage.xml - fail_ci_if_error: true + # FYI: Requires token to continue usage + # - name: Upload to Codecov + # if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8 + # uses: codecov/codecov-action@v1 + # with: + # name: pytests + # flags: pytests + # file: ./coverage.xml + # fail_ci_if_error: true pre-commit-hook: runs-on: ubuntu-latest @@ -81,9 +82,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: 3.8 - name: install flit diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d9529e8..9d325c1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: rev: cf75673e1a2c993025a2113ce194d5c65f311c85 # frozen: 21.5b2 hooks: - id: black -- repo: https://gitlab.com/pycqa/flake8 +- repo: https://github.com/PyCQA/flake8 rev: dcd740bc0ebaf2b3d43e59a0060d157c97de13f3 # frozen: 3.9.2 hooks: - id: flake8 diff --git a/pyproject.toml b/pyproject.toml index 2928bba..940fee1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "flit_core.buildapi" [tool.flit.metadata] module = "mdformat_myst" author = "Taneli Hukkinen" -maintainer = "Executable Book Project" +maintainer = "Executable Book Project" maintainer-email = "executablebooks@gmail.com" description-file = "README.md" home-page = "https://github.com/hukkinj1/mdformat-myst" From 7570a6f21e3892cbba683fe5b578e028f73a78c4 Mon Sep 17 00:00:00 2001 From: Kyle King Date: Fri, 23 Aug 2024 19:16:28 -0400 Subject: [PATCH 2/2] build: run pre-commit autoupdate --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9d325c1..ccc50f0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,24 +1,24 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: 38b88246ccc552bffaaf54259d064beeee434539 # frozen: v4.0.1 + rev: v4.6.0 hooks: - id: check-yaml - id: check-toml - repo: https://github.com/pre-commit/pygrep-hooks - rev: 58ace0d0dc6b2439b737a5ea353f836f6a2bad13 # frozen: v1.8.0 + rev: v1.10.0 hooks: - id: python-use-type-annotations - id: python-check-blanket-noqa - repo: https://github.com/timothycrosley/isort - rev: a6222a8a125ec719724e628a5d3d0d5c60923281 # frozen: 5.8.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/psf/black - rev: cf75673e1a2c993025a2113ce194d5c65f311c85 # frozen: 21.5b2 + rev: 24.8.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: dcd740bc0ebaf2b3d43e59a0060d157c97de13f3 # frozen: 3.9.2 + rev: 7.1.1 hooks: - id: flake8 additional_dependencies: @@ -26,11 +26,11 @@ repos: - flake8-builtins - flake8-comprehensions - repo: https://github.com/myint/docformatter - rev: 67919ee01837761f2d954d7fbb08c12cdd38ec5a # frozen: v1.4 + rev: v1.7.5 hooks: - id: docformatter - repo: https://github.com/executablebooks/mdformat - rev: 767a107bac7c4503d9960bfd73f999c9950b69bf # frozen: 0.7.6 + rev: 0.7.17 hooks: - id: mdformat files: 'README.md'