Skip to content

Commit ae23aad

Browse files
authored
ci(tests): use new version of the coverage uploader (#345)
* use new version of the uploader gha since v2 is not supported anymore: https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/ * chore: specify language to avoid a pre-commit error * chore: remove language python for docformatter pre-commit * ci(docs): upgrade version of artifact uploader * chore(docformatter): attempt to use pyproject.toml * removing docformatter config from pyproject.toml and pin version of docformatter * docs(readme): update supported python versions
1 parent f83b808 commit ae23aad

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

.github/workflows/check-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Build documentation
2828
run: |
2929
mkdocs build
30-
- uses: actions/upload-artifact@v1
30+
- uses: actions/upload-artifact@v4
3131
with:
3232
name: DocumentationHTML
3333
path: site/

.github/workflows/run-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ jobs:
5757
files: ./coverage.xml
5858
flags: unittests
5959
fail_ci_if_error: true
60-
- uses: actions/upload-artifact@v2
60+
- uses: actions/upload-artifact@v4
6161
with:
6262
path: coverage.xml

.pre-commit-config.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 24.3.0
3+
rev: 25.1.0
44
hooks:
55
- id: black
66
language_version: python3
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.5.0
8+
rev: v5.0.0
99
hooks:
1010
- id: trailing-whitespace # This hook trims trailing whitespace.
1111
- id: check-docstring-first # Checks a common error of defining a docstring after code.
@@ -19,30 +19,33 @@ repos:
1919
hooks:
2020
- id: python-no-eval # A quick check for the eval() built-in function.
2121
- repo: https://github.com/PyCQA/docformatter
22-
rev: v1.7.5
22+
rev: eb1df347edd128b30cd3368dddc3aa65edcfac38 # Don't autoupdate until https://github.com/PyCQA/docformatter/issues/293 is fixed
2323
hooks:
2424
- id: docformatter
25-
args: [--in-place]
2625
exclude: mkdocs_macros.py
26+
args: [--in-place]
2727
- repo: https://github.com/PyCQA/flake8
28-
rev: 7.0.0
28+
rev: 7.2.0
2929
hooks:
3030
- id: flake8
3131
# additional_dependencies: [flake8-docstrings, flake8-bugbear, flake8-spellcheck, flake8-import-order]
3232
- repo: https://github.com/kynan/nbstripout
33-
rev: 0.7.1
33+
rev: 0.8.1
3434
hooks:
3535
- id: nbstripout
3636
- repo: https://github.com/asottile/blacken-docs
37-
rev: 1.16.0
37+
rev: 1.19.1
3838
hooks:
3939
- id: blacken-docs
4040
- repo: https://github.com/nbQA-dev/nbQA
41-
rev: 1.8.5
41+
rev: 1.9.1
4242
hooks:
4343
- id: nbqa-black
4444
args: [--nbqa-mutate]
4545

4646
ci:
4747
autoupdate_commit_msg: 'chore: pre-commit autoupdate'
4848
autoupdate_schedule: 'quarterly'
49+
50+
51+
# https://github.com/PyCQA/docformatter/pull/287

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/deepcharles/ruptures/graphs/commit-activity)
44
[![build](https://github.com/deepcharles/ruptures/actions/workflows/run-test.yml/badge.svg)](https://github.com/deepcharles/ruptures/actions/workflows/run-test.yml)
5-
![python](https://img.shields.io/badge/python-3.6%20|%203.7%20|%203.8%20|%203.9-blue)
5+
![python](https://img.shields.io/badge/python-3.8%20|%203.9%20|3.10%20|3.11%20|3.12-blue)
66
[![PyPI version](https://badge.fury.io/py/ruptures.svg)](https://badge.fury.io/py/ruptures)
77
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/ruptures.svg)](https://anaconda.org/conda-forge/ruptures)
88
[![docs](https://github.com/deepcharles/ruptures/actions/workflows/check-docs.yml/badge.svg)](https://github.com/deepcharles/ruptures/actions/workflows/check-docs.yml)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ addopts = "-vv"
1919
testpaths = ["tests"]
2020

2121
[tool.setuptools_scm]
22-
write_to = "src/ruptures/version.py"
22+
write_to = "src/ruptures/version.py"

0 commit comments

Comments
 (0)