diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 5b60df141..d5b188c2f 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -30,7 +30,7 @@ jobs: sudo apt update sudo apt-get install -y libopenslide-dev openslide-tools libopenjp2-7 libopenjp2-tools python -m pip install --upgrade pip - python -m pip install ruff==0.6.5 pytest pytest-cov pytest-runner + python -m pip install ruff==0.7.0 pytest pytest-cov pytest-runner pip install -r requirements/requirements.txt - name: Cache tiatoolbox static assets uses: actions/cache@v3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b2a53033d..48ddee7ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ ci: autofix_prs: true - autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' - autoupdate_schedule: 'weekly' + autoupdate_commit_msg: ':technologist: pre-commit autoupdate' + autoupdate_schedule: 'monthly' repos: - repo: local hooks: @@ -11,7 +11,7 @@ repos: files: tests/.*\btest_\w*.py require_serial: true language: system - stages: [push] + stages: [pre-push] - id: notebook-markdown-format name: notebook markdown format entry: python pre-commit/notebook_markdown_format.py @@ -23,7 +23,7 @@ repos: - mdformat-black - mdformat-myst - repo: https://github.com/executablebooks/mdformat - rev: 0.7.17 + rev: 0.7.18 hooks: - id: mdformat # Optionally add plugins @@ -31,7 +31,7 @@ repos: - mdformat-gfm # GitHub flavoured markdown - mdformat-black # Black formatting for python verbatim blocks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-ast # Simply checks whether the files parse as valid Python. - id: fix-byte-order-marker # Removes utf-8 byte order marker. @@ -60,7 +60,7 @@ repos: - id: rst-inline-touching-normal # Detect mistake of inline code touching normal text in rst. - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.6.5 + rev: v0.7.0 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/requirements/requirements_dev.txt b/requirements/requirements_dev.txt index 861e571d5..3ce8e25b6 100644 --- a/requirements/requirements_dev.txt +++ b/requirements/requirements_dev.txt @@ -10,7 +10,7 @@ pytest>=7.2.0 pytest-cov>=4.0.0 pytest-runner>=6.0 pytest-xdist[psutil] -ruff==0.6.5 # This will be updated by pre-commit bot to latest version +ruff==0.7.0 # This will be updated by pre-commit bot to latest version toml>=0.10.2 twine>=4.0.1 wheel>=0.37.1