Skip to content

Commit 1901fe6

Browse files
committed
Update pre-commit
1 parent cd861dc commit 1901fe6

3 files changed

Lines changed: 10 additions & 23 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exclude: ^pyperformance/data-files/
22
repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.13.1
4+
rev: v0.15.11
55
hooks:
66
- id: ruff-check
77
name: Run Ruff (lint)
@@ -11,11 +11,11 @@ repos:
1111
args: [--exit-non-zero-on-fix]
1212

1313
- repo: https://github.com/tox-dev/pyproject-fmt
14-
rev: v2.6.0
14+
rev: v2.21.1
1515
hooks:
1616
- id: pyproject-fmt
1717

1818
- repo: https://github.com/abravalheri/validate-pyproject
19-
rev: v0.24.1
19+
rev: v0.25
2020
hooks:
2121
- id: validate-pyproject

pyperformance/tests/data/bm_local_wheel/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[project]
22
name = "pyperformance-bm-local-wheel"
33
version = "1.0"
4-
54
requires-python = ">=3.7"
65
classifiers = [
76
"Programming Language :: Python :: 3 :: Only",
@@ -12,6 +11,7 @@ classifiers = [
1211
"Programming Language :: Python :: 3.11",
1312
"Programming Language :: Python :: 3.12",
1413
"Programming Language :: Python :: 3.13",
14+
"Programming Language :: Python :: 3.14",
1515
]
1616
dependencies = [ "pyperf" ]
1717
urls = { repository = "https://github.com/python/pyperformance" }

pyproject.toml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@
3636
# - set version to n+1: pyperformance/__init__.py and doc/conf.py
3737
# - git commit -a -m "post-release"
3838
# - git push
39-
4039
[build-system]
4140
build-backend = "setuptools.build_meta"
42-
4341
requires = [ "setuptools>=61" ]
4442

4543
[project]
@@ -69,7 +67,6 @@ dependencies = [
6967
"pyperf",
7068
"tomli; python_version<'3.11'",
7169
]
72-
7370
optional-dependencies.dev = [
7471
"mypy==1.19.1",
7572
"tomli", # Needed even on 3.11+ for typechecking with mypy
@@ -80,22 +77,15 @@ scripts.pyperformance = "pyperformance.cli:main"
8077

8178
[tool.setuptools]
8279
include-package-data = true
83-
84-
[tool.setuptools.packages]
85-
find = {} # Scanning implicit namespaces is active by default
86-
87-
[tool.setuptools.dynamic]
88-
version = { attr = "pyperformance.__version__" }
80+
dynamic.version = { attr = "pyperformance.__version__" }
81+
packages.find = {} # Scanning implicit namespaces is active by default
8982

9083
[tool.ruff]
9184
target-version = "py310"
92-
9385
exclude = [
9486
"pyperformance/data-files/",
9587
]
96-
9788
fix = true
98-
9989
lint.select = [
10090
"E", # pycodestyle errors
10191
"F", # pyflakes errors
@@ -121,13 +111,10 @@ warn_redundant_casts = true
121111
warn_unused_ignores = true
122112
warn_unused_configs = true
123113
files = [
124-
'pyperformance/',
114+
"pyperformance/",
125115
]
126116
exclude = [
127-
'pyperformance/data-files/',
128-
'pyperformance/tests/',
117+
"pyperformance/data-files/",
118+
"pyperformance/tests/",
129119
]
130-
131-
[[tool.mypy.overrides]]
132-
module = "pyperf"
133-
ignore_missing_imports = true
120+
overrides = [ { module = "pyperf", ignore_missing_imports = true } ]

0 commit comments

Comments
 (0)