Skip to content

Commit 13be6cc

Browse files
committed
Sort imports
1 parent 2917633 commit 13be6cc

File tree

731 files changed

+2162
-1637
lines changed

Some content is hidden

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

731 files changed

+2162
-1637
lines changed

.github/workflows/check_repo_ci_jobs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import os
12
import pathlib
23
import shutil
4+
import zipfile
35

46
import requests
5-
import zipfile
6-
import os
77

88
# To test this locally, set these environment variables
99
REPO_OWNER = os.environ.get("REPO_OWNER", "IfcOpenShell/IfcOpenShell")

aws/lambda/example_handler/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import boto3
12
import ifcopenshell
23
import ifcopenshell.util.element
3-
import boto3
44

55
s3 = boto3.client('s3')
66

choco/bonsai/choco_release.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
import os
1414
import pathlib
1515
import re
16+
from typing import NoReturn
1617
from urllib import request
18+
1719
from github import Github
18-
from typing import NoReturn
1920

2021

2122
def get_repo_tag_names() -> list[str]:

choco/bonsai/tools/disable_blenderbim_addon.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import bpy
22

3-
43
bpy.ops.preferences.addon_disable(module='blenderbim')
54
bpy.ops.wm.save_userpref()
65

choco/bonsai/tools/enable_blenderbim_addon.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import bpy
22

3-
43
bpy.ops.preferences.addon_enable(module='blenderbim')
54
bpy.ops.wm.save_userpref()
65

conda/update_version_init.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import re
21
import argparse
2+
import re
33
from pathlib import Path
44

5+
56
def update_version(file_path: str, version: str) -> None:
67
"""Update the version string in the given __init__.py file."""
78
file_path = Path(file_path)

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import textwrap
2+
23
# The `extensions` list should already be in here from `sphinx-quickstart`
34
extensions = [
45
# there may be others here already, e.g. 'sphinx.ext.mathjax'

docs/generate_docs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# This program requires doxygen, sphinx, breathe and exhale.
22

3+
import multiprocessing
34
import os
4-
import sys
55
import shutil
66
import subprocess
7-
import multiprocessing
7+
import sys
88

99
# some extra check to see if we can find sphinx in pypy bin dir
1010
sphinx_build = os.path.join(os.path.dirname(sys.executable), 'sphinx-build')

nix/build-all.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,35 +99,36 @@
9999
100100
"""
101101

102+
import glob
102103
import logging
104+
import multiprocessing
103105
import os
106+
import platform
104107
import re
105-
import sys
106-
import glob
107-
import subprocess as sp
108108
import shutil
109-
import tarfile
110-
import multiprocessing
111-
import platform
112-
import threading
113-
import sysconfig
114-
from datetime import datetime
115109

116110
# @todo temporary for expired mpfr.org certificate on 2023-04-08
117111
import ssl
112+
import subprocess as sp
113+
import sys
114+
import sysconfig
115+
import tarfile
116+
import threading
117+
from datetime import datetime
118118

119119
ssl._create_default_https_context = ssl._create_unverified_context
120120

121121
import time
122-
from urllib.request import urlretrieve
123122
from collections.abc import Generator, Sequence
124123
from pathlib import Path
124+
from urllib.request import urlretrieve
125125

126126
try:
127-
from typing import Union, Literal
127+
from typing import Literal, Union
128128
except:
129129
# python 3.6 compatibility for rocky 8
130130
from typing import Union
131+
131132
from typing_extensions import Literal
132133

133134
logger = logging.getLogger(__name__)

pyodide/cache_dependencies.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
Usage: python cache_dependencies.py [pack|unpack]
99
"""
1010

11-
import tarfile
1211
import sys
12+
import tarfile
1313
from pathlib import Path
1414
from typing import Literal
1515

16-
1716
CACHE_PREFIX = "cache-"
1817

1918

0 commit comments

Comments
 (0)