File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed
Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ]
Original file line number Diff line number Diff line change 11import hashlib
2+ import importlib .metadata as importlib_metadata
23import os
34import platform
45import re
1516from _pytest .runner import runtestprotocol
1617from 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-
2319try :
2420 from xdist .newhooks import pytest_handlecrashitem
2521
You can’t perform that action at this time.
0 commit comments