Skip to content

Commit 58190f7

Browse files
committed
pre-commit run ruff-check -a
1 parent 25c34c0 commit 58190f7

32 files changed

Lines changed: 16 additions & 57 deletions

File tree

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@
133133
# --- Extlinks configuration
134134
extlinks = {
135135
"gh-issue": (
136-
f"https://github.com/bazel-contrib/rules_python/issues/%s",
136+
"https://github.com/bazel-contrib/rules_python/issues/%s",
137137
"#%s issue",
138138
),
139-
"gh-path": (f"https://github.com/bazel-contrib/rules_python/tree/main/%s", "%s"),
140-
"gh-pr": (f"https://github.com/bazel-contrib/rules_python/pull/%s", "#%s PR"),
139+
"gh-path": ("https://github.com/bazel-contrib/rules_python/tree/main/%s", "%s"),
140+
"gh-pr": ("https://github.com/bazel-contrib/rules_python/pull/%s", "#%s PR"),
141141
}
142142

143143
# --- MyST configuration

examples/bzlmod/entry_points/tests/pylint_deps_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import os
1616
import pathlib
1717
import subprocess
18-
import tempfile
1918
import unittest
2019

2120
from python.runfiles import runfiles

examples/bzlmod/test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515
import os
16-
import pathlib
1716
import re
1817
import sys
1918
import unittest

examples/bzlmod/tests/my_lib_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import os
1615
import sys
1716

1817
import libs.my_lib as my_lib

examples/multi_python_versions/tests/my_lib_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import os
1615
import sys
1716

1817
import libs.my_lib as my_lib

gazelle/manifest/copy_to_source.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import os
88
import shutil
9-
import stat
109
import sys
1110
from pathlib import Path
1211

python/private/py_console_script_gen.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@
3737
import argparse
3838
import configparser
3939
import pathlib
40-
import re
41-
import sys
42-
import textwrap
4340

4441
_ENTRY_POINTS_TXT = "entry_points.txt"
4542

python/private/pypi/repack_whl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def main(sys_argv):
174174
rel_path = p.relative_to(patched_wheel_dir)
175175
out.add_file(str(rel_path), p)
176176

177-
logging.debug(f"Writing RECORD file")
177+
logging.debug("Writing RECORD file")
178178
got_record = out.add_recordfile()
179179

180180
if got_record == record_contents:

python/private/pypi/whl_installer/arguments.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
import argparse
1616
import json
17-
import pathlib
1817
from typing import Any, Dict, Set
1918

2019

python/private/pypi/whl_installer/wheel_installer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@
1818
import glob
1919
import json
2020
import os
21-
import re
2221
import subprocess
2322
import sys
2423
from pathlib import Path
2524
from tempfile import NamedTemporaryFile
26-
from typing import Dict, List, Optional, Set, Tuple
2725

2826
from python.private.pypi.whl_installer import arguments
2927

0 commit comments

Comments
 (0)