Skip to content

Commit 76ead87

Browse files
committed
Bump Ruff to 0.6.0
1 parent 3cebbd9 commit 76ead87

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ docs = [
8181
]
8282
lint = [
8383
"flake8>=6.0",
84-
"ruff==0.5.7",
84+
"ruff==0.6.0",
8585
"mypy==1.11.1",
8686
"sphinx-lint>=0.9",
8787
"types-colorama==0.4.15.20240311",

tests/test_builders/test_build_epub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import os
44
import subprocess
5+
import xml.etree.ElementTree as ET
56
from pathlib import Path
67
from subprocess import CalledProcessError
7-
from xml.etree import ElementTree
88

99
import pytest
1010

@@ -37,7 +37,7 @@ def __init__(self, tree):
3737

3838
@classmethod
3939
def fromstring(cls, string):
40-
tree = ElementTree.fromstring(string) # NoQA: S314 # using known data in tests
40+
tree = ET.fromstring(string) # NoQA: S314 # using known data in tests
4141
return cls(tree)
4242

4343
def find(self, match):

tests/test_domains/test_domain_c.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""Tests the C Domain"""
22

33
import itertools
4+
import xml.etree.ElementTree as ET
45
import zlib
56
from io import StringIO
6-
from xml.etree import ElementTree
77

88
import pytest
99

@@ -717,7 +717,7 @@ def extract_role_links(app, filename):
717717
lis = [l for l in t.split('\n') if l.startswith('<li')]
718718
entries = []
719719
for l in lis:
720-
li = ElementTree.fromstring(l) # NoQA: S314 # using known data in tests
720+
li = ET.fromstring(l) # NoQA: S314 # using known data in tests
721721
aList = list(li.iter('a'))
722722
assert len(aList) == 1
723723
a = aList[0]

0 commit comments

Comments
 (0)