style: sort imports ascending
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
|
from src.logs import setup_logs
|
||||||
from src.params import parse_parameters
|
from src.params import parse_parameters
|
||||||
from src.server import StaplerServer
|
from src.server import StaplerServer
|
||||||
from src.logs import setup_logs
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
+1
-1
@@ -15,5 +15,5 @@ dev = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff.lint]
|
[tool.ruff.lint]
|
||||||
select = ["E", "F", "C", "W"]
|
select = ["E", "F", "C", "W", "I"]
|
||||||
ignore = ["E501"]
|
ignore = ["E501"]
|
||||||
|
|||||||
+4
-4
@@ -1,9 +1,9 @@
|
|||||||
import os
|
|
||||||
import io
|
import io
|
||||||
import tarfile
|
|
||||||
import shutil
|
|
||||||
import re
|
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import shutil
|
||||||
|
import tarfile
|
||||||
|
|
||||||
|
|
||||||
class DataDir:
|
class DataDir:
|
||||||
|
|||||||
+6
-6
@@ -1,13 +1,13 @@
|
|||||||
import typing
|
|
||||||
import http.server
|
|
||||||
import http
|
import http
|
||||||
import tarfile
|
import http.server
|
||||||
import re
|
|
||||||
import io
|
import io
|
||||||
import os
|
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import tarfile
|
||||||
|
import typing
|
||||||
|
|
||||||
from . import project, params, registry, data_dir, logs
|
from . import data_dir, logs, params, project, registry
|
||||||
|
|
||||||
|
|
||||||
class RequestHandler(http.server.SimpleHTTPRequestHandler):
|
class RequestHandler(http.server.SimpleHTTPRequestHandler):
|
||||||
|
|||||||
+2
-1
@@ -1,7 +1,8 @@
|
|||||||
import os.path
|
import os.path
|
||||||
import toml
|
|
||||||
import typing
|
import typing
|
||||||
|
|
||||||
|
import toml
|
||||||
|
|
||||||
__project_data = None
|
__project_data = None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from . import params, page, data_dir
|
from . import data_dir, page, params
|
||||||
|
|
||||||
|
|
||||||
class Registry:
|
class Registry:
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
import http.server
|
import http.server
|
||||||
import os
|
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
|
|
||||||
from . import params, handler, registry, project
|
from . import handler, params, project, registry
|
||||||
|
|
||||||
|
|
||||||
class StaplerServer:
|
class StaplerServer:
|
||||||
|
|||||||
Reference in New Issue
Block a user