Skip to content

Commit 97e4d8f

Browse files
committed
Add autoflake8 to pre-commit
1 parent 9be8589 commit 97e4d8f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
default_language_version:
22
python: "3.10"
33
repos:
4+
- repo: https://github.com/myint/autoflake
5+
rev: v1.5.3
6+
hooks:
7+
- id: autoflake
8+
name: autoflake
9+
args: [ "--in-place", "--remove-unused-variables", "--remove-all-unused-imports" ]
10+
language: python
11+
files: \.py$
412
- repo: https://github.com/asottile/reorder_python_imports
513
rev: v3.8.2
614
hooks:

src/pytest_cpp/catch2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ def _parse_xml(
130130
root = ElementTree.parse(xml_filename)
131131
result = []
132132
for test_suite in root.findall("Group"):
133-
test_suite_name = test_suite.attrib["name"]
134133
for test_case in test_suite.findall("TestCase"):
135134
test_name = test_case.attrib["name"]
136135
test_result = test_case.find("OverallResult")

src/pytest_cpp/plugin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from pytest_cpp.google import GoogleTestFacade
2323

2424
if TYPE_CHECKING:
25-
from typing_extensions import TypeAlias
2625
from _pytest._code.code import TerminalRepr
2726

2827

0 commit comments

Comments
 (0)