Skip to content

Commit

Permalink
Sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nevillelyh committed Oct 20, 2024
1 parent 854278e commit 9d84556
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
3 changes: 3 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[format]
quote-style = 'single'

[lint]
extend-select = ['I']
2 changes: 1 addition & 1 deletion src/cog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from typing import Optional
import argparse
import hashlib
import json
Expand All @@ -7,6 +6,7 @@
import re
import shutil
import subprocess
from typing import Optional

from monogen import MONOGENS
from util import Version, is_done, mark_done
Expand Down
7 changes: 3 additions & 4 deletions src/cuda.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from dataclasses import dataclass
from urls import cuda_urls, cudnn_urls

import argparse
import logging
import os
import urllib.parse
import re
import shutil
import subprocess
import urllib.parse
from dataclasses import dataclass

from urls import cuda_urls, cudnn_urls
from util import Version, is_done, mark_done


Expand Down
2 changes: 1 addition & 1 deletion src/monogen.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dataclasses import dataclass
import logging
import os.path
from dataclasses import dataclass

from util import setup_logging

Expand Down
2 changes: 1 addition & 1 deletion src/update.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from tempfile import TemporaryDirectory
import argparse
import logging
import os.path
from tempfile import TemporaryDirectory

from monogen import MONOGENS, MonoGen
from util import add_arguments, desc_version, desc_version_key, setup_logging
Expand Down
5 changes: 2 additions & 3 deletions src/util.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from dataclasses import dataclass
from typing import Iterable
import argparse
import logging
import os.path
import re
import shutil
import sys

from dataclasses import dataclass
from typing import Iterable

VERSION_REGEX = re.compile(
r'^(?P<major>\d+)(\.(?P<minor>\d+)(\.(?P<patch>\d+)(\.(?P<extra>.+))?)?)?'
Expand Down

0 comments on commit 9d84556

Please sign in to comment.