Skip to content

Commit 69e4b10

Browse files
[pre-commit.ci] pre-commit autoupdate (#86)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.0.282 → v0.0.284](astral-sh/ruff-pre-commit@v0.0.282...v0.0.284) - [github.com/tox-dev/pyproject-fmt: 0.13.0 → 0.13.1](tox-dev/pyproject-fmt@0.13.0...0.13.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Signed-off-by: Bernát Gábor <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: Bernát Gábor <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent aab679c commit 69e4b10

File tree

6 files changed

+27
-26
lines changed

6 files changed

+27
-26
lines changed

.github/workflows/check.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
- "3.10"
2323
- "3.9"
2424
- "3.8"
25-
- "3.7"
2625
os:
2726
- ubuntu-latest
2827
- windows-2022

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: "v0.0.282"
8+
rev: "v0.0.284"
99
hooks:
1010
- id: ruff
1111
args: [--fix, --exit-non-zero-on-fix]
@@ -19,10 +19,10 @@ repos:
1919
- id: tox-ini-fmt
2020
args: ["-p", "fix"]
2121
- repo: https://github.com/tox-dev/pyproject-fmt
22-
rev: "0.13.0"
22+
rev: "0.13.1"
2323
hooks:
2424
- id: pyproject-fmt
25-
additional_dependencies: ["tox>=4.6"]
25+
additional_dependencies: ["tox>=4.8"]
2626
- repo: https://github.com/pre-commit/mirrors-prettier
2727
rev: "v3.0.1"
2828
hooks:

pyproject.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
build-backend = "hatchling.build"
33
requires = [
44
"hatch-vcs>=0.3",
5-
"hatchling>=1.14.1",
5+
"hatchling>=1.18",
66
]
77

88
[project]
@@ -19,7 +19,7 @@ keywords = [
1919
license = "MIT"
2020
maintainers = [{ name = "Bernát Gábor", email = "[email protected]" }]
2121
authors = [{ name = "Bernát Gábor", email = "[email protected]" }]
22-
requires-python = ">=3.7"
22+
requires-python = ">=3.8"
2323
classifiers = [
2424
"Development Status :: 5 - Production/Stable",
2525
"Framework :: tox",
@@ -29,7 +29,6 @@ classifiers = [
2929
"Operating System :: Microsoft :: Windows",
3030
"Operating System :: POSIX",
3131
"Programming Language :: Python :: 3 :: Only",
32-
"Programming Language :: Python :: 3.7",
3332
"Programming Language :: Python :: 3.8",
3433
"Programming Language :: Python :: 3.9",
3534
"Programming Language :: Python :: 3.10",
@@ -42,14 +41,15 @@ dynamic = [
4241
"version",
4342
]
4443
dependencies = [
45-
"devpi-client>=6.0.4",
46-
"devpi-server>=6.8",
44+
"devpi-client>=6.0.5",
45+
"devpi-server>=6.9.2",
46+
'typing-extensions>=4.7.1; python_version < "3.11"',
4747
]
4848
optional-dependencies.test = [
4949
"covdefaults>=2.3",
50-
"httpx>=0.24",
51-
"pytest>=7.3.1",
52-
"pytest-cov>=4",
50+
"httpx>=0.24.1",
51+
"pytest>=7.4",
52+
"pytest-cov>=4.1",
5353
]
5454
urls.Homepage = "https://github.com/tox-dev/devpi-process#readme"
5555
urls.Source = "https://github.com/tox-dev/devpi-process"
@@ -65,7 +65,7 @@ line-length = 120
6565
[tool.ruff]
6666
select = ["ALL"]
6767
line-length = 120
68-
target-version = "py37"
68+
target-version = "py38"
6969
isort = {known-first-party = ["devpi_process"], required-imports = ["from __future__ import annotations"]}
7070
ignore = [
7171
"ANN101", # no typoe annotation for self

src/devpi_process/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
if TYPE_CHECKING:
1818
from types import TracebackType
1919

20+
if sys.version_info >= (3, 11): # pragma: no cover (py311+)
21+
from typing import Self
22+
else: # pragma: no cover (<py311)
23+
from typing_extensions import Self
24+
2025

2126
def _check_call(cmd: list[str]) -> None:
2227
run(cmd, check=True, capture_output=True) # noqa: S603
@@ -109,7 +114,7 @@ def user(self) -> str:
109114
""":return: username of the index server"""
110115
return "root"
111116

112-
def __enter__(self) -> IndexServer:
117+
def __enter__(self) -> Self:
113118
""":return: start the index server"""
114119
self._create_and_start_server()
115120
self._setup_client()

tests/demo_pkg_inline/build.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,13 @@
3838
Tag: py{sys.version_info[0]}-none-any
3939
""",
4040
f"{dist_info}/top_level.txt": name,
41-
record: """
42-
{0}/__init__.py,,
43-
{1}/METADATA,,
44-
{1}/WHEEL,,
45-
{1}/top_level.txt,,
46-
{1}/RECORD,,
47-
""".format(
48-
name,
49-
dist_info,
50-
),
41+
record: f"""
42+
{name}/__init__.py,,
43+
{dist_info}/METADATA,,
44+
{dist_info}/WHEEL,,
45+
{dist_info}/top_level.txt,,
46+
{dist_info}/RECORD,,
47+
""",
5148
}
5249

5350

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ commands =
3434
description = run static analysis and style check using flake8
3535
skip_install = true
3636
deps =
37-
pre-commit>=3.2.2
37+
pre-commit>=3.3.3
3838
pass_env =
3939
HOMEPATH
4040
PROGRAMDATA
@@ -44,7 +44,7 @@ commands =
4444
[testenv:type]
4545
description = run type check on code base
4646
deps =
47-
mypy==1.3
47+
mypy==1.5
4848
set_env =
4949
{tty:MYPY_FORCE_COLOR = 1}
5050
commands =

0 commit comments

Comments
 (0)