Skip to content

Commit

Permalink
Bump actions/setup-python from 4 to 5 (#95)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Bernát Gábor <[email protected]>
  • Loading branch information
dependabot[bot] authored and gaborbernat committed Dec 9, 2023
1 parent f8dbab6 commit d4384c8
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 20 deletions.
5 changes: 5 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
changelog:
exclude:
authors:
- dependabot
- pre-commit-ci
6 changes: 5 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: check
on:
workflow_dispatch:
push:
branches: "main"
tags-ignore: ["**"]
pull_request:
schedule:
- cron: "0 8 * * *"
Expand All @@ -17,6 +20,7 @@ jobs:
fail-fast: false
matrix:
py:
- "3.12"
- "3.11"
- "3.10"
- "3.9"
Expand All @@ -30,7 +34,7 @@ jobs:
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: Install self
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ jobs:
id-token: write
steps:
- name: Setup python to build package
uses: actions/setup-python@v4
uses: actions/setup-python@v5
cache: "pip"
with:
python-version: "3.11"
python-version: "3.12"
- name: Install build
run: python -m pip install build
- uses: actions/checkout@v4
Expand Down
9 changes: 2 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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]
Expand All @@ -22,12 +22,7 @@ repos:
rev: "1.5.3"
hooks:
- id: pyproject-fmt
additional_dependencies: ["tox>=4.11.2"]
- 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
13 changes: 9 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
build-backend = "hatchling.build"
requires = [
"hatch-vcs>=0.3",
"hatch-vcs>=0.4",
"hatchling>=1.18",
]

Expand Down Expand Up @@ -38,14 +38,14 @@ dynamic = [
"version",
]
dependencies = [
"tox>=4.11.2",
"tox>=4.11.4",
]
optional-dependencies.test = [
"covdefaults>=2.3",
"devpi-process>=1",
"pytest>=7.4.2",
"pytest>=7.4.3",
"pytest-cov>=4.1",
"pytest-mock>=3.11.1",
"pytest-mock>=3.12",
]
urls.Documentation = "https://github.com/tox-dev/tox-gh#tox-gh"
urls.Homepage = "https://github.com/tox-dev/tox-gh"
Expand Down Expand Up @@ -98,3 +98,8 @@ run.plugins = ["covdefaults"]
python_version = "3.11"
show_error_codes = true
strict = true
overrides = [
{ module = [
"virtualenv.*",
], ignore_missing_imports = true },
]
2 changes: 1 addition & 1 deletion src/tox_gh/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from tox.config.types import EnvList
from tox.execute import Outcome
from tox.plugin import impl
from virtualenv.discovery.py_info import PythonInfo # type: ignore[import] # no types defined
from virtualenv.discovery.py_info import PythonInfo

if TYPE_CHECKING:
from tox.session.state import State
Expand Down
9 changes: 4 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ env_list =
py310
py39
py38
py37
type
readme
skip_missing_interpreters = true
Expand All @@ -33,7 +32,7 @@ commands =
description = run static analysis and style check using flake8
skip_install = true
deps =
pre-commit>=3.4
pre-commit>=3.5
pass_env =
HOMEPATH
PROGRAMDATA
Expand All @@ -43,7 +42,7 @@ commands =
[testenv:type]
description = run type check on code base
deps =
mypy==1.5.1
mypy==1.7.1
set_env =
{tty:MYPY_FORCE_COLOR = 1}
commands =
Expand Down Expand Up @@ -75,7 +74,7 @@ commands =
[gh]
python =
3.8 = py38
3.9 = py39, type, dev, readme
3.9 = py39
3.10 = py310
3.11 = py311
3.12 = py312
3.12 = py312, type, dev, readme

0 comments on commit d4384c8

Please sign in to comment.