Skip to content

Commit 9f565f9

Browse files
committed
Sort imports with ruff
1 parent 506c7b0 commit 9f565f9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+111
-84
lines changed

bin/check/license.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
$ python3 bin/check/license.py
88
"""
99

10-
from typing import List, Tuple
11-
1210
import json
1311
import subprocess
12+
from typing import List, Tuple
1413

1514

1615
def main():

bin/check/rust_version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
import datetime
33
import json
44
import os
5-
import requests
65
import sys
76

7+
import requests
8+
89

910
def get_latest_release():
1011
r = requests.get("https://api.github.com/repos/rust-lang/rust/releases")

bin/coverage_uncovered_lines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python3
22
import sys
3+
34
from bs4 import BeautifulSoup
45

56
COVERAGE_DIR = "target/coverage"

bin/docs/build_man_md.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
from typing import List
1717

1818
from markdown import (
19-
parse_markdown,
20-
MarkdownDoc,
2119
Header,
22-
Paragraph,
23-
Whitespace,
20+
MarkdownDoc,
2421
Node,
22+
Paragraph,
2523
Table,
24+
Whitespace,
25+
parse_markdown,
2626
)
2727

2828

bin/docs/build_readme.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import sys
2121
from pathlib import Path
2222

23-
from markdown import parse_markdown, MarkdownDoc
23+
from markdown import MarkdownDoc, parse_markdown
2424

2525

2626
def build_home_md(text: str) -> MarkdownDoc:

bin/docs/build_standalone_md.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
import re
1414
import sys
1515
import unicodedata
16+
from pathlib import Path
1617

1718
import markdown
18-
from markdown import MarkdownDoc, Paragraph, RefLink, Header, Whitespace, Table
19-
from pathlib import Path
19+
from markdown import Header, MarkdownDoc, Paragraph, RefLink, Table, Whitespace
2020

2121

2222
def add_section_header(doc: MarkdownDoc, title: str):

bin/docs/markdown.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99

1010
import re
1111
import unicodedata
12+
from parser import Parser
1213
from textwrap import dedent
1314
from typing import List, Optional
1415

15-
from parser import Parser
16-
1716

1817
class Node:
1918
"""Represent the base class for a Markdown document token."""

bin/release/gen_manpage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
1212
"""
1313

14-
import sys
1514
import re
15+
import sys
1616
from datetime import date
1717
from typing import Optional
1818

bin/release/get_release_note.test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
import unittest
44

55
from get_release_note import (
6-
Pull,
76
Issue,
7+
Pull,
88
authors_from_issues,
99
generate_md,
1010
pulls_from_issues,
1111
webscrapping_linked_pulls,
1212
)
1313

14-
1514
ISSUES = [
1615
Issue(number=1, tags=["enhancement"], author="bob", pulls=[Pull("url1", "pull1")]),
1716
Issue(

bin/spec/options/format.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python3
22
import sys
3+
34
from option import Option
45

56
"""

0 commit comments

Comments
 (0)