Skip to content

Commit eae241a

Browse files
committed
style: fixed sorting
1 parent e41357a commit eae241a

10 files changed

Lines changed: 23 additions & 9 deletions

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ repos:
1414
- id: trailing-whitespace
1515
- id: fix-encoding-pragma
1616

17+
- repo: https://github.com/PyCQA/isort
18+
rev: 5.8.0
19+
hooks:
20+
- id: isort
21+
1722
- repo: https://github.com/asottile/pyupgrade
1823
rev: v2.19.1
1924
hooks:

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
#
2020
import os
2121
import sys
22+
2223
sys.path.insert(0, os.path.abspath('..'))
2324

2425
import cmake
2526

26-
2727
# -- Options for blockdiag extension --------------------------------------
2828

2929
blockdiag_antialias = True

noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# -*- coding: utf-8 -*-
2-
import nox
32
from pathlib import Path
43

4+
import nox
5+
56
nox.options.sessions = ["lint", "build", "tests"]
67

78
BUILD_ENV = {

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ SKBUILD_CONFIGURE_OPTIONS = "-DOPENSSL_ROOT_DIR:PATH=/usr/local/ssl -DCMAKE_JOB_
3636

3737
[tool.cibuildwheel.macos.environment]
3838
MACOSX_DEPLOYMENT_TARGET = "10.10"
39+
40+
[tool.isort]
41+
profile = "black"
42+
multi_line_output = 3

scripts/convert_to_generic_platform_wheel.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
import logging
44
import os
55
import sys
6-
76
from itertools import product
8-
from os.path import (abspath, basename, dirname, isfile, join as pjoin, splitext)
7+
from os.path import abspath, basename, dirname, isfile
8+
from os.path import join as pjoin
9+
from os.path import splitext
910

1011
try:
1112
from wheel.install import WheelFile
1213
except ImportError: # As of Wheel 0.32.0
1314
from wheel.wheelfile import WheelFile
15+
1416
from wheel.pkginfo import read_pkg_info, write_pkg_info
1517
from wheeltools.tools import unique_by_index
1618
from wheeltools.wheeltools import InWheelCtx

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import os
55
import sys
6-
76
from distutils.text_file import TextFile
7+
88
from skbuild import setup
99

1010
# Add current folder to path
@@ -13,7 +13,6 @@
1313

1414
import versioneer # noqa: E402
1515

16-
1716
with open('README.rst', 'r') as fp:
1817
readme = fp.read()
1918

tests/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: utf-8 -*-
22
import sys
3-
43
from contextlib import contextmanager
54

65

tests/test_cmake.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# -*- coding: utf-8 -*-
2-
import pytest
32
import textwrap
43

4+
import pytest
5+
56
import cmake
67

78
from . import push_argv

tests/test_distribution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
import os
3-
import pytest
43
import textwrap
54

5+
import pytest
66
from path import Path, matchers
77

88
DIST_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../dist'))

versioneer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,12 @@
277277
"""
278278

279279
from __future__ import print_function
280+
280281
try:
281282
import configparser
282283
except ImportError:
283284
import ConfigParser as configparser
285+
284286
import errno
285287
import json
286288
import os
@@ -1572,6 +1574,7 @@ def run(self):
15721574

15731575
if "cx_Freeze" in sys.modules: # cx_freeze enabled?
15741576
from cx_Freeze.dist import build_exe as _build_exe
1577+
15751578
# nczeczulin reports that py2exe won't like the pep440-style string
15761579
# as FILEVERSION, but it can be used for PRODUCTVERSION, e.g.
15771580
# setup(console=[{

0 commit comments

Comments
 (0)