From 1db25222bcc480c6040c85dfcbb4422aeb612190 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 8 Dec 2023 20:59:55 -0800 Subject: [PATCH] Bump actions/setup-python from 4 to 5 (#248) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/check.yml | 18 ++++++++++-------- .github/workflows/release.yml | 4 ++-- .pre-commit-config.yaml | 11 +++-------- pyproject.toml | 14 +++++++------- tox.ini | 12 ++++++------ 5 files changed, 28 insertions(+), 31 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 660273b..de34370 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,6 +1,8 @@ name: check on: + workflow_dispatch: push: + branches: "main" tags-ignore: ["**"] pull_request: schedule: @@ -31,16 +33,16 @@ jobs: steps: - name: Setup python for tox - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install tox run: python -m pip install tox - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup python for test ${{ matrix.py }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.py }} - name: Pick environment to run @@ -82,9 +84,9 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Install tox run: python -m pip install tox - name: Setup coverage tool @@ -126,10 +128,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Setup Python "3.11" - uses: actions/setup-python@v4 + - name: Setup Python "3.12" + uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install tox run: python -m pip install tox - name: Setup test suite diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 69170cc..9773e63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,9 +13,9 @@ jobs: id-token: write steps: - name: Setup python to build package - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install build run: python -m pip install build - uses: actions/checkout@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 06da71e..7588736 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,11 +5,11 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.6" + rev: "v0.1.7" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - - repo: https://github.com/psf/black-pre-commit-mirror + - repo: https://github.com/psf/black rev: 23.11.0 hooks: - id: black @@ -22,12 +22,7 @@ repos: rev: "1.5.3" hooks: - id: pyproject-fmt - additional_dependencies: ["tox>=4.6.4"] - - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v4.0.0-alpha.3" - hooks: - - id: prettier - args: ["--print-width=120", "--prose-wrap=always"] + additional_dependencies: ["tox>=4.11.4"] - repo: meta hooks: - id: check-hooks-apply diff --git a/pyproject.toml b/pyproject.toml index 9e0c101..b35c39e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,8 @@ [build-system] build-backend = "hatchling.build" requires = [ - "hatch-vcs>=0.3", - "hatchling>=1.17.1", + "hatch-vcs>=0.4", + "hatchling>=1.18", ] [project] @@ -45,17 +45,17 @@ dynamic = [ "version", ] optional-dependencies.docs = [ - "furo>=2023.7.26", + "furo>=2023.9.10", "proselint>=0.13", - "sphinx>=7.1.1", - "sphinx-autodoc-typehints>=1.24", + "sphinx>=7.2.6", + "sphinx-autodoc-typehints>=1.25.2", ] optional-dependencies.test = [ "appdirs==1.4.4", "covdefaults>=2.3", - "pytest>=7.4", + "pytest>=7.4.3", "pytest-cov>=4.1", - "pytest-mock>=3.11.1", + "pytest-mock>=3.12", ] urls.Documentation = "https://platformdirs.readthedocs.io" urls.Homepage = "https://github.com/platformdirs/platformdirs" diff --git a/tox.ini b/tox.ini index 1844288..a6d51ad 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,7 @@ commands = description = run static analysis and style check using flake8 skip_install = true deps = - pre-commit>=3.3.3 + pre-commit>=3.5 pass_env = HOMEPATH PROGRAMDATA @@ -50,7 +50,7 @@ commands = [testenv:type] description = run type check on code base deps = - mypy==1.4.1 + mypy==1.7.1 set_env = {tty:MYPY_FORCE_COLOR = 1} commands = @@ -62,8 +62,8 @@ description = combine coverage files and generate diff (against DIFF_AGAINST def skip_install = true deps = covdefaults>=2.3 - coverage[toml]>=7.2.7 - diff-cover>=7.7 + coverage[toml]>=7.3.2 + diff-cover>=8.0.1 extras = parallel_show_output = true pass_env = @@ -77,6 +77,7 @@ commands = coverage html -d {toxworkdir}/htmlcov diff-cover --compare-branch {env:DIFF_AGAINST:origin/main} {toxworkdir}/coverage.xml depends = + py312 py311 py310 py39 @@ -87,7 +88,7 @@ depends = description = check that the long description is valid skip_install = true deps = - build[virtualenv]>=0.10 + build[virtualenv]>=1.0.3 twine>=4.0.2 pass_env = * @@ -97,7 +98,6 @@ commands = twine check {envtmpdir}/* [testenv:docs] -base_python = 3.10 extras = docs commands =