File tree Expand file tree Collapse file tree 6 files changed +11
-8
lines changed
Expand file tree Collapse file tree 6 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 44![ Python version range] ( https://img.shields.io/badge/python-2.7%20|%203.5%20|%203.6%20|%203.7%20|%203.8%20|3.9-blue.svg )
55![ Python lint & test] ( https://github.com/offscale/nginxctl/workflows/Python%20lint%20&%20test/badge.svg )
66[ ![ black] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/psf/black )
7+ [ ![ Imports: isort] ( https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336 )] ( https://pycqa.github.io/isort/ )
78
89Commands for modifying and controlling nginx over the command-line.
910
Original file line number Diff line number Diff line change 2020 from tempfile import mkdtemp as gettemp
2121else :
2222 from nginxctl .helpers import gettemp
23- from nginxctl .parser import parse_cli_config , cli_to_context2block
23+
24+ from nginxctl .parser import cli_to_context2block , parse_cli_config
2425from nginxctl .pkg_utils import PythonPackageInfo
2526from nginxctl .serve import serve
2627
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ def strings(filename, minimum=4):
124124# From stdlib
125125if sys .version [0 ] == "3" :
126126 from os import fsencode , path
127- from tempfile import _sanitize_params , _get_candidate_names , TMP_MAX
127+ from tempfile import TMP_MAX , _get_candidate_names , _sanitize_params
128128
129129 def gettemp (suffix = None , prefix = None , dir = None ):
130130 """User-callable function to create and return a unique temporary
Original file line number Diff line number Diff line change 1313from pkg_resources import resource_filename
1414
1515from nginxctl import get_logger
16- from nginxctl .helpers import pp , is_directive
16+ from nginxctl .helpers import is_directive , pp
1717from nginxctl .pkg_utils import PythonPackageInfo
1818
1919logger = get_logger (
Original file line number Diff line number Diff line change 22
33from copy import deepcopy
44from functools import partial
5- from os import path , linesep
5+ from os import linesep , path
66from shutil import rmtree
77from tempfile import mkdtemp
8- from unittest import TestCase , main as unittest_main
8+ from unittest import TestCase
9+ from unittest import main as unittest_main
910
1011import crossplane
1112from boltons .iterutils import remap
1213from pkg_resources import resource_filename
1314
14- from nginxctl .helpers import get_dict_by_key_val , del_keys_d , update_directive
15+ from nginxctl .helpers import del_keys_d , get_dict_by_key_val , update_directive
1516from nginxctl .parser import parse_cli_config
1617from nginxctl .pkg_utils import PythonPackageInfo
1718
Original file line number Diff line number Diff line change 88from ast import parse
99from distutils .sysconfig import get_python_lib
1010from functools import partial
11- from os import path , listdir
11+ from os import listdir , path
1212
13- from setuptools import setup , find_packages
13+ from setuptools import find_packages , setup
1414
1515package_name = "nginxctl"
1616
You can’t perform that action at this time.
0 commit comments