Skip to content

Commit

Permalink
Bump actions/setup-python from 4 to 5 (#248)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] committed Dec 9, 2023
1 parent 4b68392 commit 1db2522
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 31 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/check.yml
@@ -1,6 +1,8 @@
name: check
on:
workflow_dispatch:
push:
branches: "main"
tags-ignore: ["**"]
pull_request:
schedule:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -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
Expand Down
11 changes: 3 additions & 8 deletions .pre-commit-config.yaml
Expand Up @@ -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
Expand All @@ -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
Expand Down
14 changes: 7 additions & 7 deletions 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]
Expand Down Expand Up @@ -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"
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Expand Up @@ -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
Expand All @@ -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 =
Expand All @@ -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 =
Expand All @@ -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
Expand All @@ -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 =
*
Expand All @@ -97,7 +98,6 @@ commands =
twine check {envtmpdir}/*

[testenv:docs]
base_python = 3.10
extras =
docs
commands =
Expand Down

0 comments on commit 1db2522

Please sign in to comment.