Skip to content

Commit 5ddf690

Browse files
committed
ruff UP check
1 parent 55fcb9c commit 5ddf690

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ repos:
1616
- id: ruff-format
1717
args: ["--preview"]
1818
- id: ruff
19-
- repo: https://github.com/asottile/pyupgrade
20-
rev: v3.15.1
21-
hooks:
22-
- id: pyupgrade
23-
args: [--py37-plus]
2419
- repo: local
2520
hooks:
2621
- id: rst

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ lint.select = [
1616
"F", # https://pypi.org/project/pyflakes/
1717
"I", # https://pypi.org/project/isort/
1818
"S", # https://pypi.org/project/flake8-bandit/
19+
"UP", # https://pypi.org/project/upgrade-checker/
1920
]
2021

2122
[tool.ruff.lint.per-file-ignores]

pytest_rerunfailures.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import hashlib
2+
import importlib.metadata as importlib_metadata
23
import os
34
import platform
45
import re
@@ -15,11 +16,6 @@
1516
from _pytest.runner import runtestprotocol
1617
from packaging.version import parse as parse_version
1718

18-
if sys.version_info >= (3, 8):
19-
import importlib.metadata as importlib_metadata
20-
else:
21-
import importlib_metadata
22-
2319
try:
2420
from xdist.newhooks import pytest_handlecrashitem
2521

0 commit comments

Comments
 (0)