Skip to content

Commit f41be36

Browse files
authored
Bump tools and deps and fix ci (#75)
1 parent 1b19bbc commit f41be36

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
py:
21-
- "3.12.0-beta.2"
21+
- "3.12.0-rc.1"
2222
- "3.11"
2323
- "3.10"
2424
- 3.9
2525
- 3.8
26-
- 3.7
2726
steps:
2827
- name: setup python for tox
2928
uses: actions/setup-python@v4
@@ -62,7 +61,7 @@ jobs:
6261
tox_env:
6362
- type
6463
- dev
65-
- pkg_check
64+
- pkg_meta
6665
steps:
6766
- uses: actions/checkout@v3
6867
- name: setup Python 3.11

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ repos:
1717
rev: "0.13.1"
1818
hooks:
1919
- id: pyproject-fmt
20-
additional_dependencies: ["tox>=4.6.1"]
20+
additional_dependencies: ["tox>=4.9"]
2121
- repo: https://github.com/pre-commit/mirrors-prettier
22-
rev: "v3.0.1"
22+
rev: "v3.0.2"
2323
hooks:
2424
- id: prettier
2525
args: ["--print-width=120", "--prose-wrap=always"]
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.0.284"
27+
rev: "v0.0.285"
2828
hooks:
2929
- id: ruff
3030
args: [--fix, --exit-non-zero-on-fix]

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ keywords = [
1515
]
1616
license.file = "LICENSE"
1717
maintainers = [{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }]
18-
requires-python = ">=3.7"
18+
requires-python = ">=3.8"
1919
classifiers = [
2020
"Development Status :: 5 - Production/Stable",
2121
"Intended Audience :: Developers",
2222
"License :: OSI Approved :: MIT License",
2323
"Operating System :: OS Independent",
2424
"Programming Language :: Python",
2525
"Programming Language :: Python :: 3 :: Only",
26-
"Programming Language :: Python :: 3.7",
2726
"Programming Language :: Python :: 3.8",
2827
"Programming Language :: Python :: 3.9",
2928
"Programming Language :: Python :: 3.10",
@@ -36,11 +35,11 @@ dynamic = [
3635
"version",
3736
]
3837
dependencies = [
39-
"pytest>=7.3.2",
38+
"pytest>=7.4",
4039
]
4140
optional-dependencies.test = [
4241
"covdefaults>=2.3",
43-
"coverage>=7.2.7",
42+
"coverage>=7.3",
4443
"pytest-mock>=3.11.1",
4544
]
4645
urls.Homepage = "https://github.com/pytest-dev/pytest-print"
@@ -59,7 +58,7 @@ line-length = 120
5958
[tool.ruff]
6059
select = ["ALL"]
6160
line-length = 120
62-
target-version = "py37"
61+
target-version = "py38"
6362
isort = {known-first-party = ["pytest_print"], required-imports = ["from __future__ import annotations"]}
6463
ignore = [
6564
"ANN101", # no typoe annotation for self

tox.ini

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env_list =
1010
py38
1111
py37
1212
type
13-
readme
13+
pkg_meta
1414
skip_missing_interpreters = true
1515

1616
[testenv]
@@ -44,23 +44,24 @@ commands =
4444
[testenv:type]
4545
description = run type check on code base
4646
deps =
47-
mypy==1.3
47+
mypy==1.5.1
4848
set_env =
4949
{tty:MYPY_FORCE_COLOR = 1}
5050
commands =
5151
mypy --strict src
5252
mypy --strict tests
5353

54-
[testenv:readme]
54+
[testenv:pkg_meta]
5555
description = check that the long description is valid
5656
skip_install = true
5757
deps =
5858
build[virtualenv]>=0.10
59+
check-wheel-contents>=0.4
5960
twine>=4.0.2
60-
change_dir = {toxinidir}
6161
commands =
62-
python -m build -o {envtmpdir} .
63-
twine check {envtmpdir}/*
62+
python -m build -o {envtmpdir} -s -w .
63+
twine check {envtmpdir}{/}*
64+
check-wheel-contents --no-config {envtmpdir}
6465

6566
[testenv:dev]
6667
description = generate a DEV environment

0 commit comments

Comments
 (0)